Re:My C code works with -O3 but not with -O0
by pletnes on Thursday January 16, 2020 @09:58AM
(#22065051)
Been there done that. One great feature I ran across was that the intel compiler has a #pragma incantation that enables many checks on a per-file basis. This lets you create new code and selectively fix old code without these obvious defects.
[ Parent
| on HN ]
Re:My C code works with -O3 but not with -O0
by zwp on Thursday January 16, 2020 @10:55AM
(#22065652)
So does gcc: https://gcc.gnu.org/onlinedocs/gcc/Diagnostic-Pragmas.html
(TIL - thanks!)