This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

trouble in attempt_auto_inc


Hello,

tracing the m68k trouble with cp-demangle.c:

Breakpoint 5, attempt_auto_inc (pbi=0x849ece8, inc=0x40be2618, 
    insn=0x40ab1fa0, mem=0x40ab4414, incr=0x40ab60c8, incr_reg=0x40b2fc70)
    at ../../gcc-3.4-20040107/gcc/flow.c:3366
3366      if (REGNO (SET_DEST (set)) == REGNO (incr_reg))
(gdb) call debug_rtx(set)
(set (mem:SI (reg/v/f:SI 32 [ mangled ]) [5 S4 A16])
    (reg:SI 915))

At this point REGNO(SET_DEST...) would segfault.

(gdb) call debug_rtx(incr_reg)
(reg:SI 915)

(gdb) call debug_rtx(incr)
(insn 1120 1118 1121 88 cplus-dem.c:3602 (set (mem:SI (reg/v/f:SI 32 [ mangled ]) [5 S4 A16])
        (reg:SI 915)) 25 {*m68k.md:756} (nil)
    (expr_list:REG_DEAD (reg:SI 915)
        (nil)))

(gdb) up
(gdb) print regno
$5 = 915
(dbg) call debug_rtx(set)
(set (mem:SI (reg/v/f:SI 32 [ mangled ]) [5 S4 A16])
    (plus:SI (reg:SI 915)
        (const_int 1 [0x1])))


So what exactly went wrong here?

Richard


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]