This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: Prototype libatomic


On 03/15/2012 07:52 PM, Richard Henderson wrote:
On 03/14/12 11:31, Richard Henderson wrote:
For my next trick: figuring out an Easy Way of utilizing IFUNCs,
so that we automatically make use of new cpu features without
recompilation...
Dunno about "easy", but I can now generate a shared library that
contains ifunc symbols.  Gotta get that testsuite in now...



A functional testcase would be to copy all the following files from testsuite/gcc.dg , compile them with -fno-atomics, and execute them linked with the library. That will test for proper execution of the library as well as all symbols being available.


To test true atomicity requires the simulate-thread environment with an additional understanding of what your locks are so that the 'other_thread' process can't go and change something that is currently locked... Probably better left until later.

Andrew

atomic-compare-exchange-[1-5].c
atomic-exchange-[1-5].c
atomic-generic.c
atomic-load-[1-5].c
atomic-op-[1-5].c
atomic-store-[1-5].c



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