aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-06-25 10:53:19 +0000
committerRichard Stallman <rms@gnu.org>1992-06-25 10:53:19 +0000
commit6b19af32d6217c742bc1d32c600532505736a025 (patch)
tree2aa0fc5b442b9e0232f9141161b9b6f3d234aa09 /gcc
parent4cca064d7c8efc23375cb4ac6cc6d85234101450 (diff)
downloadgcc-6b19af32d6217c742bc1d32c600532505736a025.zip
gcc-6b19af32d6217c742bc1d32c600532505736a025.tar.gz
gcc-6b19af32d6217c742bc1d32c600532505736a025.tar.bz2
(builtin_function): Set C_DECL_ANTICIPATED for user-visible names.
From-SVN: r1285
Diffstat (limited to 'gcc')
-rw-r--r--gcc/c-decl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 2c5687c..77c890c 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;
}