This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/33645] New: undefined static variable in vortex for -fno-unit-at-a-time
- From: "janis at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Oct 2007 18:18:39 -0000
- Subject: [Bug tree-optimization/33645] New: undefined static variable in vortex for -fno-unit-at-a-time
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Benchmark vortex from SPEC CPU2000 compiled with "-O2 -fno-unit-at-atime" for
powerpc64-linux fails to build due to a missing symbol. For each of 24 cross
cc1's that I tried, symbol "That" from the following minimized testcase is not
defined in the .s file:
extern void bar (int *);
void
foo (void)
{
static int That;
static int *This = &That;
bar (This);
}
The failure starts with this patch:
http://gcc.gnu.org/viewcvs?view=rev&rev=126947
r126947 | hubicka | 2007-07-26 03:43:40 +0000 (Thu, 26 Jul 2007)
--
Summary: undefined static variable in vortex for -fno-unit-at-a-
time
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: janis at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33645