https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87552
Bug ID: 87552 Summary: [9 regression] FAIL: gcc.c-torture/compile/20010102-1.c -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions (test for excess errors) Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: sch...@linux-m68k.org Blocks: 85458 Target Milestone: --- Target: ia64-*-* On ia64, priorities can become negative, thus the assertion in sel_target_adjust_priority is wrong. This only happens with -O3. during RTL pass: mach /usr/local/gcc/test/gcc/testsuite/gcc.c-torture/compile/20010102-1.c: In function ‘_obstack_newchunk’: /usr/local/gcc/test/gcc/testsuite/gcc.c-torture/compile/20010102-1.c:101:1: internal compiler error: in sel_target_adjust_priority, at sel-sched.c:3333 0x40000000010bb68f sel_target_adjust_priority ../../gcc/sel-sched.c:3333 0x40000000010bb68f fill_vec_av_set ../../gcc/sel-sched.c:3727 0x40000000010bd45f fill_ready_list ../../gcc/sel-sched.c:4028 0x40000000010bd45f find_best_expr ../../gcc/sel-sched.c:4388 0x40000000010bd45f fill_insns ../../gcc/sel-sched.c:5549 0x40000000010c29cf schedule_on_fences ../../gcc/sel-sched.c:7366 0x40000000010c29cf sel_sched_region_2 ../../gcc/sel-sched.c:7504 0x40000000010c510f sel_sched_region_1 ../../gcc/sel-sched.c:7546 0x40000000010c700f sel_sched_region(int) ../../gcc/sel-sched.c:7647 0x40000000010c9def run_selective_scheduling() ../../gcc/sel-sched.c:7733 0x40000000019e473f ia64_reorg ../../gcc/config/ia64/ia64.c:9857 0x40000000010314cf execute ../../gcc/reorg.c:3984 Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85458 [Bug 85458] FAIL: gcc.dg/pr83480.c (internal compiler error)