[OpenBSD's GCC] -O2 option does not include -fstrict-aliasing, as this option causes issues on some legacy code. http://man.openbsd.org/OpenBSD-current/man1/gcc-local.1 …
-
-
Replying to @volatile_void
I've wondered if -fstrict-aliasing is compatible with sockaddr_xxx casts at all
2 replies 0 retweets 0 likes -
Replying to @damienmiller
Yes it's compatible. Casting pointers is not aliasing, only accessing objects via lvalue of wrong type is.
1 reply 0 retweets 0 likes -
Replying to @RichFelker @damienmiller
Any correct code has to cast back to right sockaddr type to dereference, then types match.
1 reply 0 retweets 0 likes
Replying to @RichFelker @damienmiller
And struct pointers are explicitly round-trippable to any other struct pointer type.
6:49 AM - 6 Jul 2016
0 replies
0 retweets
0 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.