[Bug rtl-optimization/122170] [15/16 Regression] gcc 15.2.0 (and gcc 15.1.0 as well) - ICE upon try to build CMSIS_DSP Library with and Optimization on

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Oct 6 00:31:18 GMT 2025


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2025-10-06

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Reduced testcase:
```
long b, c;
long a(long d) { return __builtin_arm_qsub(0, d); }
void e() { b = c > 0 ? c : a(c); }
```

Can reproduce with just `-mcpu=cortex-m4 -O1 -mthumb`.


More information about the Gcc-bugs mailing list