GCC Newspaper
NOVEMBER 30, 2026
gcc — Proposed

Remove --enable-win32-registry or disable by default

Proposes removing or disabling the --enable-win32-registry configure option due to lack of practical use.

The proposer questions the utility of the –enable-win32-registry configure option in GCC, citing that major Windows distributions either disable it or do not utilize the registry lookup mechanism. Furthermore, searches for real-world usage of custom registry keys (e.g., –enable-win32-registry=VENDOR-VERSION) yield no results beyond GCC’s own documentation. The proposal suggests either removing the option to simplify configuration and dead code, or at least disabling it by default as a lower-risk alternative.

In the Thread 1 participant
  1. Zhongteng Gui <dragon-archer@outlook.com> proposer

    Proposes removing or disabling the --enable-win32-registry configure option, as it appears to be unused in practice by Windows GCC distributions and vendors.

    “Given this, the option appears to be unused in practice. Removing it would simplify configuration and avoid maintaining dead code; default-disabling it would be a lower-risk alternative, while still allowing anyone with a real use case to opt in explicitly.”

In Details

This RFC targets the GCC build system, specifically the configuration options related to Windows. The --enable-win32-registry option, if enabled, allows GCC to register itself in the Windows registry, typically for installer purposes. The proposal argues this feature is vestigial and likely unused, impacting build system maintenance and potentially introducing subtle configuration issues if relied upon.

For Context
configure option
A flag passed to the configure script during the build process to customize how software is compiled and installed.
Windows registry
A hierarchical database in Windows used for storing configuration settings and options for the operating system and installed applications.
Filed Under: gccbuild systemwindowsconfiguration