diff options
author | manu <manu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-02-26 14:04:09 +0000 |
---|---|---|
committer | manu <manu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-02-26 14:04:09 +0000 |
commit | 75130fc7fcd6a514720a59205f3c58c26c29940a (patch) | |
tree | 537a82ef9fffaa1f7c267239541b7bf5a2b03a7c /gcc/c.opt | |
parent | 17c66687862b6f2c9a5a33201b0628631e905fe7 (diff) | |
download | gcc-75130fc7fcd6a514720a59205f3c58c26c29940a.tar.gz |
2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR 34351
* doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
* c-opts.c (c_common_handle_option): Wall enables
Wvolatile-register-var.
* common.opt: Move Wvolatile-register-var to...
* c.opt: ...here.
testsuite/
* gcc.dg/pr34351.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@132675 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c.opt')
-rw-r--r-- | gcc/c.opt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/c.opt b/gcc/c.opt index 72165b96660..d3f81b0e1c7 100644 --- a/gcc/c.opt +++ b/gcc/c.opt @@ -465,6 +465,10 @@ Wvla C ObjC C++ ObjC++ Var(warn_vla) Init(-1) Warning Warn if a variable length array is used +Wvolatile-register-var +C ObjC C++ ObjC++ Var(warn_volatile_register_var) Warning +Warn when a register variable is declared volatile + Wwrite-strings C ObjC C++ ObjC++ Var(warn_write_strings) Warning In C++, nonzero means warn about deprecated conversion from string literals to `char *'. In C, similar warning, except that the conversion is of course not deprecated by the ISO C standard. |