diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2015-01-15 16:33:37 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2015-01-15 08:33:37 -0800 |
commit | d86cfdb8284fa0223220b9ba08fb526dfe92a5fe (patch) | |
tree | d0294958c4031fe542f724946a0c1921d56327d5 /gcc | |
parent | 34a8f242068b60698b1cc09631c97f3bc826c2b2 (diff) | |
download | gcc-d86cfdb8284fa0223220b9ba08fb526dfe92a5fe.zip gcc-d86cfdb8284fa0223220b9ba08fb526dfe92a5fe.tar.gz gcc-d86cfdb8284fa0223220b9ba08fb526dfe92a5fe.tar.bz2 |
Ignore additional linker messages on Linux/x86 with PIE
g++.dg/other/anon5.C is expected to fail to link. On Linux/x86 with PIE
and the new linker, there are additional messages from linker:
[hjl@gnu-tools-1 gcc]$ g++ -fPIE -pie
/export/gnu/import/git/sources/gcc/gcc/testsuite/g++.dg/other/anon5.C
/tmp/ccwg53fj.o: In function `f()': anon5.C:(.text+0x7): undefined reference to `(anonymous namespace)::c::t'
/usr/local/bin/ld: /tmp/ccwg53fj.o: relocation R_X86_64_PC32 against undefined symbol `_ZN12_GLOBAL__N_11c1tE' can not be used when making a shared object; recompile with -fPIC
/usr/local/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
[hjl@gnu-tools-1 gcc]$
This patch ignores additional linker messages on Linux/x86 with PIE.
* g++.dg/other/anon5.C: Ignore additional messages on Linux/x86
with PIE.
From-SVN: r219667
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/other/anon5.C | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8a5cf7e..8733914 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-01-15 H.J. Lu <hongjiu.lu@intel.com> + + * g++.dg/other/anon5.C: Ignore additional messages on Linux/x86 + with PIE. + 2015-01-15 Richard Biener <rguenther@suse.de> PR tree-optimization/61743 diff --git a/gcc/testsuite/g++.dg/other/anon5.C b/gcc/testsuite/g++.dg/other/anon5.C index 81e9def..4e4cc44 100644 --- a/gcc/testsuite/g++.dg/other/anon5.C +++ b/gcc/testsuite/g++.dg/other/anon5.C @@ -3,6 +3,8 @@ // { dg-options "-g" } // Ignore additional message on powerpc-ibm-aix // { dg-prune-output "obtain more information" } */ +// Ignore additional messages on Linux/x86 with PIE +// { dg-prune-output "Bad value" } */ namespace { struct c |