Re: GCC 4.7.0 and C++ atomics

2012-03-08 Thread Joel Sherrill
On 03/08/2012 11:47 AM, Richard Henderson wrote: On 03/08/12 00:17, Sebastian Huber wrote: thanks for the hints. Thus if we want to use the C++ atomic operations on 32-bit ARM in RTEMS we have to implement everything in libgcc/config/arm/linux-atomic.c and place it in e.g. libgcc/config/arm

Re: GCC 4.7.0 and C++ atomics

2012-03-08 Thread Richard Henderson
On 03/08/12 00:17, Sebastian Huber wrote: > thanks for the hints. Thus if we want to use the C++ atomic operations on > 32-bit ARM in RTEMS we have to implement everything in > > libgcc/config/arm/linux-atomic.c > > and place it in e.g. > > libgcc/config/arm/rtems-atomic.c Possibly. It reall

Re: GCC 4.7.0 and C++ atomics

2012-03-08 Thread Sebastian Huber
Hello Andrew and Richard, On 03/07/2012 08:38 PM, Richard Henderson wrote: On 03/07/12 10:44, Andrew MacLeod wrote: > rth, you are familiar with how this part is suppose to hook up properly... > > I traced the code in expand_mem_thread_fence, and the sync_synchronize is being emiited by: > >

Re: GCC 4.7.0 and C++ atomics

2012-03-07 Thread Richard Henderson
On 03/07/12 10:44, Andrew MacLeod wrote: > rth, you are familiar with how this part is suppose to hook up properly... > > I traced the code in expand_mem_thread_fence, and the sync_synchronize is > being emiited by: > > else if (synchronize_libfunc != NULL_RTX) > emit_library_call (synch

Re: GCC 4.7.0 and C++ atomics

2012-03-07 Thread Joel Sherrill
On 03/07/2012 12:44 PM, Andrew MacLeod wrote: On 03/07/2012 10:11 AM, Sebastian Huber wrote: Hello, I run the GCC testsuite for GCC 4.7.0 20120307 http://gcc.gnu.org/ml/gcc-testresults/2012-03/msg00782.html I got a lot of errors like this: FAIL: g++.dg/simulate-thread/atomics-1.C -O0 -g (t

Re: GCC 4.7.0 and C++ atomics

2012-03-07 Thread Andrew MacLeod
On 03/07/2012 10:11 AM, Sebastian Huber wrote: Hello, I run the GCC testsuite for GCC 4.7.0 20120307 http://gcc.gnu.org/ml/gcc-testresults/2012-03/msg00782.html I got a lot of errors like this: FAIL: g++.dg/simulate-thread/atomics-1.C -O0 -g (test for excess errors) 148796 Excess errors:

GCC 4.7.0 and C++ atomics

2012-03-07 Thread Sebastian Huber
Hello, I run the GCC testsuite for GCC 4.7.0 20120307 http://gcc.gnu.org/ml/gcc-testresults/2012-03/msg00782.html I got a lot of errors like this: FAIL: g++.dg/simulate-thread/atomics-1.C -O0 -g (test for excess errors) 148796 Excess errors: 148797 /home/sh/rtems-testing/gcc/b-arm-gcc/arm-r