This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH roland/arm-atomic-warn] Fiddle ARM atomic.h to avoid -Wvolatile-register-var warnings.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]