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.


> Is it really worth working so hard to avoid the gcc builtins?
> Yes, gcc before 4.7 doesn't have __atomic to avoid the extra
> barriers, but at least 4.7 and later will.

That file uses them #ifdef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
I was just killing a warning without worrying about why the code
path was being used.

> May I ask what gcc version you're targeting, anyway?

I'm using today's trunk, cross --target=arm-linux-gnueabi and no other
special options.  I don't know why __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 is
not defined.  Probably it would be with appropriate -march= settings.


Thanks,
Roland


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