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

David Malcolm <dmalcolm at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dmalcolm at gcc dot gnu.org

--- Comment #5 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Created attachment 45443
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45443&action=edit
Reduced test case

This ICEs with -O3 at the same place.

3332      gcc_assert (new_priority >= 0);

where:

3321    static int
3322    sel_target_adjust_priority (expr_t expr)
3323    {
3324      int priority = EXPR_PRIORITY (expr);
3325      int new_priority;
3326    
3327      if (targetm.sched.adjust_priority)
3328        new_priority = targetm.sched.adjust_priority (EXPR_INSN_RTX (expr),
priority);
3329      else
3330        new_priority = priority;
3331    
3332      gcc_assert (new_priority >= 0);

(gdb) p expr->priority
$7 = -1
(gdb) p new_priority
$8 = -1
(gdb) (gdb) p targetm.sched.adjust_priority
Undefined command: "".  Try "help".
(gdb) p targetm.sched.adjust_priority
$9 = (int (*)(rtx_insn *, int)) 0x0

Reply via email to