This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/35119] FAIL: g++.dg/template/spec35.C scan-assembler
- From: "dominiq at lps dot ens dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Feb 2008 14:16:52 -0000
- Subject: [Bug target/35119] FAIL: g++.dg/template/spec35.C scan-assembler
- References: <bug-35119-12313@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from dominiq at lps dot ens dot fr 2008-02-07 14:16 -------
I get
[ibook-dhum] i686-darwin/gcc% make -k check-g++
RUNTESTFLAGS="dg.exp=template/spec35.C"
test -d testsuite || mkdir testsuite
test -d testsuite/g++ || mkdir testsuite/g++
(rootme=`${PWDCMD-pwd}`; export rootme; \
srcdir=`cd ../../gcc-4.3-work/gcc; ${PWDCMD-pwd}` ; export srcdir ; \
cd testsuite/g++; \
rm -f tmp-site.exp; \
sed '/set tmpdir/ s|testsuite|testsuite/g++|' \
< ../../site.exp > tmp-site.exp; \
/bin/sh ${srcdir}/../move-if-change tmp-site.exp site.exp; \
EXPECT=`if [ -f ${rootme}/../expect/expect ] ; then echo
${rootme}/../expect/expect ; else echo expect ; fi` ; export EXPECT ; \
if [ -f ${rootme}/../expect/expect ] ; then \
TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; ${PWDCMD-pwd}` ;
\
export TCL_LIBRARY ; fi ; \
GCC_EXEC_PREFIX="/opt/gcc/gcc4.3w/lib/gcc/" ; export GCC_EXEC_PREFIX ;
\
`if [ -f ${srcdir}/../dejagnu/runtest ] ; then echo
${srcdir}/../dejagnu/runtest ; else echo runtest; fi` --tool g++
dg.exp=template/spec35.C)
WARNING: Couldn't find the global config file.
Test Run By dominiq on Thu Feb 7 14:57:41 2008
Native configuration is i686-apple-darwin9
=== g++ tests ===
Schedule of variations:
unix
Running target unix
Using /sw/share/dejagnu/baseboards/unix.exp as board description file for
target.
Using /sw/share/dejagnu/config/unix.exp as generic interface file for target.
Using /opt/gcc/gcc-4.3-work/gcc/testsuite/config/default.exp as
tool-and-target-specific interface file.
Running /opt/gcc/gcc-4.3-work/gcc/testsuite/g++.dg/dg.exp ...
=== g++ Summary ===
# of expected passes 5
/opt/gcc/i686-darwin/gcc/testsuite/g++/../../g++ version 4.3.0 20080206
(experimental) (GCC)
with the following patch:
[ibook-dhum] gcc/gcc-4.3-work% diff -u
../_gcc_clean/gcc/testsuite/g++.dg/template/spec35.C
gcc/testsuite/g++.dg/template/spec35.C
--- ../_gcc_clean/gcc/testsuite/g++.dg/template/spec35.C 2007-11-15
13:25:04.000000000 +0100
+++ gcc/testsuite/g++.dg/template/spec35.C 2008-02-07 14:56:12.000000000
+0100
@@ -8,22 +8,22 @@
template<class T>
static void f1 (T) { }
-// { dg-final { scan-assembler-not ".glob(a|)l\[\t \]*_Z2f1IfEvT_" } }
+// { dg-final { scan-assembler-not ".glob(a|)l\[\t \]*_?_Z2f1IfEvT_" } }
template<>
void f1<float> (float) { } // Expected to have static linkage
template<class T>
void f2 (T) { }
-// { dg-final { scan-assembler ".glob(a|)l\[\t \]*_Z2f2IfEvT_" } }
+// { dg-final { scan-assembler ".glob(a|)l\[\t \]*_?_Z2f2IfEvT_" } }
template<>
void f2<float> (float) { } // Expected to have global linkage
void instantiator ()
{
- // { dg-final { scan-assembler-not ".glob(a|)l\[\t \]*_Z2f1IiEvT_" } }
+ // { dg-final { scan-assembler-not ".glob(a|)l\[\t \]*_?_Z2f1IiEvT_" } }
f1(0); // Expected to have static linkage
- // { dg-final { scan-assembler ".weak\[\t \]*_Z2f2IiEvT_" } }
+ // { dg-final { scan-assembler ".weak(_definition)?\[\t \]*_?_Z2f2IiEvT_" }
}
f2(0); // Expected to have weak global linkage
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35119