-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Disable strict aliasing on clang #25067
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
Conversation
Workaround for nim-lang#24596. I also took the liberty to disable it on all targets with GCC, since their documentation claims that it is also enabled on -Os.
Alternative to nim-lang#25067; fixes nim-lang#24596. Pros: * No codegen changes needed. * No negative changes in generated code size. * Works with all standard-conforming C compilers - conceptually, memcpy treats both structs as character types, which are compatible with all types. Cons: it's very ugly.
CI fails with some super weird changes in the stack tracing. No idea, ping @ringabout |
I think it marks a real issue of the change, though I have no clue for now |
It seems that some C warnings disturbing the output comparing of testament, which causes CI to fail. I guess warnings are needed to be suppressed somehow
|
Oh, I think I've found the issue... let's see |
@Araq seems to be working now |
Thanks for your hard work on this PR! Hint: mm: orc; opt: speed; options: -d:release |
Workaround for #24596.
I also took the liberty to disable it on all targets with GCC, since their documentation claims that it is also enabled on -Os.