On Sat, 28 Jun 2025, Jason Merrill wrote:
> + if (!flag_use_cxa_atexit != !DEFAULT_USE_CXA_ATEXIT)
> + {
> + const char *opt, *copt;
> + if (flag_use_cxa_atexit)
> + opt = "-fuse-cxa-atexit", copt = "--enable-__cxa_atexit";
> + else
> + opt = "-fno-use-cxa-atexit", copt = "--disable-__cxa_atexit";
> + warning (0, "ignoring %s, configure gcc with %s instead", opt, copt);
> + flag_use_cxa_atexit = DEFAULT_USE_CXA_ATEXIT;
> + }
The diagnostic style should use %qs for both those options.
--
Joseph S. Myers
[email protected]