From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 062B83858C74; Tue, 7 Nov 2023 09:13:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 062B83858C74 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1699348394; bh=kZU7dY4bh7DaD46Ye77lwvwjwsfFFltv1vdCwl9uqR8=; h=From:To:Subject:Date:From; b=qyCFw7N/R3UgjekPlyDE2e39Jgu9Jta78EfE0tV7IINIEOiir7mgyqGrhsfkw6IjM aNBv1Kk2VlBIIQPRTUNs0p7rYix3b/x/q1nC2noCWe6vPW0woQDI/Jqo++RRqLpArY s/LKnIuOn3M8/1t5DlSKk1VYlc5GZ+05RwSGx0cQ= From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/112422] New: Build process does a redundant number of checks ? Date: Tue, 07 Nov 2023 09:13:10 +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: 14.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 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=3D112422 Bug ID: 112422 Summary: Build process does a redundant number of checks ? Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- I just ran a gcc trunk build. The configure line was CC=3D"clang" CXX=3D"clang++" \ ../trunk.year/configure --prefix=3D/home/dcb38/gcc/results.$DATE.asan.ubsan= \ --disable-multilib \ --disable-bootstrap \ --with-build-config=3Dbootstrap-asan \ --with-build-config=3Dbootstrap-ubsan \ --with-pkgversion=3D$HASH \ --enable-checking=3Ddf,extra,fold,rtl,yes \ --enable-languages=3Dc,c++,fortran The command I used was=20 $ (date;make -j 20;date) > mk.out 2>&1 $ grep "checking for" mk.out | sort -k 2 | uniq -c | sort -rn > 1.out $ head 1.out 20 checking for C compiler default output file name... a.out 19 checking for a BSD-compatible install... /usr/bin/install -c 18 checking for egrep... /usr/bin/grep -E 17 checking for x86_64-pc-linux-gnu-ranlib... ranlib=20 17 checking for x86_64-pc-linux-gnu-ar... ar=20 17 checking for unistd.h... (cached) yes 15 checking for x86_64-pc-linux-gnu-objdump... objdump 15 checking for minix/config.h... no 14 checking for gawk... gawk 12 checking for x86_64-pc-linux-gnu-gcc... clang That seems a lot of redundant checking to me.=20 Perhaps the build process could be made faster by only checking some proper= ties=20 once and remembering the result for later ?=