[Bug c/110874] New: ice with -O2 with recent gcc
dcb314 at hotmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Aug 2 13:46:37 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110874
Bug ID: 110874
Summary: ice with -O2 with recent gcc
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
Created attachment 55675
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55675&action=edit
C source code
The attached C code, when compiled by recent gcc trunk and -O2, does this:
foundBugs $ ~/gcc/results/bin/gcc -c -w -O2 bug945.c
buildData/keep/in.18686.c: In function ‘func_56’:
buildData/keep/in.18686.c:1184:17: note: the ABI for passing parameters with
32-byte alignment has changed in GCC 4.6
gcc: internal compiler error: Segmentation fault signal terminated program cc1
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See <https://gcc.gnu.org/bugs/> for instructions.
foundBugs $
-O1 is fine:
foundBugs $ ~/gcc/results/bin/gcc -c -w -O1 bug945.c
buildData/keep/in.18686.c: In function ‘func_56’:
buildData/keep/in.18686.c:1184:17: note: the ABI for passing parameters with
32-byte alignment has changed in GCC 4.6
foundBugs $
Yesterday's compiler (g:01b0c36ba0c3bbe6) seems fine, but today's
(g:0460c1221627938b),
some 36 commits later, does not.
I have a reduction running.
It seems a side issue that -w was given to the compiler, but it still prints
out notes about things that happened a long time ago (gcc 4.6).
More information about the Gcc-bugs
mailing list