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

[PATCH] Skip g++.dg/other/anon5.C on *-*-darwin*


The attached patch skips the g++.dg/other/anon5.C test case
on *-*-darwin* since the darwin linker reports...

/var/folders/jZ/jZQSfFYyHr4vjGlCHPydkE+++TI/-Tmp-//ccsX6U2K.s:44:non-relocatable subtraction expression, "__ZN12_GLOBAL__N_11c1tE" minus "L00000000001$pb"
/var/folders/jZ/jZQSfFYyHr4vjGlCHPydkE+++TI/-Tmp-//ccsX6U2K.s:44:symbol: "__ZN12_GLOBAL__N_11c1tE" can't be undefined in a subtraction expression

at -m32 and...

Undefined symbols:
  "(anonymous namespace)::c::t", referenced from:
      f()    in ccUyl0Wj.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

at -m64, neither of which satisfy the testcase. Tested on i686-apple-darwin9.
Okay for gcc trunk?
             Jack

2008-11-23  Jack Howarth <howarth@bromo.med.uc.edu>

	PR testsuite/38076
	* g++.dg/other/anon5.C: Skip on Darwin.

Index: gcc/testsuite/g++.dg/other/anon5.C
===================================================================
--- gcc/testsuite/g++.dg/other/anon5.C	(revision 142130)
+++ gcc/testsuite/g++.dg/other/anon5.C	(working copy)
@@ -1,5 +1,5 @@
 // PR c++/34094
-// { dg-do link { target { ! { *-*-hpux* *-*-solaris2.* } } } }
+// { dg-do link { target { ! { *-*-darwin* *-*-hpux* *-*-solaris2.* } } } }
 // { dg-options "-g" }
 
 namespace {


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