aboutsummaryrefslogtreecommitdiff
path: root/gcc/calls.c
diff options
context:
space:
mode:
authorMark Mitchell <mmitchell@usa.net>1998-02-06 00:39:51 +0000
committerJeff Law <law@gcc.gnu.org>1998-02-05 17:39:51 -0700
commit259620a822f977a298dfa1a1e24f1d082b949038 (patch)
tree647d71df1e9bbc74f905ca9936c90daa8ba48eae /gcc/calls.c
parentc26046c25121c0a77a4c42bc6b51aa278a660980 (diff)
downloadgcc-259620a822f977a298dfa1a1e24f1d082b949038.zip
gcc-259620a822f977a298dfa1a1e24f1d082b949038.tar.gz
gcc-259620a822f977a298dfa1a1e24f1d082b949038.tar.bz2
calls.c (expand_call): Don't confuse member functions named realloc...
* calls.c (expand_call): Don't confuse member functions named realloc, setjmp, and so forth with the standard library functions of the same names. From-SVN: r17684
Diffstat (limited to 'gcc/calls.c')
-rw-r--r--gcc/calls.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/calls.c b/gcc/calls.c
index cf6c3df..786d9b5 100644
--- a/gcc/calls.c
+++ b/gcc/calls.c
@@ -851,7 +851,11 @@ expand_call (exp, target, ignore)
is_longjmp = 0;
is_malloc = 0;
- if (name != 0 && IDENTIFIER_LENGTH (DECL_NAME (fndecl)) <= 15)
+ if (name != 0 && IDENTIFIER_LENGTH (DECL_NAME (fndecl)) <= 15
+ /* Exclude functions not at the file scope, or not `extern',
+ since they are not the magic functions we would otherwise
+ think they are. */
+ && DECL_CONTEXT (fndecl) == NULL_TREE && TREE_PUBLIC (fndecl))
{
char *tname = name;