GCC Newspaper
JULY 29, 2026
Date
/
Architectures
Components
Topics
News & Policy
build

Remove obsolete $gas variable from build configuration

Removes the `$gas` variable from GCC's build configuration, as it's no longer needed after `HAVE_GNU_AS` removal.

This commit removes the $gas variable from GCC’s configuration files, including config.gcc, configure.ac, and acinclude.m4. This cleanup is a consequence of removing the HAVE_GNU_AS macro, making the explicit $gas variable unnecessary for configurations that now rely on as_flavor or assume gas by default.

In Details

The $gas variable, once used to track the presence and configuration of the GNU assembler, has been removed from various GCC build scripts and configuration files. With the HAVE_GNU_AS macro eliminated, the build system now relies on as_flavor checks or unconditional defaults for gas configurations. This simplifies the codebase by removing redundant variables and logic related to assembler detection.

For Context
as_flavor
A build system variable or check that identifies the specific type or version of the assembler being used, allowing for tailored configuration.
config.gcc
A file used in GCC's build system to store configuration-specific settings and defaults for various target architectures and operating systems.
acinclude.m4
A file containing widely used m4 macros for the Autoconf build system, which are included in configure.ac to define common checks and configurations.
Filed Under: buildassemblerconfigure