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 <...> -march=native
   cc1: error: unrecognized argument in option ‘-march=native’
   cc1: note: valid arguments to ‘-march=’ are: g5 g6 native z10 z13 z196 
z9-109 z9-ec z900 z990 zEC12

The patched code prints DriverOnly enum values only when the
driver generates the error message.

Ciao

Dominik ^_^  ^_^

-- Dominik Vogt IBM Germany


0001-ChangeLog


/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.
OK.
jeff

Reply via email to