From 259620a822f977a298dfa1a1e24f1d082b949038 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Fri, 6 Feb 1998 00:39:51 +0000 Subject: 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 --- gcc/calls.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gcc/calls.c') 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; -- cgit v1.1