https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63741

            Bug ID: 63741
           Summary: lm32 ICE in dwarf2out_frame_debug_expr, at
                    dwarf2cfi.c:1677
           Product: gcc
           Version: 4.9.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: joel at gcc dot gnu.org

Created attachment 33886
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33886&action=edit
Preprocessed RTEMS fastlz.c which produces the error.

The attached preprocessed code gives an ICE at -O0, -O1, -O2, and -0s. Dropping
the -g gets by the ICE so this seems like  a debug info issue.

lm32-rtems4.11-gcc -O0 -g  -c fastlz.c


lm32-rtems4.11-gcc --pipe -DHAVE_CONFIG_H   -I..
-I../../cpukit/../../../milkymist/lib/include -DRTEMS_RTL_RAP_LOADER=1
-DRTEMS_RTL_ELF_LOADER=1   -mbarrel-shift-enabled -mmultiply-enabled
-mdivide-enabled -msign-extend-enabled -O2 -g -Wall -Wmissing-prototypes
-Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -MT
libdl_a-fastlz.o -MD -MP -MF .deps/libdl_a-fastlz.Tpo -c -o libdl_a-fastlz.o
`test -f 'fastlz.c' || echo
'../../../../../../rtems/c/src/../../cpukit/libdl/'`fastlz.c
In file included from
../../../../../../rtems/c/src/../../cpukit/libdl/fastlz.c:113:0:
../../../../../../rtems/c/src/../../cpukit/libdl/fastlz.c: In function
'fastlz1_compress':
../../../../../../rtems/c/src/../../cpukit/libdl/fastlz.c:418:1: internal
compiler error: in dwarf2out_frame_debug_expr, at dwarf2cfi.c:1677
 }
 ^
0x52e8b6 dwarf2out_frame_debug_expr
    ../../gcc-4.9.1/gcc/dwarf2cfi.c:1675
0x52ef6c dwarf2out_frame_debug
    ../../gcc-4.9.1/gcc/dwarf2cfi.c:2043
0x52ef6c scan_insn_after
    ../../gcc-4.9.1/gcc/dwarf2cfi.c:2369
0x5307d2 scan_trace
    ../../gcc-4.9.1/gcc/dwarf2cfi.c:2526
0x5311d5 create_cfi_notes
    ../../gcc-4.9.1/gcc/dwarf2cfi.c:2565
0x5311d5 execute_dwarf2_frame
    ../../gcc-4.9.1/gcc/dwarf2cfi.c:2925
0x5311d5 execute
    ../../gcc-4.9.1/gcc/dwarf2cfi.c:3421
Please submit a full bug report,
with preprocessed source if appropriate.

Reply via email to