Commit b545e411 by Jakub Jelinek Committed by Jakub Jelinek

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
parent ee429f84
2009-02-04 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/38977
PR gcov-profile/38292
* calls.c (special_function_p): Disregard __builtin_
prefix.
2009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com> 2009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
* config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
......
...@@ -498,10 +498,14 @@ special_function_p (const_tree fndecl, int flags) ...@@ -498,10 +498,14 @@ special_function_p (const_tree fndecl, int flags)
&& ! strcmp (name, "__builtin_alloca")))) && ! strcmp (name, "__builtin_alloca"))))
flags |= ECF_MAY_BE_ALLOCA; flags |= ECF_MAY_BE_ALLOCA;
/* Disregard prefix _, __ or __x. */ /* Disregard prefix _, __, __x or __builtin_. */
if (name[0] == '_') 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; tname += 3;
else if (name[1] == '_') else if (name[1] == '_')
tname += 2; tname += 2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment