https://gcc.gnu.org/g:8aec3a79924e6a99c0ca715a05cc97c8d9c1d2a5
commit r17-4142-g8aec3a79924e6a99c0ca715a05cc97c8d9c1d2a5 Author: Richard Sandiford <[email protected]> Date: Thu Sep 10 21:56:26 2026 +0100 gcn: Tweak error message Building amdgcn-* fails with config-list.mk because of a diagnostic warning about: inform (UNKNOWN_LOCATION, "Try -foffload-options=-mxnack=any"); I know some people aren't fans of the diagnostic warnings, but I think in this case the warnings are correct. The warning_at on the previous line starts with an abbreviation, so the uppercase letter seems correct there (and does not generate a warning). gcc/ * config/gcn/gcn.cc (gcn_init_cumulative_args): Start the inform message with a lowercase letter. Quote the option name. Diff: --- gcc/config/gcn/gcn.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/gcn/gcn.cc b/gcc/config/gcn/gcn.cc index bbeaef3f9271..e2a1e5d0e744 100644 --- a/gcc/config/gcn/gcn.cc +++ b/gcc/config/gcn/gcn.cc @@ -2999,7 +2999,7 @@ gcn_init_cumulative_args (CUMULATIVE_ARGS *cum /* Argument info to init */ , { warning_at (UNKNOWN_LOCATION, 0, "Unified Shared Memory is required, but XNACK is disabled"); - inform (UNKNOWN_LOCATION, "Try -foffload-options=-mxnack=any"); + inform (UNKNOWN_LOCATION, "try %<-foffload-options=-mxnack=any%>"); warned_xnack = 1; }
