https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113324
Bug ID: 113324
Summary: internal compiler error: in reload_combine_note_use,
at postreload.c:1534
Product: gcc
Version: 10.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: roland.illig at gmx dot de
Target Milestone: ---
Target: vax
Created attachment 57035
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57035&action=edit
preprocessed source causing the internal compiler error
GCC 10.5.0 on NetBSD/x86_64, cross-built with target NetBSD/vax crashes:
vax--netbsdelf-gcc -ftrapv -std=gnu99 -O2 -c cgram.c
during RTL pass: postreload
cgram.c: In function 'yyparse':
cgram.c:218:1: internal compiler error: in reload_combine_note_use, at
postreload.c:1534
218 | }
| ^
0xd6fcc3 reload_combine_note_use
/home/rillig/proj/src/tools/gcc/../../external/gpl3/gcc.old/dist/gcc/postreload.c:1534
0xd70052 reload_combine_note_use
/home/rillig/proj/src/tools/gcc/../../external/gpl3/gcc.old/dist/gcc/postreload.c:1596
0xd70052 reload_combine_note_use
/home/rillig/proj/src/tools/gcc/../../external/gpl3/gcc.old/dist/gcc/postreload.c:1596
0xd6f694 reload_combine
/home/rillig/proj/src/tools/gcc/../../external/gpl3/gcc.old/dist/gcc/postreload.c:1383
0xd6c093 reload_cse_regs
/home/rillig/proj/src/tools/gcc/../../external/gpl3/gcc.old/dist/gcc/postreload.c:67
0xd71e8c execute
/home/rillig/proj/src/tools/gcc/../../external/gpl3/gcc.old/dist/gcc/postreload.c:2334
Replacing -O2 with -Os doesn't crash.
Removing -ftrapv doesn't crash.