From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23501 invoked by alias); 29 Mar 2012 18:16:25 -0000 Received: (qmail 23491 invoked by uid 22791); 29 Mar 2012 18:16:24 -0000 X-SWARE-Spam-Status: No, hits=-2.9 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; Thu, 29 Mar 2012 18:16:12 +0000 From: "mikulas at artax dot karlin.mff.cuni.cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/52778] New: gcc crashes with -flto on PA-RISC Date: Thu, 29 Mar 2012 18:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mikulas at artax dot karlin.mff.cuni.cz 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 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: 2012-03/txt/msg02600.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52778 Bug #: 52778 Summary: gcc crashes with -flto on PA-RISC Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto AssignedTo: unassigned@gcc.gnu.org ReportedBy: mikulas@artax.karlin.mff.cuni.cz Host: hppa-linux-gnu Target: hppa-linux-gnu Build: hppa-linux-gnu When compiling a specific version of the Links browser on PA-RISC with -flto, I got a crash in lto1. The crash happens on gcc-4.7.0 and gcc-4.7.0-RC-20120302. It doesn't happen with gcc-4.6.[23]. I compiled gcc without optimization to rule out a possibility of miscompiled compiler. The crash still happens. I couldn't reduce the crash to a simple example --- even minor changes in the source code resulted in the crash going away. So I'm uploading all the source files and include files so that someone can reproduce the crash. The system is Debian 5 on PA-RISC.