(builtin_function): Set C_DECL_ANTICIPATED for user-visible names.
authorRichard Stallman <rms@gnu.org>
Thu, 25 Jun 1992 10:53:19 +0000 (10:53 +0000)
committerRichard Stallman <rms@gnu.org>
Thu, 25 Jun 1992 10:53:19 +0000 (10:53 +0000)
From-SVN: r1285

gcc/c-decl.c

index 2c5687ca76bc257209ba657ea978a8d79704198c..77c890c2f7ec8785883ce9239ab80daf570aad39 100644 (file)
@@ -2672,6 +2672,10 @@ builtin_function (name, type, function_code, library_name)
       DECL_BUILT_IN (decl) = 1;
       DECL_SET_FUNCTION_CODE (decl, function_code);
     }
+  /* Warn if a function in the namespace for users
+     is used without an occasion to consider it declared.  */
+  if (name[0] != '_' || name[1] != '_')
+    C_DECL_ANTICIPATED (decl) = 1;
 
   return decl;
 }