public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/52201] New: FAIL: 29_atomics/atomic/operators/51811.cc (test for excess errors)
@ 2012-02-10 21:23 danglin at gcc dot gnu.org
  2012-02-10 22:27 ` [Bug middle-end/52201] " amacleod at redhat dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: danglin at gcc dot gnu.org @ 2012-02-10 21:23 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52201
           Summary: FAIL: 29_atomics/atomic/operators/51811.cc (test for
                    excess errors)
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: danglin@gcc.gnu.org
              Host: hppa*-*-hpux11.11
            Target: hppa*-*-hpux11.11
             Build: hppa*-*-hpux11.11


Executing on host: /test/gnu/gcc/objdir/./gcc/g++ -shared-libgcc
-B/test/gnu/gcc
/objdir/./gcc -nostdinc++
-L/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v
3/src -L/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/src/.libs
-B/opt/g
nu64/gcc/gcc-4.7/hppa64-hp-hpux11.11/bin/
-B/opt/gnu64/gcc/gcc-4.7/hppa64-hp-hpu
x11.11/lib/ -isystem /opt/gnu64/gcc/gcc-4.7/hppa64-hp-hpux11.11/include
-isystem
 /opt/gnu64/gcc/gcc-4.7/hppa64-hp-hpux11.11/sys-include
-B/test/gnu/gcc/objdir/h
ppa64-hp-hpux11.11/./libstdc++-v3/src/.libs -g -O2 -D_GLIBCXX_ASSERT
-fmessage-l
ength=0 -ffunction-sections -fdata-sections -g -O2 -g -O2 -DLOCALEDIR="."
-nostd
inc++
-I/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/hppa64-hp-
hpux11.11 -I/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include
-I/tes
t/gnu/gcc/gcc/libstdc++-v3/libsupc++
-I/test/gnu/gcc/gcc/libstdc++-v3/include/ba
ckward -I/test/gnu/gcc/gcc/libstdc++-v3/testsuite/util
/test/gnu/gcc/gcc/libstdc
++-v3/testsuite/29_atomics/atomic/operators/51811.cc   -std=gnu++0x
./libtestc++
.a   -lm   -o ./51811.exe    (timeout = 600)
spawn /test/gnu/gcc/objdir/./gcc/g++ -shared-libgcc
-B/test/gnu/gcc/objdir/./gcc
 -nostdinc++ -L/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/src
-L/test
/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/src/.libs
-B/opt/gnu64/gcc/gcc-
4.7/hppa64-hp-hpux11.11/bin/ -B/opt/gnu64/gcc/gcc-4.7/hppa64-hp-hpux11.11/lib/
-
isystem /opt/gnu64/gcc/gcc-4.7/hppa64-hp-hpux11.11/include -isystem
/opt/gnu64/g
cc/gcc-4.7/hppa64-hp-hpux11.11/sys-include
-B/test/gnu/gcc/objdir/hppa64-hp-hpux
11.11/./libstdc++-v3/src/.libs -g -O2 -D_GLIBCXX_ASSERT -fmessage-length=0
-ffun
ction-sections -fdata-sections -g -O2 -g -O2 -DLOCALEDIR="." -nostdinc++
-I/test
/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/hppa64-hp-hpux11.11
-I/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include
-I/test/gnu/gcc/gcc/libstdc++-v3/libsupc++
-I/test/gnu/gcc/gcc/libstdc++-v3/include/backward
-I/test/gnu/gcc/gcc/libstdc++-v3/testsuite/util
/test/gnu/gcc/gcc/libstdc++-v3/testsuite/29_atomics/atomic/operators/51811.cc
-std=gnu++0x ./libtestc++.a -lm -o ./51811.exe
ld: Unsatisfied symbol "__atomic_fetch_add_8" in file /var/tmp//ccfj44l2.o
ld: Unsatisfied symbol "__atomic_fetch_sub_8" in file /var/tmp//ccfj44l2.o
2 errors.
collect2: error: ld returned 1 exit status
compiler exited with status 1
output is:
ld: Unsatisfied symbol "__atomic_fetch_add_8" in file /var/tmp//ccfj44l2.o
ld: Unsatisfied symbol "__atomic_fetch_sub_8" in file /var/tmp//ccfj44l2.o
2 errors.
collect2: error: ld returned 1 exit status

FAIL: 29_atomics/atomic/operators/51811.cc (test for excess errors)

Similar fail:

FAIL: 29_atomics/atomic/operators/pointer_partial_void.cc (test for excess
errors)

Tests fail on both 32 and 64-bit targets.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug middle-end/52201] FAIL: 29_atomics/atomic/operators/51811.cc (test for excess errors)
  2012-02-10 21:23 [Bug middle-end/52201] New: FAIL: 29_atomics/atomic/operators/51811.cc (test for excess errors) danglin at gcc dot gnu.org
@ 2012-02-10 22:27 ` amacleod at redhat dot com
  2012-02-10 22:42 ` dave.anglin at bell dot net
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: amacleod at redhat dot com @ 2012-02-10 22:27 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Macleod <amacleod at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |amacleod at redhat dot com

--- Comment #1 from Andrew Macleod <amacleod at redhat dot com> 2012-02-10 22:26:59 UTC ---
Does this target support atomics and multi-threaded at all?

do any tests in gcc/gcc.dg/atomic* run or are they all unsupported?


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug middle-end/52201] FAIL: 29_atomics/atomic/operators/51811.cc (test for excess errors)
  2012-02-10 21:23 [Bug middle-end/52201] New: FAIL: 29_atomics/atomic/operators/51811.cc (test for excess errors) danglin at gcc dot gnu.org
  2012-02-10 22:27 ` [Bug middle-end/52201] " amacleod at redhat dot com
