The documentation for TARGET_SCHED_ADJUST_PRIORITY indicates that the hook can reduce the priority of INSN to execute it later.  The hppa hook only reduces the priority and it has been this way for years.  However, the assert in sel_target_adjust_priority() prevents reduction of the priority. The attached change revises the assert to allow the priority to be reduced to zero. This fixes PR rtl-optimization/85458. Tested on hppa-unknown-linux-gnu, hppa2.0w-hp-hpux11.11 and hppa64-hp-hpux11.11. I must admit that this happens so infrequently that I have to wonder if the hook provides any benefit on hppa.  It was supposed to keep addil instructions close to the following instruction to reduce pressure on register %r1. Okay? Dave -- John David Anglin dave.anglin@bell.net