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]
Other format: [Raw text]

Re: PR33713: remove -fforce-addr


On Nov 30, 2007 11:06 AM, Richard Guenther <rguenther@suse.de> wrote:
> > I also would prefer a deprecated switch get a warning, rather than silently
> > accepting it.
>
> In general I agree here, but I don't have a strong opinion for
> optimization switches.

The problem with a warning is that people might be building with
-Werror.  If they do that and they also have the deprecated flag in
their Makefile, their builds fail.

But telling users that their build flags have no effect is IMHO a good thing.

Proposal: We could add a "Deprecated" option property to common.opt,
and use "inform()" to tell users they are using a deprecated option.
If this sounds acceptable to y'all, I will craft a patch to implement
it.

(I couldn't find if this was proposed before.  "inform()" is quite
new, and I don't know if it was around already when it was first
discussed what to do with removed options.)

Gr.
Steven


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