https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112422
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="clang" CXX="clang++" \ ../trunk.year/configure --prefix=/home/dcb38/gcc/results.$DATE.asan.ubsan \ --disable-multilib \ --disable-bootstrap \ --with-build-config=bootstrap-asan \ --with-build-config=bootstrap-ubsan \ --with-pkgversion=$HASH \ --enable-checking=df,extra,fold,rtl,yes \ --enable-languages=c,c++,fortran The command I used was $ (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 17 checking for x86_64-pc-linux-gnu-ar... ar 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. Perhaps the build process could be made faster by only checking some properties once and remembering the result for later ?