[Bug target/67586] New: xtensa: ICE with -Os -g -fno-builtin-malloc in dwarf2out_var_location, at dwarf2out.c:22380

jcmvbkbc at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Sep 15 10:39:00 GMT 2015


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

            Bug ID: 67586
           Summary: xtensa: ICE with -Os -g -fno-builtin-malloc in
                    dwarf2out_var_location, at dwarf2out.c:22380
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jcmvbkbc at gcc dot gnu.org
  Target Milestone: ---

Created attachment 36335
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36335&action=edit
test case

$ cc1 -Os mallocbug1.i -g -fno-builtin-malloc
 main
Analyzing compilation unit
Performing interprocedural optimizations
 <*free_lang_data> <visibility> <build_ssa_passes> <opt_local_passes>
<free-inline-summary> <whole-program> <profile_estimate> <icf> <devirt> <cp>
<inline> <pure-const> <static-var> <single-use> <comdats>Assembling functions:
 main
mallocbug1.i: In function ‘main’:
mallocbug1.i:30:1: internal compiler error: in dwarf2out_var_location, at
dwarf2out.c:22380
 }
 ^
0x6fdff4 dwarf2out_var_location
        ../../gcc/gcc/dwarf2out.c:22376
0x779879 final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*)
        ../../gcc/gcc/final.c:2385
0x77a4ec final(rtx_insn*, _IO_FILE*, int)
        ../../gcc/gcc/final.c:2058
0x77b6c9 rest_of_handle_final
        ../../gcc/gcc/final.c:4449
0x77b6c9 execute
        ../../gcc/gcc/final.c:4524


$ xtensa-test_kc705-linux-gcc -v 
Using built-in specs.
COLLECT_GCC=../build-xtensa-call0/root/bin/xtensa-test_kc705-linux-gcc
COLLECT_LTO_WRAPPER=/home/jcmvbkbc/ws/tensilica/gcc/build-xtensa-call0/root/libexec/gcc/xtensa-test_kc705-linux/6.0.0/lto-wrapper
Target: xtensa-test_kc705-linux
Configured with: ../gcc/configure
--prefix=/home/jcmvbkbc/ws/tensilica/gcc/build-xtensa-call0/root
--target=xtensa-test_kc705-linux --disable-shared --disable-libssp
--disable-libisl --enable-languages=c,c++ --enable-debug --enable-tls
Thread model: posix
gcc version 6.0.0 20150910 (experimental) (GCC) 

Configured for CALL0 ABI.


More information about the Gcc-bugs mailing list