https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121974
Bug ID: 121974
Summary: Timeout with -O1
Product: gcc
Version: 16.0
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 62399
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62399&action=edit
C source code
For the attached C code, compilation with -O1 on recent
gcc seems to take a long time.
foundBugs $ time ../results.20250915.asan.ubsan/bin/gcc -c -w -O1 bug1122.c
real 0m0.332s
user 0m0.321s
sys 0m0.011s
foundBugs $ (ulimit -t 60; time ../results.20250917.asan.ubsan/bin/gcc -c -w
-O1 bug1122.c)
gcc: fatal error: Killed signal terminated program cc1
compilation terminated.
real 1m0.449s
user 0m57.304s
sys 0m3.124s
foundBugs $
foundBugs $ ../results.20250915.asan.ubsan/bin/gcc -v 2>&1 | grep exp
gcc version 16.0.0 20250915 (experimental) (bd83c6227c6c2ccb)
foundBugs $ ../results.20250917.asan.ubsan/bin/gcc -v 2>&1 | grep exp
gcc version 16.0.0 20250917 (experimental) (d81e24bbb930e238)
foundBugs $