This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed] Make Wmissing-noreturn an alias of -Wsuggest-attribute=noreturn.


Bootstrapped and regression tested. Committed as obvious at revision 186943.

Index: gcc/ChangeLog
===================================================================
--- gcc/ChangeLog       (revision 186942)
+++ gcc/ChangeLog       (working copy)
@@ -1,3 +1,8 @@
+2012-04-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
+
+        * opts.c (finish_options): Do not handle -Wmissing-noreturn
here.
+        * common.opt (Wmissing-noreturn): Alias of
-Wsuggest-attribute=noreturn.
+
 2012-04-29  Hans-Peter Nilsson  <hp@axis.com>

        PR target/53156
Index: gcc/opts.c
===================================================================
--- gcc/opts.c  (revision 186942)
+++ gcc/opts.c  (working copy)
@@ -667,10 +667,6 @@
   if (opts->x_flag_tm && opts->x_flag_non_call_exceptions)
     sorry ("transactional memory is not supported with non-call exceptions");

-  /* -Wmissing-noreturn is alias for -Wsuggest-attribute=noreturn.  */
-  if (opts->x_warn_missing_noreturn)
-    opts->x_warn_suggest_attribute_noreturn = true;
-
   /* Unless the user has asked for section anchors, we disable toplevel
      reordering at -O0 to disable transformations that might be surprising
      to end users and to get -fno-toplevel-reorder tested.  */
Index: gcc/common.opt
===================================================================
--- gcc/common.opt      (revision 186942)
+++ gcc/common.opt      (working copy)
@@ -567,8 +567,7 @@
 Warn if the loop cannot be optimized due to nontrivial assumptions.

 Wmissing-noreturn
-Common Var(warn_missing_noreturn) Warning
-Warn about functions which might be candidates for __attribute__((noreturn))
+Common Alias(Wsuggest-attribute=noreturn)

 Woverflow
 Common Var(warn_overflow) Init(1) Warning


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]