Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tgv
on Nov 28, 2022
|
parent
|
context
|
favorite
| on:
GCC undefined behaviors are getting wild
It would seem GCC is doing its very best to make C an irrelevant language. They're taking "-pedantic" a bit too seriously.
mort96
on Nov 28, 2022
[–]
All optimizing compilers do stuff like this. You yourself ask the compiler to do it when you pass it '-O2'. Its default behavior is, in fact, to not optimize based on the assumption that UB won't happen.
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: