The patch removes bunch of warnings:
options-save.c:12004:29: warning: unquoted identifier or keyword ‘global_options’ in format [-Wformat-diag]
12004 | internal_error ("Error: global_options are modified in local context\n");
gcc/ChangeLog:
* optc-save-gen.awk: Quote error string.
checked_options[name]++
print " if (ptr1->x_" name " != ptr2->x_" name ")"
- print " internal_error (\"Error: global_options are modified in local context\\n\");";
+ print " internal_error (\"%<global_options%> are modified in local context\");";
}
print "}";