From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 764923858D35; Sun, 19 Mar 2023 10:20:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 764923858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679221245; bh=75/qwgrL2RjvphkA4E/JKTBf9mZ6tad2BDnvzL6ZGVg=; h=From:To:Subject:Date:From; b=aJe3gvq4sK5y/4qN4NeV+5TtPfzqTFS1bTV6xMLMKhtD4Ulk4Ji2XxTFqD6Vmq5uD 4r91GgFNaxnVkHHYxZeb6GFH5iuq6iaCqvKgy1FRVdPzhhvTAFQjhwkvojOqJJRtwW QzrZsZGxr1Z11hIFOzB0SYoOsPGDFABK7dA8O+k8= From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/109192] New: timeout with -g -O3 -fno-var-tracking ? Date: Sun, 19 Mar 2023 10:20:44 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109192 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=3D54705&action=3Dedit 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.=