https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109192

            Bug ID: 109192
           Summary: timeout with -g -O3 -fno-var-tracking ?
           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 54705
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54705&action=edit
C source code

The attached C code can't be compiled in ten minutes, when -O3
-fno-var-tracking is used:

$ (ulimit -t 600; time /home/dcb36/gcc/results/bin/gcc  -w -c -O3
-fno-var-tracking  bug898.c)
gcc: fatal error: Killed signal terminated program cc1
compilation terminated.

real    10m6.003s
user    9m59.649s
sys     0m0.103s

It is fine when -O3 is replaced by -O2:

$ (ulimit -t 600; time /home/dcb36/gcc/results/bin/gcc  -w -c -O2
-fno-var-tracking  bug898.c)

real    0m0.453s
user    0m0.434s
sys     0m0.014s

The bug first seems to occur sometime between 20230101 and 20230221.

$ for i in ~/gcc/results.20230*/bin/gcc; do echo $i; (ulimit -t 60; time $i -c
-w -O3 -fno-var-tracking bug898.c); done
/home/dcb36/gcc/results.20230101/bin/gcc

real    0m1.140s
user    0m0.678s
sys     0m0.021s
/home/dcb36/gcc/results.20230221.asan.ubsan/bin/gcc
gcc: fatal error: Killed signal terminated program cc1
compilation terminated.

real    1m0.606s
user    0m59.990s
sys     0m0.016s

Git hashes are g:4f1314f547f69d3a2b1f16ce301267e3bfb4e427 and
g:a804419c89db9e1c, a range of some 1,800 commits.

Reply via email to