From 259620a822f977a298dfa1a1e24f1d082b949038 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Fri, 6 Feb 1998 00:39:51 +0000 Subject: [PATCH] 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/ChangeLog | 6 ++++++ gcc/calls.c | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5e0eb82..c8a718f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +1998-02-02 Mark Mitchell + + * calls.c (expand_call): Don't confuse member functions named + realloc, setjmp, and so forth with the standard library + functions of the same names. + Thu Feb 5 21:59:49 1998 Jeffrey A Law (law@cygnus.com) * stmt.c (expand_asm_operands): Correctly identify asm statements 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; -- 2.7.4