just add -frecognize-spec-and-replace-with-constants
-
-
-
We used to joke about adding a new JSOP_SUNSPIDER instruction to SpiderMonkey
- 5 more replies
New conversation -
-
-
Why would GCC accommodate this nonsense? Instead just tweak it so it optimizes to no code instead of an infinite loop, and win the idiotic benchmark pissing contest.
-
I like your thinking.
End of conversation
New conversation -
-
-
I know it's possible to write terrible code in any language but it seems like this sort of thing happens extremely frequently in C codebases. I wonder where the culture around C programming went so horribly wrong?
-
This kind of overly-clever coding style goes all the way back to the K&R book, unfortunately. :(
- 2 more replies
New conversation -
-
-
I don't understand that cryptic k=0 in the loop. Why not just initialize it in the declaration? smh
-
It might be one of those things where it’s extremely optimized for a dumb C compiler. Like glibc’s infamous strstr: https://sourceware.org/git/?p=glibc.git;a=blob;f=string/strstr.c;hb=9d13fb2413921c713f83efe331e8e4d219c62c6b …
- 2 more replies
New conversation -
-
-
What did the flag do? I don't understand how you can fix a program with OOB access with a flag.
-
Disables the optimization that caused the program to be compiled into an infinite loop.
- 4 more replies
New conversation -
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.