-
Notifications
You must be signed in to change notification settings - Fork 78
Another UB found using rustlantis #691
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This issue is even weirder than I expected. For example, setting This does not change the generated GIMPLE in any way, besides just changing the function name. @antoyo does setting |
I do not think cg_gcc does anything in this case.
which might be the source of the "fix". |
The "visibility" seems to stay the same, tough. The main problem I have here is replicating the issue in C. If something not present in GIMPLE is needed for the issue to occur, I have no way of turning that GIMPLE into C(tried once, and the issue just was not there). |
Would the representation dumped by setting |
Oh, there is a difference now.
I guess that no_mangle marks the function as extern(not static) and that allows GCC some more optimizations. |
Uh oh!
There was an error while loading. Please reload this page.
This program has a different result under GCC debug and GCC release.
It looks like the cast of
val as i128
is nonsensical. Sinceval
is a boolean value, one would expect it to be either 1 or 0, and not -1.The text was updated successfully, but these errors were encountered: