This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PR34351: Please get us the "volatile register" warning back
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: "Manuel López-Ibáñez" <lopezibanez at gmail dot com>
- Cc: "GCC Patches" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 26 Feb 2008 10:00:10 -0800
- Subject: Re: PR34351: Please get us the "volatile register" warning back
- References: <6c33472e0802231813hcef3e48n5fb1d29cd45726cc@mail.gmail.com>
The testcase is invalid on targets where r13 isn't a valid register:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35382
H.J.
On Sat, Feb 23, 2008 at 6:13 PM, Manuel López-Ibáñez
<lopezibanez@gmail.com> wrote:
> This patch enables -Wvolatile-register-var with -Wall fixing PR34351.
>
> Bootstrapped and regression tested on x86_64-unknown-linux-gnu.
>
> OK for 4.4?
>
> Manuel.
>
>
> 2008-02-24 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.
>