r219667 - in /trunk/gcc/testsuite: ChangeLog g+...

hjl@gcc.gnu.org hjl@gcc.gnu.org
Thu Jan 15 16:33:00 GMT 2015


Author: hjl
Date: Thu Jan 15 16:33:37 2015
New Revision: 219667

URL: https://gcc.gnu.org/viewcvs?rev=219667&root=gcc&view=rev
Log:
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.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/other/anon5.C



More information about the Gcc-cvs mailing list