This is the mail archive of the gcc-bugs@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]

[Bug c++/26943] [gomp] firstprivate not working properly with non-POD



------- Comment #11 from bergner at vnet dot ibm dot com  2006-12-05 02:06 -------
The testcase pr26943-2.c fails intermittently for me using unpatched mainline. 
Is anyone else seeing that?  I'm building on powerpc64-linux with -m32. If I
run it a few times, it mainly passes, but every once in a while, I get the
error below:

(gdb) run
Starting program:
/home/bergner/gcc/indexed_load_store/build/gcc-mainline-rtlanal/powerpc64-linux/libgomp/testsuite/pr26943-2.exe 
Breakpoint 1 at 0x100111b4
[Thread debugging using libthread_db enabled]
[New Thread 1074060096 (LWP 29281)]
Breakpoint 1 at 0xfe04344
[New Thread 1082451136 (LWP 29282)]
[New Thread 1090839744 (LWP 29283)]
[New Thread 1099228352 (LWP 29284)]
[Switching to Thread 1074060096 (LWP 29281)]

Breakpoint 1, 0x0fe04344 in abort () from /lib/tls/libc.so.6
(gdb) where
#0  0x0fe04344 in abort () from /lib/tls/libc.so.6
#1  0x100006b8 in main ()
    at
/home/bergner/gcc/indexed_load_store/gcc-mainline-rtlanal/libgomp/testsuite/libgomp.c/pr26943-2.c:45
(gdb) list 42
37            if (e[0] != 'a' + 6 || f[0] != 'b' + i || g[0] != 'g' + i)
38              j += 64;
39            if (h[0] != 'h' + i)
40              j += 512;
41          }
42        if (j || a != 8 + 6 || b != 12 || c != 3 || d != 20)
43          abort ();
44        if (e[0] != 'a' + 6 || f[0] != 'b' || g[0] != 'g' + 3 || h[0] != 'd')
45          abort ();
46        return 0;
(gdb) p e[0]
$10 = 101 'e'
(gdb) p f[0]
$11 = 98 'b'
(gdb) p g[0]
$12 = 106 'j'
(gdb) p h[0]
$13 = 100 'd'


-- 

bergner at vnet dot ibm dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bergner at vnet dot ibm dot
                   |                            |com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26943


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