From 16302dafcfbd3eb8dae336b721b72f426a64ebaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20L=C3=B3pez-Ib=C3=A1=C3=B1ez?= Date: Tue, 26 Feb 2008 14:04:09 +0000 Subject: re PR c/34351 (Please get us the "volatile register" warning back) 2008-02-26 Manuel Lopez-Ibanez 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. From-SVN: r132675 --- gcc/c-opts.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/c-opts.c') diff --git a/gcc/c-opts.c b/gcc/c-opts.c index 4cb7687..1a59ac4 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. */ -- cgit v1.1