Re: [PATCHv2][LTO/PGO] Warn when both -flto and -fprofile-generate are enabled

2014-04-02 Thread Rainer Orth
Markus Trippelsdorf writes: > diff --git a/gcc/opts.c b/gcc/opts.c > index fdc903f9271a..581d2e948483 100644 > --- a/gcc/opts.c > +++ b/gcc/opts.c > @@ -833,6 +833,9 @@ finish_options (struct gcc_options *opts, struct > gcc_options *opts_set, > error_at (loc, "only one -flto-partition valu

[PATCHv2][LTO/PGO] Warn when both -flto and -fprofile-generate are enabled

2014-04-02 Thread Markus Trippelsdorf
It is a common mistake to enable both -flto and -fprofile-generate when building projects. This is not a good idea, because memory use will skyrocket due to instrumentation. So just warn the user. OK for next stage1? 2014-04-02 Markus Trippelsdorf * common.opt (fprofile-generate): Add