[PATCH] Merge Ignore and Deprecated in .opt files.

Martin Liška mliska@suse.cz
Fri Jul 20 10:55:00 GMT 2018


On 07/19/2018 04:21 PM, Jakub Jelinek wrote:
> On Thu, Jul 19, 2018 at 04:16:10PM +0200, Martin Liška wrote:
>> I must admit that was my intention :) In my eyes it makes it more consistent and
>> it gives consumers feedback about usage of an option that does nothing.
>> For x86_64 there's list of options that are Ignore and don't produce a warning:
>>
>> Wimport
>> Wunreachable-code
>> Wunsafe-loop-optimizations
> 
> I'm especially worried about the above ones, we don't emit any warnings if
> we do
> -Wno-foobarbazqux
> unless some other diagnostic is emitted.
> Do we warn if we do
> -Wno-unsafe-loop-optimizations
> ?  At least for -Wno-* Ignored options it would be nice to treat them similarly
> to the non-existed -Wno-* options.

Agree with that. Fixed in attached version of the patch.
Patch can bootstrap on x86_64-linux-gnu and survives regression tests.

Martin

> 
> 	Jakub
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Merge-Ignore-and-Deprecated-in-.opt-files.patch
Type: text/x-patch
Size: 53180 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180720/36ef92f8/attachment.bin>


More information about the Gcc-patches mailing list