From: Richard Stallman Date: Thu, 25 Jun 1992 10:53:19 +0000 (+0000) Subject: (builtin_function): Set C_DECL_ANTICIPATED for user-visible names. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6b19af32d6217c742bc1d32c600532505736a025;p=gcc.git (builtin_function): Set C_DECL_ANTICIPATED for user-visible names. From-SVN: r1285 --- diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 2c5687ca76b..77c890c2f7e 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -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; }