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

--- Comment #3 from John David Anglin <danglin at gcc dot gnu.org> ---
Backtrace:

Breakpoint 1, _Z4as_aIP13rtx_jump_insn8rtx_insnET_PT0_ (p=0x7ae2beb0)
    at ../../gcc/gcc/is-a.h:192
192       gcc_checking_assert (is_a <T> (p));
(gdb) bt
Python Exception <type 'exceptions.ImportError'> Failed to load
/home/gnu/lib/python2.7/lib-dynload/itertools.sl: 
#0  _Z4as_aIP13rtx_jump_insn8rtx_insnET_PT0_ (p=0x7ae2beb0)
    at ../../gcc/gcc/is-a.h:192
#1  0x007bab4c in _Z20emit_jump_insn_afterP7rtx_defS0_ (pattern=0x7ae2beb0, 
    after=0x7ae2bca8) at ../../gcc/gcc/emit-rtl.c:4749
#2  0x0093a994 in _Z22emit_return_into_blockbP15basic_block_def (
    simple_p=false, bb=0x7aeb8200) at ../../gcc/gcc/function.c:5633
#3  0x0093b2fc in _Z20emit_return_for_exitP8edge_defb (
    exit_fallthru_edge=0x7ae2bcd0, simple_p=false)
    at ../../gcc/gcc/function.c:5779
#4  0x0093bbcc in _Z34thread_prologue_and_epilogue_insnsv ()
    at ../../gcc/gcc/function.c:5961
#5  0x0093d41c in _ZL43rest_of_handle_thread_prologue_and_epiloguev ()
    at ../../gcc/gcc/function.c:6443
#6  0x0093d544 in
_ZN12_GLOBAL__N_133pass_thread_prologue_and_epilogue7executeEP8function
(this=0x40442528) at ../../gcc/gcc/function.c:6481
#7  0x01198304 in _Z16execute_one_passP8opt_pass (pass=0x40442528)
    at ../../gcc/gcc/passes.c:2328
#8  0x01198750 in _ZL19execute_pass_list_1P8opt_pass (pass=0x40442528)
    at ../../gcc/gcc/passes.c:2381
#9  0x011987a4 in _ZL19execute_pass_list_1P8opt_pass (pass=0x40442330)
    at ../../gcc/gcc/passes.c:2382
#10 0x011987a4 in _ZL19execute_pass_list_1P8opt_pass (pass=0x40441688)
    at ../../gcc/gcc/passes.c:2382
---Type <return> to continue, or q <return> to quit---
#11 0x01198874 in _Z17execute_pass_listP8functionP8opt_pass (fn=0x7ae28068, 
    pass=0x4043f0d8) at ../../gcc/gcc/passes.c:2392
#12 0x005654f0 in _ZN11cgraph_node6expandEv (this=0x7aeb6000)
    at ../../gcc/gcc/cgraphunit.c:1932
#13 0x00566014 in _ZL20expand_all_functionsv ()
    at ../../gcc/gcc/cgraphunit.c:2068
#14 0x00567454 in _ZN12symbol_table7compileEv (this=0x7ae28000)
    at ../../gcc/gcc/cgraphunit.c:2421
#15 0x00567800 in _ZN12symbol_table25finalize_compilation_unitEv (
    this=0x7ae28000) at ../../gcc/gcc/cgraphunit.c:2508
#16 0x0140c714 in _ZL12compile_filev () at ../../gcc/gcc/toplev.c:575
#17 0x014118b4 in _ZL10do_compilev () at ../../gcc/gcc/toplev.c:2065
#18 0x01411f64 in _ZN6toplev4mainEiPPc (this=0x7eff0688, argc=13, 
    argv=0x7eff051c) at ../../gcc/gcc/toplev.c:2166
