This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

US-CERT Vulnerability Note VU#162289



> If you know of a non-GCC compiler that optimizes away > the test (so that the function always returns 0), please > post here, and let me know the name, version number, > command-line options, etc. you used to demonstrate that.


The lovely TI Code Composer Studio compiler does the same optimization. It's mostly for DSP code and not a mainstream compiler though.


Cmdline: ./cl6x -O3 test.c

Version of the compiler is 6.0.8 (latest)

Optimizations are good. I love them!

Nils



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]