This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/17828] New: -O2 -fPIC doesn't work with switches in linkonce functions and new binutils
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Oct 2004 09:25:47 -0000
- Subject: [Bug target/17828] New: -O2 -fPIC doesn't work with switches in linkonce functions and new binutils
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
--- gcc/testsuite/g++.old-deja/g++.other/comdat5.C.jj 2004-10-04
11:20:08.335577980 +0200
+++ gcc/testsuite/g++.old-deja/g++.other/comdat5.C 2004-10-04
11:19:49.362989353 +0200
@@ -0,0 +1,5 @@
+// { dg-do link }
+// { dg-additional-sources " comdat5-aux.cc" }
+// { dg-options "-O2 -fPIC" }
+
+#include "comdat4.C"
--- gcc/testsuite/g++.old-deja/g++.other/comdat5-aux.cc.jj 2004-10-04
11:20:03.496448065 +0200
+++ gcc/testsuite/g++.old-deja/g++.other/comdat5-aux.cc 2004-10-04
11:19:59.249211735 +0200
@@ -0,0 +1,1 @@
+#include "comdat4-aux.cc"
fails on powerpc-redhat-linux.
The local label at the start of jump table is spilled into .got2 section.
--
Summary: -O2 -fPIC doesn't work with switches in linkonce
functions and new binutils
Product: gcc
Version: 3.4.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jakub at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: powerpc-redhat-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17828