> 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


Reply via email to