Hi Richard, >>the new testcase FAILs on Solaris: >> >>+FAIL: g++.dg/lto/pr87906 cp_lto_pr87906_0.o assemble, -O -fPIC -flto >>+UNRESOLVED: g++.dg/lto/pr87906 cp_lto_pr87906_0.o-cp_lto_pr87906_1.o >>execute -O -fPIC -flto >>+UNRESOLVED: g++.dg/lto/pr87906 cp_lto_pr87906_0.o-cp_lto_pr87906_1.o >>link -O -fPIC -flto >>+FAIL: g++.dg/lto/pr87906 cp_lto_pr87906_1.o assemble, -O -fPIC -flto >> >>/vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/lto/pr87906_0.C:6:11: >>error: expected identifier before numeric constant >>/vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/lto/pr87906_0.C:6:11: >>error: expected unqualified-id before numeric constant >> >>and several more due to the -Dsun default. How about >>sed -e 's/sun/moon/g' instead ;-) > > Argh. Works for me.
here's what I've installed after testing on i386-pc-solaris2.11. Rainer -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University 2018-11-08 Rainer Orth <r...@cebitec.uni-bielefeld.de> * g++.dg/lto/pr87906_0.C: Use moon instead of possibly predefined sun. * g++.dg/lto/pr87906_1.C: Likewise.
# HG changeset patch # Parent 9e2733fbb10cd25b0d4aec581864af37c615fdbf Don't use predefined sun in g++.dg/lto/pr87906 diff --git a/gcc/testsuite/g++.dg/lto/pr87906_0.C b/gcc/testsuite/g++.dg/lto/pr87906_0.C --- a/gcc/testsuite/g++.dg/lto/pr87906_0.C +++ b/gcc/testsuite/g++.dg/lto/pr87906_0.C @@ -3,13 +3,13 @@ // { dg-extra-ld-options "-shared -nostdlib" } namespace com { -namespace sun { +namespace moon { namespace star {} -} // namespace sun +} // namespace moon } // namespace com -namespace a = com::sun::star; +namespace a = com::moon::star; namespace com { -namespace sun { +namespace moon { namespace star { namespace uno { class a { @@ -28,7 +28,7 @@ class c { class RuntimeException : b {}; } // namespace uno } // namespace star -} // namespace sun +} // namespace moon } // namespace com template <typename> void d(int) { throw a::uno::RuntimeException(); } int f; diff --git a/gcc/testsuite/g++.dg/lto/pr87906_1.C b/gcc/testsuite/g++.dg/lto/pr87906_1.C --- a/gcc/testsuite/g++.dg/lto/pr87906_1.C +++ b/gcc/testsuite/g++.dg/lto/pr87906_1.C @@ -1,5 +1,5 @@ namespace com { -namespace sun { +namespace moon { namespace star { namespace uno { class a { @@ -15,9 +15,9 @@ class RuntimeException : b {}; } // namespace uno class C : uno::RuntimeException {}; } // namespace star -} // namespace sun +} // namespace moon } // namespace com -using com::sun::star::C; -using com::sun::star::uno::RuntimeException; +using com::moon::star::C; +using com::moon::star::uno::RuntimeException; void d() { throw RuntimeException(); } void e() { C(); }