This is the mail archive of the gcc-patches@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]

Re: Path to add -O2 to TORTURE_OPTIONS list.



  In message <199902250257.XAA14738@sleipnir.valparaiso.cl>you write:
  > Nick Clifton <nickc@cygnus.com> said:
  > >   I have just appleid the patch below to the GCC testsuite, so that
  > >   the -O3 command line switch will now also be tested.  No new tests
  > >   or test runs have been introduced by this change.
  > 
  > To me it looks like you replaced -O2 by -O3... -O2 _is_ important on
  > itself, as it is the recommended optimization level for many packages,
  > including the linux kernel. -O3 isn't used as often because of the
  > resulting bloat due to indiscriminate inlining.
If you look more closely, he changed cases which did -O2 -finline-functions ...
to be -O3 -finline-functions.

It doesn't actually change the testsuite in any way at the moment, but if we
ever made -O3 do something other than just turn on funtion inlining, then this
change will become much more important.

I believe that we will in the not too distant future want to add some opts to
-O3.  

jeff


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