This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/19230] New: Error in gcc.dg/asm-names.c when using -fpic/-fPIC on i686-pc-linux-gnu
- From: "ghazi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jan 2005 17:34:24 -0000
- Subject: [Bug target/19230] New: Error in gcc.dg/asm-names.c when using -fpic/-fPIC on i686-pc-linux-gnu
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
When running the testsuite on 3.3 with -fpic or -fPIC I get the following
additional error:
FAIL: gcc.dg/asm-names.c (test for excess errors)
http://gcc.gnu.org/ml/gcc-testresults/2005-01/msg00029.html
http://gcc.gnu.org/ml/gcc-testresults/2005-01/msg00085.html
http://gcc.gnu.org/ml/gcc-testresults/2005-01/msg00084.html
The error message from the logfile is:
/tmp/ccofal7Q.o: In function `_main':
/tmp/ccofal7Q.o(.text+0x13): undefined reference to `__GLOBAL_OFFSET_TABLE_'
/tmp/ccofal7Q.o: In function `main':
/tmp/ccofal7Q.o(.text+0x4a): undefined reference to `__GLOBAL_OFFSET_TABLE_'
/tmp/ccofal7Q.o: In function `___main':
/tmp/ccofal7Q.o(.text+0x67): undefined reference to `__GLOBAL_OFFSET_TABLE_'
collect2: ld returned 1 exit status
Note the testcase has changed in 3.4 and 4.0 to mask the error, but the
original testcase fails the same way with those newer compilers. I could
update the testcase on the 3.3 branch to what it is on mainline if that makes
sense.
Is there something to fix in the compiler, the testcase, or should the test be
bypassed when using -fpic/-fPIC ?
--
Summary: Error in gcc.dg/asm-names.c when using -fpic/-fPIC on
i686-pc-linux-gnu
Product: gcc
Version: 3.3.6
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ghazi at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19230