[Bug c/109237] New: csmith: another timeout with -g -O3 this time
dcb314 at hotmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Mar 21 17:04:04 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109237
Bug ID: 109237
Summary: csmith: another timeout with -g -O3 this time
Product: gcc
Version: 13.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 54722
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54722&action=edit
C source code
The attached C code, when compiled by -O3, seems to take a reasonable time:
$ time ~/gcc/results/bin/gcc -c -w -O3 bug901.c
real 0m0.619s
user 0m0.597s
sys 0m0.012s
But adding -g seems to cause trouble:
$ (ulimit -t 120; time ~/gcc/results/bin/gcc -c -w -g -O3 bug901.c)
gcc: fatal error: Killed signal terminated program cc1
compilation terminated.
real 2m1.255s
user 1m58.650s
sys 0m1.593s
$ ~/gcc/results/bin/gcc -v 2>&1 | fgrep exp
gcc version 13.0.1 20230321 (experimental) (0963cb5fde158cce)
So the version I used seems to include today's patch from Andrew Macleod
for timing reduction.
More information about the Gcc-bugs
mailing list