Hello,

I would like to propose removing the --enable-win32-registry configure option,
or at least making it disabled by default.

Two observations suggest that this feature has no practical users:

1. All Windows GCC distributions (e.g. MSYS2, Cygwin, w64devkit, winlibs) I
could find either explicitly pass --disable-win32-registry or, in the few cases
where they do not disable it, do not appear to use the registry lookup at all. I
am not aware of any distribution that relies on this mechanism.

2. The documentation explicitly encourages vendors using custom installers to
pass a distinct key, e.g. --enable-win32-registry=VENDOR-VERSION, to avoid
conflicts. However, searching GitHub and Google for --enable-win32-registry=
yields essentially no real-world uses apart from GCC's own documentation and
configure scripts.

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.

I am happy to prepare a patch if there is interest.

FWIW, I've found an OLD (in 2004) discussion [1] partially related to this, and
it shows that even the old MinGW.org explicitly disables it.

CC'ed MinGW and Cygwin people, also CC'ed Kenner from the old discussion.

[1]:
https://inbox.sourceware.org/gcc/[email protected]/t/#u


Reply via email to