https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68701
Bug ID: 68701 Summary: "gcc -m32 -finstrument-functions -ffixed-ebp" produces internal compiler error Product: gcc Version: 4.9.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: henric at bergenwall dot com Target Milestone: --- Program to be compiled: a.c: int main(int argc, char* argv[]) { return argc-1; } Full compile command: gcc -m32 -finstrument-functions -ffixed-ebp a.c I have tested to compile the program with the following versions of gcc: gcc-4.3.4: Compilation is successful! gcc-4.7.1: Compilation is successful! gcc-4.8.1: Compilation is successful! gcc-4.9.1: Compilation fails! gcc-4.9.2: Compilation fails! gcc-5.2.0: Compilation fails! When the compilation is successful, the compiler gives no output. When the compilation fails, the compiler produces the following output: > gcc -m32 -finstrument-functions -ffixed-ebp a.c a.c: In function 'main': a.c:4:1: internal compiler error: in dwarf2out_frame_debug_expr, at dwarf2cfi.c:1550 } ^ 0x66b891 dwarf2out_frame_debug_expr /tmp/gcc391/build-gcc-4.9.1/../gcc-4.9.1/gcc/dwarf2cfi.c:1548 0x66bda3 dwarf2out_frame_debug /tmp/gcc391/build-gcc-4.9.1/../gcc-4.9.1/gcc/dwarf2cfi.c:2043 0x66bda3 scan_insn_after /tmp/gcc391/build-gcc-4.9.1/../gcc-4.9.1/gcc/dwarf2cfi.c:2369 0x66db12 scan_trace /tmp/gcc391/build-gcc-4.9.1/../gcc-4.9.1/gcc/dwarf2cfi.c:2526 0x66e468 create_cfi_notes /tmp/gcc391/build-gcc-4.9.1/../gcc-4.9.1/gcc/dwarf2cfi.c:2565 0x66e468 execute_dwarf2_frame /tmp/gcc391/build-gcc-4.9.1/../gcc-4.9.1/gcc/dwarf2cfi.c:2925 0x66e468 execute /tmp/gcc391/build-gcc-4.9.1/../gcc-4.9.1/gcc/dwarf2cfi.c:3421 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. Here is a more detailed description of the gcc-4.9.1 version: > gcc -v Using built-in specs. COLLECT_GCC=/proj/epg-tools/gcc/4.9.1/bin/gcc COLLECT_LTO_WRAPPER=/proj/epg-tools/gcc/4.9.1/libexec/gcc/x86_64-unknown-linux-gnu/4.9.1/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: /tmp/gcc391/build-gcc-4.9.1/../gcc-4.9.1/configure --prefix=/proj/epg-tools/gcc/4.9.1 Thread model: posix gcc version 4.9.1 (GCC)