Commit 85d91a6b by Dominik Vogt Committed by Andreas Krebbel

Honour DriverOnly for enum values in error messages

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

From-SVN: r226297
parent d5e9bac5
2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
* 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.
2015-07-27 Tom de Vries <tom@codesourcery.com>
* tree-parloops.c (gather_scalar_reductions): Simplify function
......
......@@ -1079,6 +1079,8 @@ read_cmdline_option (struct gcc_options *opts,
p = s;
for (i = 0; e->values[i].arg != NULL; i++)
{
if (!enum_arg_ok_for_language (&e->values[i], lang_mask))
continue;
size_t arglen = strlen (e->values[i].arg);
memcpy (p, e->values[i].arg, arglen);
p[arglen] = ' ';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment