From: Jason Merrill Date: Fri, 10 May 1996 18:30:07 +0000 (+0000) Subject: (compile_file): Don't warn about artificial functions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d1b0168185c85ebe41859ae9d2bdf9251103f144;p=gcc.git (compile_file): Don't warn about artificial functions declared static and not defined. From-SVN: r11966 --- 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,