diff options
author | jfc <jfc@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-04-29 12:41:21 +0000 |
---|---|---|
committer | jfc <jfc@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-04-29 12:41:21 +0000 |
commit | 653b1824c16ef3d10b5741f5d50e7ccd18cbe024 (patch) | |
tree | dd1905278f46f2c7d59d423d9eab086e1c6e679b /gcc/calls.c | |
parent | f1a9771e6f9364e15863db4c19bcb364f4665eed (diff) | |
download | gcc-653b1824c16ef3d10b5741f5d50e7ccd18cbe024.tar.gz |
* calls.c (expand_call): Fix recognition of C++ operator new.
* alias.c (mode_alias_check): Disable type based alias detection.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19492 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/calls.c')
-rw-r--r-- | gcc/calls.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/calls.c b/gcc/calls.c index 5c34913937e..51fa73b2805 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -901,8 +901,12 @@ expand_call (exp, target, ignore) else if (! strcmp (tname, "malloc") || ! strcmp (tname, "calloc") || ! strcmp (tname, "realloc") - || ! strcmp (tname, "__builtin_new") - || ! strcmp (tname, "__builtin_vec_new")) + /* Note use of NAME rather than TNAME here. These functions + are only reserved when preceded with __. */ + || ! strcmp (name, "__vn") /* mangled __builtin_vec_new */ + || ! strcmp (name, "__nw") /* mangled __builtin_new */ + || ! strcmp (name, "__builtin_new") + || ! strcmp (name, "__builtin_vec_new")) is_malloc = 1; } |