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-opts.c | |
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-opts.c')
-rw-r--r-- | gcc/c-opts.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c-opts.c b/gcc/c-opts.c index 4cb76872be3..1a59ac46964 100644 --- a/gcc/c-opts.c +++ b/gcc/c-opts.c @@ -407,6 +407,7 @@ c_common_handle_option (size_t scode, const char *arg, int value) if (warn_strict_overflow == -1) warn_strict_overflow = value; warn_array_bounds = value; + warn_volatile_register_var = value; /* Only warn about unknown pragmas that are not in system headers. */ |