This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Re: [PATCH roland/arm-atomic-warn] Fiddle ARM atomic.h to avoid -Wvolatile-register-var warnings.
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Roland McGrath <roland at hack dot frob dot com>
- Cc: <libc-ports at sourceware dot org>
- Date: Wed, 8 Aug 2012 20:51:49 +0000
- Subject: Re: [PATCH roland/arm-atomic-warn] Fiddle ARM atomic.h to avoid -Wvolatile-register-var warnings.
- References: <20120808204442.9B9F82C085@topped-with-meat.com>
On Wed, 8 Aug 2012, Roland McGrath wrote:
> Trunk GCC has -Wvolatile-register-var on by default and this hits in
> some atomic.h macros because __typeof (*ptr) is leaking volatile-ness
> into the non-pointer declarations and being treated as 'register volatile'.
>
> I only did a basic compile test (with trunk gcc for arm-linux-gnueabi).
> I looked at one file where I'd been getting the warning (nptl-init.c)
> and the generated code differed only in reordering a couple of (non-atomic)
> loads whose order shouldn't matter.
>
> Ok?
OK.
--
Joseph S. Myers
joseph@codesourcery.com