From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25458 invoked by alias); 27 Oct 2010 23:22:37 -0000 Received: (qmail 25449 invoked by uid 22791); 27 Oct 2010 23:22:36 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 27 Oct 2010 23:22:32 +0000 From: "sje at cup dot hp.com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/46204] New: g++.dg/torture/stackalign/throw-1.C fails to compile on IA64 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Keywords: link-failure X-Bugzilla-Severity: normal X-Bugzilla-Who: sje at cup dot hp.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Wed, 27 Oct 2010 23:22:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-10/txt/msg02368.txt.bz2 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: unassigned@gcc.gnu.org ReportedBy: sje@cup.hp.com 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