From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25077 invoked by alias); 19 Jun 2014 16:39:44 -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 Received: (qmail 25065 invoked by uid 48); 19 Jun 2014 16:39:41 -0000 From: "t.poechtrager at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/61564] New: #pragma GCC optimize ("-fno-lto") causes the compiler to crash Date: Thu, 19 Jun 2014 16:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: t.poechtrager at gmail dot 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-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-06/txt/msg01642.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61564 Bug ID: 61564 Summary: #pragma GCC optimize ("-fno-lto") causes the compiler to crash Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: t.poechtrager at gmail dot com Target: Linux x86_64, i686-w64-mingw32 and others $ cat test.cpp #pragma GCC push_options #pragma GCC optimize ("-fno-lto") int main(void){return 0;} #pragma GCC pop_options ### GCC 4.9.0 ### $ LC_ALL=C gcc test.cpp -flto test.cpp:4:24: internal compiler error: Segmentation fault #pragma GCC pop_options ^ Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Preprocessed source stored into /tmp/ccpuDCNO.out file, please attach this to your bugreport. ### GCC 4.6.4 ### $ LC_ALL=C gcc-4.6 test.cpp -flto # no crash