Re: [PATCH] Honour DriverOnly for enum values in error messages.

2015-07-30 Thread Gunther Nikl
Dominik Vogt schrieb: The attached patch fixes a glicht in the error message generated for invalid values of enum options. IMHO, the patch is incomplete. diff --git a/gcc/opts-common.c b/gcc/opts-common.c index 8e51974..3bcbaf1 100644 --- a/gcc/opts-common.c +++ b/gcc/opts-common.c @@

Re: [PATCH] Honour DriverOnly for enum values in error messages.

2015-07-27 Thread Andreas Krebbel
On 07/27/2015 01:45 PM, Dominik Vogt wrote: /gcc/ChangeLog * opts-common.c (read_cmdline_option): List DriverOnly enum values as valid only in the error message of the driver, not in the messages of the language compilers. Applied. Thanks! -Andreas-

[PATCH] Honour DriverOnly for enum values in error messages.

2015-07-27 Thread Dominik Vogt
Date: Mon, 27 Jul 2015 12:39:30 +0100 Subject: [PATCH] Honour DriverOnly for enum values in error messages. --- gcc/opts-common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/opts-common.c b/gcc/opts-common.c index 8e51974..3bcbaf1 100644 --- a/gcc/opts-common.c +++ b/gcc/opts

Re: [PATCH] Honour DriverOnly for enum values in error messages.

2015-07-27 Thread Jeff Law
On 07/27/2015 05:45 AM, Dominik Vogt wrote: The attached patch fixes a glicht in the error message generated for invalid values of enum options. When a DriverOnly option was passed directoy top the compiler, it would still list that as valid in the error message, e.g. on s390: $ cc1 ...