https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125410
Yegor Yefremov <yegorslists at googlemail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |yegorslists at googlemail dot
com
--- Comment #2 from Yegor Yefremov <yegorslists at googlemail dot com> ---
Also seen with GCC 16.2.0 on hppa-linux-gnu (glibc), building the full,
unreduced cairo 1.18.4 src/cairo-pattern.c with -O1 -fPIC, so -Os isn't
required to trigger it:
../src/cairo-pattern.c: In function 'cairo_mesh_pattern_end_patch':
../src/cairo-pattern.c:1417:1: error: unrecognizable insn:
(insn 325 0 0 (set (reg/f:SI 381)
(mem/f/c:SI (plus:SI (reg/f:SI 89 sfp)
(const_int -184 [0xffffffffffffff48])) [25 p[0][0]+0 S4
A64])) -1
(nil))
during RTL pass: reload
../src/cairo-pattern.c:1417:1: internal compiler error: in extract_insn, at
recog.cc:2892
The failure depends on LRA: -mno-lra avoids it.
- The attached test case at -Os -fPIC: ICE with GCC 16.1.0 by default and
with -mlra, compiles with -mno-lra.
- The full file at -O1 -fPIC with GCC 16.2.0: compiles with -mno-lra.
- GCC 15.2.0 compiles the test case at -O1, -O2, -O3 and -Os, with and
without -fPIC.
Buildroot hits this on its autobuilders, for example:
https://autobuild.buildroot.org/results/f76b8f361d01eef892ad21722b099ba8bacfcc57
It now works around it by passing -mno-lra to cairo on hppa with GCC 16.