https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96165
Bug ID: 96165 Summary: internal compiler error during IPA pass: fnsummary Product: gcc Version: 10.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: jpalus+gcc at fastmail dot com Target Milestone: --- Created attachment 48863 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48863&action=edit preprocessed source file During Mesa compilation gcc segfaults with: during IPA pass: fnsummary ../src/gallium/drivers/softpipe/sp_tex_sample.c: In function ‘sample_compare’: ../src/gallium/drivers/softpipe/sp_tex_sample.c:3862:1: internal compiler error: Segmentation fault Confirmed on both aarch64 and x86_64, note that issue occurs only if -O flag was passed. Attached source file after preprocessor. Command to reproduce: gcc -O2 -c test.c -o test.o