OSDN Git Service

PR tree-optimization/38977
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Feb 2009 19:50:58 +0000 (19:50 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Feb 2009 19:50:58 +0000 (19:50 +0000)
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

gcc/ChangeLog
gcc/calls.c

index a13903c..76d4500 100644 (file)
@@ -1,3 +1,10 @@
+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>
 
        * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
index e6e882f..9dcf662 100644 (file)
@@ -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;