http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46204
Summary: g++.dg/torture/stackalign/throw-1.C fails to compile
on IA64
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Keywords: link-failure
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: [email protected]
ReportedBy: [email protected]
Host: ia64-*-*
Target: ia64-*-*
Build: ia64-*-*
I am not sure exactly where this is going wrong but when
g++.dg/torture/stackalign/throw-1.C is compiled with -O3 -funroll-loops on IA64
I get an undefined label.
Here is a cutdown test case based on that test:
int global, global2;
int main()
{
int i,j,k,l,m,n;
for (i=0; i < global; i++)
for (k=0; k < j; k++)
for (l=0; l < k; l++)
for (m=0; m < l; m++)
global2 = k;
throw 0;
}
When I compile it I get:
g++ -O3 -funroll-loops x.C
/tmp/ccVWUtRi.o: In function `main':
x.C:(.text+0xc2): undefined reference to `.L34'
collect2: ld returned 1 exit status