public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/109192] New: timeout with -g -O3 -fno-var-tracking ?
@ 2023-03-19 10:20 dcb314 at hotmail dot com
  2023-03-19 16:56 ` [Bug middle-end/109192] timeout with " dcb314 at hotmail dot com
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: dcb314 at hotmail dot com @ 2023-03-19 10:20 UTC (permalink / raw)
  To: gcc-bugs

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.

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2023-03-30  1:04 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-19 10:20 [Bug c/109192] New: timeout with -g -O3 -fno-var-tracking ? dcb314 at hotmail dot com
2023-03-19 16:56 ` [Bug middle-end/109192] timeout with " dcb314 at hotmail dot com
2023-03-19 17:18 ` dcb314 at hotmail dot com
2023-03-19 17:18 ` dcb314 at hotmail dot com
2023-03-19 19:11 ` [Bug tree-optimization/109192] [13 Regression] timeout with -O3 -fno-var-tracking since r13-5579 pinskia at gcc dot gnu.org
2023-03-20 10:25 ` [Bug tree-optimization/109192] [13 Regression] timeout with -O3 " rguenth at gcc dot gnu.org
2023-03-20 10:35 ` rguenth at gcc dot gnu.org
2023-03-20 20:20 ` amacleod at redhat dot com
2023-03-21 10:33 ` rguenth at gcc dot gnu.org
2023-03-21 14:15 ` cvs-commit at gcc dot gnu.org
2023-03-21 14:15 ` amacleod at redhat dot com
2023-03-21 14:20 ` rguenth at gcc dot gnu.org
2023-03-28  7:52 ` chenglulu at loongson dot cn
2023-03-28  8:07 ` chenglulu at loongson dot cn
2023-03-28 13:22 ` amacleod at redhat dot com
2023-03-30  1:04 ` chenglulu at loongson dot cn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).