summaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authorpcg <pcg@138bc75d-0d04-0410-961f-82ee72b054a4>1999-10-31 21:52:00 +0000
committerpcg <pcg@138bc75d-0d04-0410-961f-82ee72b054a4>1999-10-31 21:52:00 +0000
commit77d02b1b43df46d1cdb43ff8292dcda0a2e9ce3d (patch)
treea7db00102c8e77be3ca6732e8ed7aac1339905d7 /gcc/toplev.c
parent4b22def67e3903b291ffe9f5148d714a9c306667 (diff)
downloadgcc-77d02b1b43df46d1cdb43ff8292dcda0a2e9ce3d.tar.gz
Sun Oct 31 13:32:15 CET 1999 Marc Lehmann <pcg@goof.com>
* toplev.c (rest_of_compilation): Seperate the setjmp/vfork clobber warning from -Wuninitialized and put it under -W. * function.c (uninitialized_vars_warning): Warn only when the corresponding flag is set. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30294 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 6f8883bbbbe..cce00eecb95 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -4010,10 +4010,11 @@ rest_of_compilation (decl)
life_analysis (insns, max_reg_num (), rtl_dump_file, 1);
});
- if (warn_uninitialized)
+ if (warn_uninitialized || extra_warnings)
{
uninitialized_vars_warning (DECL_INITIAL (decl));
- setjmp_args_warning ();
+ if (extra_warnings)
+ setjmp_args_warning ();
}
}