https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102752
Bug ID: 102752 Summary: [12 Regression] Recent change to ldist causing ICE on msp430-elf, rl78-elf, and xstormy16-elf Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: law at gcc dot gnu.org Target Milestone: --- After this change: msp430-elf, rl78-elf and xstormy16-elf are all getting an ICE on gcc.c-torture/execute/ >From the msp430-elf gcc.log file: /home/jlaw/jenkins/workspace/msp430-elf/gcc/gcc/testsuite/gcc.c-torture/execute/20100827-1.c: In function 'foo':^M /home/jlaw/jenkins/workspace/msp430-elf/gcc/gcc/testsuite/gcc.c-torture/execute/20100827-1.c:3:1: internal compiler error: tree check: expected class 'type', have 'exceptional' (ssa_name) in transform_reduction_loop, at tree-loop-distribution.c:3684^M 0x1532ceb tree_class_check_failed(tree_node const*, tree_code_class, char const*, int, char const*)^M ../../..//gcc/gcc/tree.c:8739^M 0x861c29 tree_class_check(tree_node*, tree_code_class, char const*, int, char const*)^M ../../..//gcc/gcc/tree.h:3556^M 0x12006d9 loop_distribution::transform_reduction_loop(loop*)^M ../../..//gcc/gcc/tree-loop-distribution.c:3684^M 0x1200d92 loop_distribution::execute(function*)^M ../../..//gcc/gcc/tree-loop-distribution.c:3776^M 0x12012bd execute^M ../../..//gcc/gcc/tree-loop-distribution.c:3901^M Please submit a full bug report,^M You should be able to reproduce this with just a cross compiler. No assembler or target libraries should be needed.