From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26427 invoked by alias); 30 Mar 2011 00:07:22 -0000 Received: (qmail 26417 invoked by uid 22791); 30 Mar 2011 00:07:22 -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; Wed, 30 Mar 2011 00:07:18 +0000 From: "matt at use dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/48346] New: ICE when compiling a specific file with both -g and -flto 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: matt at use dot net 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, 30 Mar 2011 00:15: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: 2011-03/txt/msg03095.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48346 Summary: ICE when compiling a specific file with both -g and -flto Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto AssignedTo: unassigned@gcc.gnu.org ReportedBy: matt@use.net Created attachment 23807 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23807 pre-processed source of the file that triggers the ICE When compiling the attached pre-processed with both -g and -flto, I get this ICE: /home/matt/src/bluecoat/scorpius/main/src/common/util/fdt/getopt_long.cpp: In function 'FDT::getopt_long(int, char* const*, char const*, FDT::option const*, int*, int&, bool, char*&, int&, int&, FDT::Stream&)': /home/matt/src/bluecoat/scorpius/main/src/common/util/fdt/getopt_long.cpp:119:1: internal compiler error: in lhd_set_decl_assembler_name, at langhooks.c:158 It happens at -O[0-3]. If I remove "-g" or the "-flto", the ICE disappears. here's the commandline I'm using: g++ -pipe -m64 -g -c -fpic -nostdinc -O0 -flto -fno-builtin-abort -fno-builtin-calloc -fno-builtin-exit -fno-builtin-free -fno-builtin-malloc -fno-builtin-realloc -fvisibility=default -fno-threadsafe-statics -Werror -I/home/matt/src/clueboat/porkius/main/src/include/libc -I/home/matt/src/clueboat/porkius/main/src/include/os -I/home/matt/src/clueboat/porkius/main/src/include/hal/x86_64 -I/home/matt/src/clueboat/porkius/main/src/include/hal -I/home/matt/src/clueboat/porkius/main/src/common/include -I/home/matt/src/clueboat/porkius/main/src/common/portability/shared/include -I/home/matt/src/clueboat/porkius/main/src/common/portability/shared/include -I/home/matt/src/clueboat/porkius/main/src/common/include -I/home/matt/src/clueboat/porkius/main/src/include/legacy -I/home/matt/src/clueboat/porkius/main/src/network/stack/sys -I/home/matt/src/clueboat/porkius/main/src/network/stack/local -I/home/matt/src/clueboat/porkius/main/src/network/stack/include -I/home/matt/src/clueboat/porkius/main/src/include/testing -I/home/matt/src/clueboat/porkius/toolchain/linux/x86_64_host/gcc-cross/x86_64_target/v4.6.0/x86_64-bcsi-sgos/include/c++/4.6.0 -I/home/matt/src/clueboat/porkius/toolchain/linux/x86_64_host/gcc-cross/x86_64_target/v4.6.0/x86_64-bcsi-sgos/include/c++/4.6.0/x86_64-bcsi-sgos -DOPENSSL_FIPS -DSGOS_ANY -DSGOS_NATIVE -DSGOS_porkius -DSGOS_SHARED -DSGOS_TARGET_NAME=x86_64 -D_UTIL_DLL -D__STDC_LIMIT_MACROS -DSGOS_SRC_ROOT="\"/home/matt/src/clueboat/porkius/main/src/common/util/\"" -c /home/matt/src/clueboat/porkius/main/src/common/util/fdt/getopt_long.cpp