From 6b19af32d6217c742bc1d32c600532505736a025 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Thu, 25 Jun 1992 10:53:19 +0000 Subject: [PATCH] (builtin_function): Set C_DECL_ANTICIPATED for user-visible names. From-SVN: r1285 --- gcc/c-decl.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.30.2