From: jakub Date: Wed, 4 Feb 2009 19:50:58 +0000 (+0000) Subject: PR tree-optimization/38977 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=73d3c8f22770c9ff214432a3d78676fe6ab4c024;p=thirdparty%2Fgcc.git PR tree-optimization/38977 PR gcov-profile/38292 * calls.c (special_function_p): Disregard __builtin_ prefix. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143937 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a13903c89f06..76d4500bae95 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2009-02-04 Jakub Jelinek + + PR tree-optimization/38977 + PR gcov-profile/38292 + * calls.c (special_function_p): Disregard __builtin_ + prefix. + 2009-02-04 Hariharan Sandanagobalane * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow diff --git a/gcc/calls.c b/gcc/calls.c index e6e882f24b1e..9dcf66298caa 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -498,10 +498,14 @@ special_function_p (const_tree fndecl, int flags) && ! strcmp (name, "__builtin_alloca")))) flags |= ECF_MAY_BE_ALLOCA; - /* Disregard prefix _, __ or __x. */ + /* Disregard prefix _, __, __x or __builtin_. */ if (name[0] == '_') { - if (name[1] == '_' && name[2] == 'x') + if (name[1] == '_' + && name[2] == 'b' + && !strncmp (name + 3, "uiltin_", 7)) + tname += 10; + else if (name[1] == '_' && name[2] == 'x') tname += 3; else if (name[1] == '_') tname += 2;