projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cca064
)
(builtin_function): Set C_DECL_ANTICIPATED for user-visible names.
author
Richard Stallman
<rms@gnu.org>
Thu, 25 Jun 1992 10:53:19 +0000
(10:53 +0000)
committer
Richard Stallman
<rms@gnu.org>
Thu, 25 Jun 1992 10:53:19 +0000
(10:53 +0000)
From-SVN: r1285
gcc/c-decl.c
patch
|
blob
|
history
diff --git
a/gcc/c-decl.c
b/gcc/c-decl.c
index 2c5687ca76bc257209ba657ea978a8d79704198c..77c890c2f7ec8785883ce9239ab80daf570aad39 100644
(file)
--- 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;
}