https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110220
Georg-Johann Lay <gjl at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gjl at gcc dot gnu.org --- Comment #6 from Georg-Johann Lay <gjl at gcc dot gnu.org> --- I can reproduce Andi's testcase, and with -fdisable-rtl-avr-casesi the ICE goes away. Hence 1) This is just an accident, or 2) There is a bug in avr-specific pass avr-casesi (as dumped with -fdump-rtl-avr-casesi) like wrong RTL-sharing or such, or 3) cfgrtl's assertion is too strict and effectively disallows such target-specific (optimization) passes. I don't currently have time to look into this in a timely manner.