Bug 48346 - ICE when compiling a specific file with both -g and -flto
Summary: ICE when compiling a specific file with both -g and -flto
Status: RESOLVED DUPLICATE of bug 48207
Alias: None
Product: gcc
Classification: Unclassified
Component: lto (show other bugs)
Version: 4.6.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-30 00:07 UTC by Matt Hargett
Modified: 2011-03-30 09:02 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
pre-processed source of the file that triggers the ICE (27.54 KB, application/x-bzip)
2011-03-30 00:07 UTC, Matt Hargett
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Hargett 2011-03-30 00:07:16 UTC
Created attachment 23807 [details]
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
Comment 1 Richard Biener 2011-03-30 09:02:23 UTC
Dup.

*** This bug has been marked as a duplicate of bug 48207 ***