From: Jakub Jelinek Date: Wed, 4 Feb 2009 19:50:58 +0000 (+0100) Subject: re PR tree-optimization/38977 (bash no longer builds with profile-feedback) X-Git-Tag: releases/gcc-4.4.0~649 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b545e4117b7464cc051e0f62c00bd390fda2c066;p=thirdparty%2Fgcc.git re PR tree-optimization/38977 (bash no longer builds with profile-feedback) PR tree-optimization/38977 PR gcov-profile/38292 * calls.c (special_function_p): Disregard __builtin_ prefix. From-SVN: r143937 --- 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;