https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101737
Bug ID: 101737 Summary: SH4 -Os causes internal compiler error when building pixman Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: thomas.petazz...@free-electrons.com Target Milestone: --- Created attachment 51247 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51247&action=edit source file that exhibits the issue The attached source file test.c, which comes from the pixman open-source project, when compiled for SuperH 4 using gcc 9.3.0 causes an internal compiler error when built at -Os. Building at -O0 or -O2 doesn't cause any problem. $ sh4-linux-gcc -c -Os test.c during RTL pass: split1 pixman-fast-path.c: In function ‘fast_composite_scaled_nearest_8888_565_normal_OVER’: pixman-fast-path.c:1204:1: internal compiler error: Segmentation fault 1204 | FAST_NEAREST (8888_565_normal, 8888, 0565, uint32_t, uint16_t, OVER, NORMAL) | ^~~~~~ unrecognized DWARF version in .debug_info at 6 Please submit a full bug report, with preprocessed source if appropriate. See <http://bugs.buildroot.net/> for instructions. $ sh4-linux-gcc -c -O2 test.c $ sh4-linux-gcc -c -O0 test.c