From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5752 invoked by alias); 19 Feb 2012 17:20:54 -0000 Received: (qmail 5734 invoked by uid 22791); 19 Feb 2012 17:20:52 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,SUBJ_OBFU_PUNCT_FEW 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; Sun, 19 Feb 2012 17:20:39 +0000 From: "pterjan at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/52310] New: Internal Compiler Error when building lesstif with -Wp,-D_FORTIFY_SOURCE=2 Date: Sun, 19 Feb 2012 17:29: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-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pterjan 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-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-02/txt/msg01901.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52310 Bug #: 52310 Summary: Internal Compiler Error when building lesstif with -Wp,-D_FORTIFY_SOURCE=2 Classification: Unclassified Product: gcc Version: 4.6.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned@gcc.gnu.org ReportedBy: pterjan@gmail.com Created attachment 26701 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26701 Preprocessed source [pterjan@jonund Xm-2.1]$ gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include/Motif-2.1 -I../../include/Motif-2.1 -I/usr/include -I/usr/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -DMWM_DDIR=\"/usr/share/X11/mwm\" -c XmString.c -fPIC -DPIC -o .libs/XmString.o {standard input}: Assembler messages: {standard input}: Warning: end of file not at end of a line; newline inserted {standard input}:2041: Error: unbalanced parenthesis in operand 2. {standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive gcc: internal compiler error: Segmentation fault (program cc1) I attached the preprocessed source, it crashes here (x86_64) when using gcc -g -c XmStringE.c with gcc-4.6.2 This preprocessed source builds fine using gcc-4.5.1 (even if it gives a lot of warning about casting pointers to int).