GCC Newspaper
NOVEMBER 30, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
build Performance Win

build: Shortens bootstrap time by allowing configure-gcc to run sooner.

Bootstrap build times are reduced by letting gcc's configure script run in parallel with external library builds.

This commit optimizes the GCC build process by allowing the configure-gcc script to start as soon as the GMP library’s configuration is complete, rather than waiting for all GMP, MPFR, MPC, and ISL libraries to be fully built. This change significantly shortens bootstrap build times, with reported improvements of up to 7% on specific architectures and configurations. The configure-gcc script has minimal dependencies on these libraries during its own configuration phase.

In Details

build: The configure-gcc script's dependency on fully built GMP, MPFR, MPC, and ISL libraries during bootstrap has been relaxed. Previously, configure-gcc waited for all four libraries to be built, leading to serialization. This commit adjusts the dependencies so configure-gcc only depends on configure-gmp (similar to its existing dependency on configure-gettext rather than all-gettext), reducing its build-time overhead. It also ensures a check for gmp.h presence is performed early to prevent incorrect auto-host.h generation.

For Context
bootstrap
The process of compiling a compiler using an earlier version of itself, or using a different compiler, to build a new version. This is a common method for building toolchains.
configure script
A script run before compilation that checks system capabilities and sets up build parameters and Makefiles tailored to the specific environment. configure-gcc is the specific configure script for the GCC compiler itself.
GMP
The GNU Multiple Precision Arithmetic Library, used for arbitrary-precision arithmetic. GCC uses it for internal calculations and for supporting languages that require it.
MPFR
Multiple Precision Floating-Point Reliable library, used for arbitrary-precision floating-point computations with correct rounding. GCC uses it for floating-point support.
MPC
A library for complex number arithmetic with arbitrarily large precision. GCC uses it for complex number support.
ISL
Integer Set Library, a C library for integer set representations, manipulation, and intersection, used for static analysis and optimization.
auto-host.h
A header file generated by the configure script that contains definitions specific to the host system's architecture and operating system, used by the compiler.
Filed Under: buildoptimizationbootstrap