]> gcc.gnu.org Git - gcc.git/commitdiff
opts.c (option_name): Remove "enabled by default" rider.
authorRichard Sandiford <rdsandiford@googlemail.com>
Thu, 13 Feb 2014 09:22:04 +0000 (09:22 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Thu, 13 Feb 2014 09:22:04 +0000 (09:22 +0000)
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

gcc/ChangeLog
gcc/opts.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/gomp/simd-clones-5.c

index 0b90f0eee2b7d48a5e2e774107358b21b691ff70..c31875d0903c3a6e017e81d0b7551bf1aa3d5ac1 100644 (file)
@@ -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.
index 7dee0e71b15c6bb37aae7b7dfa18066fa5a6fd3c..5dd442fd414f42e015007067d3b0a85b0877f764 100644 (file)
@@ -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;
 }
index 0f1bcd4d37fae6a815dace498cdc7d5280522686..07e068456b70a008b1e2c0e006b2b86e38d2c628 100644 (file)
@@ -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,
index 801c24f34affdfea7f73cd9e4d1aeced3224066a..84785e14816d5a7e736b64f4f8be5a9f43bba069 100644 (file)
@@ -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)
This page took 0.085947 seconds and 5 git commands to generate.