(compile_file): Don't warn about artificial functions
authorJason Merrill <merrill@gnu.org>
Fri, 10 May 1996 18:30:07 +0000 (18:30 +0000)
committerJason Merrill <merrill@gnu.org>
Fri, 10 May 1996 18:30:07 +0000 (18:30 +0000)
        declared static and not defined.

From-SVN: r11966

gcc/toplev.c

index 0da807a7deea9456ac1bc11c5d61bf4152264b70..c3cb8b74dbfcd3e8a58679f18e0f5a5ce15e842b 100644 (file)
@@ -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,