https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119532
Bug ID: 119532
Summary: [avr] ICE: in build_minus_one_cst, at tree.cc:2698
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
Assignee: unassigned at gcc dot gnu.org
Reporter: gjl at gcc dot gnu.org
Target Milestone: ---
extern _Fract sinuhk_deg (unsigned short _Accum);
_Fract cosuhk_deg (unsigned short _Accum deg)
{
unsigned short _Accum _90_deg = 90uhk;
__asm ("" : "+r" (_90_deg));
// The implementation of sinuhk_deg() is such that it never returns -1,
// hence negating the result is no issue.
return deg <= _90_deg
? sinuhk_deg (_90_deg - deg)
: -sinuhk_deg (deg - _90_deg);
}
$ avr-gcc ice-m1.c -S -Os
during GIMPLE pass: tailr
ice-m1.c: In function 'cosuhk_deg':
ice-m1.c:13:1: internal compiler error: in build_minus_one_cst, at tree.cc:2698
13 | }
| ^
Target: avr
Configured with: ../../source/gcc-master/configure --target=avr --disable-nls
--with-dwarf2 --with-gnu-as --with-gnu-ld --with-long-double=64
--disable-libcc1 --disable-shared --enable-languages=c,c++
Thread model: single
Supported LTO compression algorithms: zlib
gcc version 15.0.1 20250323 (experimental) (GCC)