| Issue |
58225
|
| Summary |
Wrong codegen from TBAA under stores that change effective type?
|
| Labels |
|
| Assignees |
|
| Reporter |
pmor13
|
Copied from https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107115 (link to godbolt changed to the one with Clang and MSVC):
> The attached test case is from user supercat on Stack Overflow (original source: https://stackoverflow.com/questions/42178179/will-casting-around-sockaddr-storage-and-sockaddr-in-break-strict-aliasing/42178347?noredirect=1#comment130510083_42178347, https://godbolt.org/z/zWK4TYsEs) and demonstrates what appears to be wrong TBAA optimization on an object with allocated storage whose effective type changes under stores.
Observation: on Clang the bug triggers at -O1, while on GCC the bug triggers at -O2.
@AaronBallman @EugeneZelenko Add tags: clang:codegen, miscompilation, TBAA.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs