[Bug debug/66920] ICE in expand_debug_locations, at cfgexpand.c:3826

ubizjak at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Jul 20 06:05:00 GMT 2015


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

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-07-20
          Component|middle-end                  |debug
     Ever confirmed|0                           |1
      Known to fail|                            |6.0

--- Comment #2 from Uroš Bizjak <ubizjak at gmail dot com> ---
Confirmed with current mainline [trunk revision 225993]:
-
~/gcc-build/gcc/cc1plus -m32 -O1 -gdwarf-4 -mno-sse pr66920.C

#2  0x0000000000a5b1e0 in expand_debug_locations () at
/home/uros/gcc-svn/trunk/gcc/cfgexpand.c:4992
#3  0x0000000000a5c028 in (anonymous namespace)::pass_expand::execute
(this=0x25c4080, fun=0x2aaaae9519d8) at
/home/uros/gcc-svn/trunk/gcc/cfgexpand.c:6026
#4  0x0000000000f3c7c4 in execute_one_pass (pass=0x25c4080) at
/home/uros/gcc-svn/trunk/gcc/passes.c:2319

(gdb) f 2
#2  0x0000000000a5b1e0 in expand_debug_locations () at
/home/uros/gcc-svn/trunk/gcc/cfgexpand.c:4992
4992                gcc_assert (mode == GET_MODE (val)
(gdb) list
4987              val = gen_rtx_UNKNOWN_VAR_LOC ();
4988            else
4989              {
4990                mode = GET_MODE (INSN_VAR_LOCATION (insn));
4991
4992                gcc_assert (mode == GET_MODE (val)
4993                            || (GET_MODE (val) == VOIDmode
4994                                && (CONST_SCALAR_INT_P (val)
4995                                    || GET_CODE (val) == CONST_FIXED
4996                                    || GET_CODE (val) == LABEL_REF)));

(gdb) p debug_rtx (val)
(concatn:V4SI [
        (const_int 0 [0])
        (const_int 0 [0])
        (const_int 0 [0])
        (const_int 0 [0])
    ])
$3 = void
(gdb) p debug_rtx (insn)
(debug_insn 28 27 29 2 (var_location:BLK v2di (simple_return:CC)) pr66920.C:16
-1
     (nil))
$4 = void


More information about the Gcc-bugs mailing list