From fdc46702fad914a25ba286dccea93b87d75f5e8b Mon Sep 17 00:00:00 2001 From: manu Date: Sun, 29 Apr 2012 09:15:30 +0000 Subject: [PATCH] =?utf8?q?2012-04-29=20=20Manuel=20L=C3=B3pez-Ib=C3=A1?= =?utf8?q?=C3=B1ez=20=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * opts.c (finish_options): Do not handle -Wmissing-noreturn here. * common.opt (Wmissing-noreturn): Alias of -Wsuggest-attribute=noreturn. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186943 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/common.opt | 3 +-- gcc/opts.c | 4 ---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5c0e973..f90cceb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2012-04-29 Manuel López-Ibáñez + + * 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 PR target/53156 diff --git a/gcc/common.opt b/gcc/common.opt index 14c88bf..af02992 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -567,8 +567,7 @@ Common Var(warn_unsafe_loop_optimizations) Warning 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 diff --git a/gcc/opts.c b/gcc/opts.c index ab2de8f..22c7590 100644 --- a/gcc/opts.c +++ b/gcc/opts.c @@ -667,10 +667,6 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set, 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. */ -- 2.7.4