here we try to guess the value of a pointer -- LLVM says we cannot guess it and GCC suspects we canhttps://godbolt.org/g/SFLwz4
-
Show this thread
-
anyone know offhand whether C99 or C11 explicitly justifies LLVM's optimization?
8 replies 0 retweets 0 likesShow this thread -
Replying to @johnregehr
malloc is defined to return a pointer which does not alias any pre-existing object
4 replies 0 retweets 1 like -
If nothing else, malloc returns a pointer to memory suitably aligned for any type, and 0xdeadbeef most definitely is not.
4 replies 1 retweet 3 likes -
But properly aligning it does not change the behavior. I think DR260 which I reference in another tweet covers this.
1 reply 0 retweets 0 likes -
for a pretty messed up version of "covers"
2 replies 0 retweets 1 like
DR260 is basically entirely inconsistent bullshit.
2:11 PM - 1 Nov 2017
0 replies
0 retweets
2 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.