The error message is not clear what options are being taked about when it says the values need to match; plus there is a wrong quotation dealing with the diagnostic. So this changes the error message to be exactly talking about the param options that are being taked about and now with the options, it needs the quoting.
OK? Built and tested for aarch64-linux-gnu. gcc/ChangeLog: * config/aarch64/aarch64.cc (aarch64_override_options_internal): Fix error message for mismatch guard size and probing interval. Signed-off-by: Andrew Pinski <quic_apin...@quicinc.com> --- gcc/config/aarch64/aarch64.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/config/aarch64/aarch64.cc b/gcc/config/aarch64/aarch64.cc index 32eae49d4e9..2da743469ae 100644 --- a/gcc/config/aarch64/aarch64.cc +++ b/gcc/config/aarch64/aarch64.cc @@ -18334,7 +18334,7 @@ aarch64_override_options_internal (struct gcc_options *opts) "size. Given value %d (%llu KB) is out of range", guard_size, (1ULL << guard_size) / 1024ULL); - /* Enforce that interval is the same size as size so the mid-end does the + /* Enforce that interval is the same size as size so the middle-end does the right thing. */ SET_OPTION_IF_UNSET (opts, &global_options_set, param_stack_clash_protection_probe_interval, @@ -18346,8 +18346,8 @@ aarch64_override_options_internal (struct gcc_options *opts) int probe_interval = param_stack_clash_protection_probe_interval; if (guard_size != probe_interval) - error ("stack clash guard size %<%d%> must be equal to probing interval " - "%<%d%>", guard_size, probe_interval); + error ("%<--param stack-clash-protection-probe-interval=%d%> needs to match " + "%<--param stack-clash-protection-guard-size=%d%>", probe_interval, guard_size); /* Enable sw prefetching at specified optimization level for CPUS that have prefetch. Lower optimization level threshold by 1 -- 2.43.0