Closed MyriadBugs closed 1 month ago
@MyriadBugs , thank you for your report,
I tested it with GCC 14, and no issues were found. The new release will come soon
@MyriadBugs , https://github.com/espressif/crosstool-NG/releases/tag/esp-14.2.0_20240906 is released and used for IDF master branch
The following simplified example causes an ICE in GCC for the versions listed in title, but not 12.2.0 (20230208).
O2
/O3
/Os
if-fno-expensive-optimizations
and/or-fno-tree-sra
are setO1
andOg
regardless of above flagsSeems like there are shenanigans when GCC tries to optimize the value structure then build the SLL/SLLI and MOVI/MOVI.N instruction assignments. I am not a compiler dev so out of my league here.
Reproduction is fairly simple, compile with
-Os
to crash, compile with-Os -fno-tree-sra
and/or-Os -fno-expensive-optimizations
to workaround.Simplified Reproduction
GCC Error
Failing IRA Pass Emergency Dump