[L2Ork-dev] two optimization flags
Jonathan Wilkes
jon.w.wilkes at gmail.com
Thu May 31 10:26:38 EDT 2018
On Wed, May 30, 2018 at 6:00 PM, Giulio Moro <g.moro at qmul.ac.uk> wrote:
> I think O6 just does not exist for gcc and clang, so possibly it reverts to O3?
>
> https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html
Ok, so from that doc:
"If you use multiple -O options, with or without level numbers, the
last such option is the one that is effective."
That means we're currently getting whatever optimization level -O6
ends up triggering, and
the initial -O2 is ignored.
So... why is there a leading "-O2" optimization flag?
-Jonathan
More information about the L2Ork-dev
mailing list