opts.c (option_name): Remove "enabled by default" rider.
gcc/ * opts.c (option_name): Remove "enabled by default" rider. gcc/testsuite/ * gcc.dg/gomp/simd-clones-5.c: Update comment for new warning message. From-SVN: r207747
This commit is contained in:
parent
1de01e3ebf
commit
9f8da9073b
@ -1,3 +1,7 @@
|
||||
2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
|
||||
|
||||
* opts.c (option_name): Remove "enabled by default" rider.
|
||||
|
||||
2014-02-12 John David Anglin <danglin@gcc.gnu.org>
|
||||
|
||||
* config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
|
||||
|
12
gcc/opts.c
12
gcc/opts.c
@ -2216,14 +2216,10 @@ option_name (diagnostic_context *context, int option_index,
|
||||
return xstrdup (cl_options[option_index].opt_text);
|
||||
}
|
||||
/* A warning without option classified as an error. */
|
||||
else if (orig_diag_kind == DK_WARNING || orig_diag_kind == DK_PEDWARN
|
||||
|| diag_kind == DK_WARNING)
|
||||
{
|
||||
if (context->warning_as_error_requested)
|
||||
return xstrdup (cl_options[OPT_Werror].opt_text);
|
||||
else
|
||||
return xstrdup (_("enabled by default"));
|
||||
}
|
||||
else if ((orig_diag_kind == DK_WARNING || orig_diag_kind == DK_PEDWARN
|
||||
|| diag_kind == DK_WARNING)
|
||||
&& context->warning_as_error_requested)
|
||||
return xstrdup (cl_options[OPT_Werror].opt_text);
|
||||
else
|
||||
return NULL;
|
||||
}
|
||||
|
@ -1,3 +1,7 @@
|
||||
2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
|
||||
|
||||
* gcc.dg/gomp/simd-clones-5.c: Update comment for new warning message.
|
||||
|
||||
2014-02-12 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* gcc.dg/torture/float128-mul-underflow.c,
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
/* ?? The -w above is to inhibit the following warning for now:
|
||||
a.c:2:6: warning: AVX vector argument without AVX enabled changes
|
||||
the ABI [enabled by default]. */
|
||||
the ABI. */
|
||||
|
||||
#pragma omp declare simd notinbranch simdlen(4)
|
||||
void foo (int *a)
|
||||
|
Loading…
Reference in New Issue
Block a user