diff options
Diffstat (limited to 'gcc/symtab.c')
-rw-r--r-- | gcc/symtab.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/symtab.c b/gcc/symtab.c index 4bf37a18171..905ca05e578 100644 --- a/gcc/symtab.c +++ b/gcc/symtab.c @@ -1002,6 +1002,15 @@ symtab_node::debug (void) /* Verify common part of symtab nodes. */ +#if __GNUC__ >= 10 +/* Disable warnings about missing quoting in GCC diagnostics for + the verification errors. Their format strings don't follow GCC + diagnostic conventions and the calls are ultimately followed by + one to internal_error. */ +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wformat-diag" +#endif + DEBUG_FUNCTION bool symtab_node::verify_base (void) { @@ -1288,6 +1297,10 @@ symtab_node::verify_symtab_nodes (void) } } +#if __GNUC__ >= 10 +# pragma GCC diagnostic pop +#endif + /* Make DECL local. FIXME: We shouldn't need to mess with rtl this early, but other code such as notice_global_symbol generates rtl. */ |