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