diff --git a/gcc/toplev.c b/gcc/toplev.c index 0da807a7dee..c3cb8b74dbf 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -2398,6 +2398,7 @@ compile_file (name) || TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl))) && DECL_INITIAL (decl) == 0 && DECL_EXTERNAL (decl) + && ! DECL_ARTIFICIAL (decl) && ! TREE_PUBLIC (decl)) { pedwarn_with_decl (decl,