#19 0x01dc7988 in main (argc=13, argv=0x7eff051c) at ../../gcc/gcc/main.c:39
(gdb) p *p
$1 = {<rtx_def> = {code = INSN, mode = VOIDmode, jump = 0, call = 0, 
    unchanging = 0, volatil = 0, in_struct = 0, used = 0, frame_related = 0, 
    return_val = 0, u2 = {original_regno = 16, insn_uid = 16, 
      symbol_ref_flags = 16, var_location_status = 16, num_elem = 16}, u = {
      fld = {{rt_int = 2061679784, rt_uint = 2061679784, 
          rt_str = 0x7ae2bca8 "", rt_rtx = 0x7ae2bca8, rt_rtvec = 0x7ae2bca8, 
          rt_type = 2061679784, rt_addr_diff_vec_flags = {min_align = 122, 
            base_after_vec = 1, min_after_vec = 1, max_after_vec = 1, 
            min_after_base = 0, max_after_base = 0, offset_unsigned = 0, 2, 
            scale = 188}, rt_cselib = 0x7ae2bca8, rt_tree = 0x7ae2bca8, 
          rt_bb = 0x7ae2bca8, rt_mem = 0x7ae2bca8, rt_constant = 0x7ae2bca8, 
          rt_cfi = 0x7ae2bca8}}, hwint = {8854847249166024328}, reg = {
        regno = 2061679784, nregs = 122, unused = 14859912, 
        attrs = 0x7aeb8200}, block_sym = {fld = {{rt_int = 2061679784, 
            rt_uint = 2061679784, rt_str = 0x7ae2bca8 "", 
            rt_rtx = 0x7ae2bca8, rt_rtvec = 0x7ae2bca8, rt_type = 2061679784, 
            rt_addr_diff_vec_flags = {min_align = 122, base_after_vec = 1, 
              min_after_vec = 1, max_after_vec = 1, min_after_base = 0, 
              max_after_base = 0, offset_unsigned = 0, 2, scale = 188}, 
            rt_cselib = 0x7ae2bca8, rt_tree = 0x7ae2bca8, rt_bb = 0x7ae2bca8, 
            rt_mem = 0x7ae2bca8, rt_constant = 0x7ae2bca8, 
            rt_cfi = 0x7ae2bca8}, {rt_int = 2061680264, rt_uint = 2061680264, 
            rt_str = 0x7ae2be88 "", rt_rtx = 0x7ae2be88, 
---Type <return> to continue, or q <return> to quit---
            rt_rtvec = 0x7ae2be88, rt_type = 2061680264, 
            rt_addr_diff_vec_flags = {min_align = 122, base_after_vec = 1, 
              min_after_vec = 1, max_after_vec = 1, min_after_base = 0, 
              max_after_base = 0, offset_unsigned = 0, 2, scale = 190}, 
            rt_cselib = 0x7ae2be88, rt_tree = 0x7ae2be88, rt_bb = 0x7ae2be88, 
            rt_mem = 0x7ae2be88, rt_constant = 0x7ae2be88, 
            rt_cfi = 0x7ae2be88}}, block = 0x7aeb8200, 
        offset = 6614249635839}, rv = {cl = 1, decimal = 1, sign = 1, 
        signalling = 1, canonical = 0, uexp = 48413864, sig = {2061680264, 
          2062254592, 2062279856, 1539, 4294967295}}, fv = {data = {
          low = 8854847249166024328, high = 8857316030728103088}, 
        mode = 1539}, hwiv = {elem = {
          8854847249166024328}}}}, <No data fields>}
(gdb) p debug_rtx (p)
(insn 16 10 15 2 (parallel [
            (return)
            (use (reg:SI 2 %r2))
        ])
Breakpoint 1, rtx_insn const* as_a<rtx_insn const*, rtx_def const>(rtx_def
const*) () at ../../gcc/gcc/is-a.h:192
192       gcc_checking_assert (is_a <T> (p));
The program being debugged stopped while in a function called from GDB.
Evaluation of the expression containing the function
(_Z9debug_rtxPK7rtx_def) will be abandoned.
When the function is done executing, GDB will silently stop.

Reply via email to