@ 2012-02-10 22:42 ` dave.anglin at bell dot net
  2012-02-10 22:44 ` dave.anglin at bell dot net
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: dave.anglin at bell dot net @ 2012-02-10 22:42 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from dave.anglin at bell dot net 2012-02-10 22:41:42 UTC ---
On 2/10/2012 5:26 PM, amacleod at redhat dot com wrote:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52201
>
> Andrew Macleod<amacleod at redhat dot com>  changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                   CC|                            |amacleod at redhat dot com
>
> --- Comment #1 from Andrew Macleod<amacleod at redhat dot com>  2012-02-10 22:26:59 UTC ---
> Does this target support atomics and multi-threaded at all?
>
> do any tests in gcc/gcc.dg/atomic* run or are they all unsupported?
>
The target doesn't support atomics.  There is only only one atomic 
instruction (ldcw).

There is pthread and semaphore support.

gcc.dg/atomic-flag.c, gcc.dg/atomic-generic.c, gcc.dg/atomic-lockfree.c, 
gcc.dg/atomic-noinline-aux.c,
gcc.dg/atomic-noinline.c pass.  The remainder are unsupported

Dave


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug middle-end/52201] FAIL: 29_atomics/atomic/operators/51811.cc (test for excess errors)
  2012-02-10 21:23 [Bug middle-end/52201] New: FAIL: 29_atomics/atomic/operators/51811.cc (test for excess errors) danglin at gcc dot gnu.org
  2012-02-10 22:27 ` [Bug middle-end/52201] " amacleod at redhat dot com
  2012-02-10 22:42 ` dave.anglin at bell dot net
@ 2012-02-10 22:44 ` dave.anglin at bell dot net
  2012-02-24 19:52 ` amacleod at redhat dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: dave.anglin at bell dot net @ 2012-02-10 22:44 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from dave.anglin at bell dot net 2012-02-10 22:44:17 UTC ---
On 2/10/2012 5:41 PM, John David Anglin wrote:
> There is only only one atomic instruction (ldcw). 
Actually, loads and stores are also atomic and strongly ordered.  But 
that's it.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug middle-end/52201] FAIL: 29_atomics/atomic/operators/51811.cc (test for excess errors)
  2012-02-10 21:23 [Bug middle-end/52201] New: FAIL: 29_atomics/atomic/operators/51811.cc (test for excess errors) danglin at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2012-02-10 22:44 ` dave.anglin at bell dot net
@ 2012-02-24 19:52 ` amacleod at redhat dot com
  2012-02-25 19:41 ` [Bug testsuite/52201] " danglin at gcc dot gnu.org
  2012-02-25 20:01 ` danglin at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: amacleod at redhat dot com @ 2012-02-24 19:52 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Andrew Macleod <amacleod at redhat dot com> 2012-02-24 19:47:18 UTC ---
Created attachment 26746
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26746
disable tests if no atomic support present

That test case really shouldn't be running.   To make sure we're on the right
track, add the line 

// { dg-require-atomic-builtins "" }

at the top of the test case (patch attached for the 2 you mention)  

Presumably it won't execute the test case anymore, thus avoiding the failure...
Can you give it a try?

Are those the only 2 failing?  interesting.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug testsuite/52201] FAIL: 29_atomics/atomic/operators/51811.cc (test for excess errors)
  2012-02-10 21:23 [Bug middle-end/52201] New: FAIL: 29_atomics/atomic/operators/51811.cc (test for excess errors) danglin at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2012-02-24 19:52 ` amacleod at redhat dot com
@ 2012-02-25 19:41 ` danglin at gcc dot gnu.org
  2012-02-25 20:01 ` danglin at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: danglin at gcc dot gnu.org @ 2012-02-25 19:41 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from John David Anglin <danglin at gcc dot gnu.org> 2012-02-25 19:36:17 UTC ---
Author: danglin
Date: Sat Feb 25 19:36:11 2012
New Revision: 184576

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=184576
Log:
    PR testsuite/52201
    * testsuite/29_atomics/atomic/operators/pointer_partial_void.cc: Require   
atomic builtins.
    * testsuite/29_atomics/atomic/operators/51811.cc: Likewise.


Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/testsuite/29_atomics/atomic/operators/51811.cc
   
trunk/libstdc++-v3/testsuite/29_atomics/atomic/operators/pointer_partial_void.cc


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug testsuite/52201] FAIL: 29_atomics/atomic/operators/51811.cc (test for excess errors)
  2012-02-10 21:23 [Bug middle-end/52201] New: FAIL: 29_atomics/atomic/operators/51811.cc (test for excess errors) danglin at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2012-02-25 19:41 ` [Bug testsuite/52201] " danglin at gcc dot gnu.org
@ 2012-02-25 20:01 ` danglin at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: danglin at gcc dot gnu.org @ 2012-02-25 20:01 UTC (permalink / raw)
  To: gcc-bugs

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

John David Anglin <danglin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED

--- Comment #6 from John David Anglin <danglin at gcc dot gnu.org> 2012-02-25 19:40:58 UTC ---
Fixed.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-02-25 19:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-10 21:23 [Bug middle-end/52201] New: FAIL: 29_atomics/atomic/operators/51811.cc (test for excess errors) danglin at gcc dot gnu.org
2012-02-10 22:27 ` [Bug middle-end/52201] " amacleod at redhat dot com
2012-02-10 22:42 ` dave.anglin at bell dot net
2012-02-10 22:44 ` dave.anglin at bell dot net
2012-02-24 19:52 ` amacleod at redhat dot com
2012-02-25 19:41 ` [Bug testsuite/52201] " danglin at gcc dot gnu.org
2012-02-25 20:01 ` danglin at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).