This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFA: Warn when running LTO compiler without any optimization level set
Richard Guenther wrote:
On Fri, Apr 9, 2010 at 5:19 PM, Nick Clifton <nickc@redhat.com> wrote:
Hi Guys,
Running the LTO compiler without enabling any optimizations is not
very useful, [...]
The attached patch adds a warning message for this particular
circumstance:
lto1: warning: -flto used without an optimization level set - was this intentional ?
This will break all testing as we test with -O0 and -O2. I don't
think this is a good idea anyway.
I still believe the message is useful. Perhaps it should be made a
notice (done with inform).
Cheers
--
Basile STARYNKEVITCH http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***