predicates.md (call expander): Update for DECL_SECTION_NAME being string.
authorJan Hubicka <hubicka@ucw.cz>
Fri, 11 Jul 2014 13:44:49 +0000 (15:44 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Fri, 11 Jul 2014 13:44:49 +0000 (13:44 +0000)
* config/xtensa/predicates.md (call expander): Update for
DECL_SECTION_NAME being string.

From-SVN: r212454

gcc/ChangeLog
gcc/config/xtensa/predicates.md

index 6fe9bfdb71974ff3a4843279b58cc6f13d92bf6c..4804b63940c5263aa27d984fefd98f824a491dc8 100644 (file)
@@ -1,3 +1,8 @@
+2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
+
+       * config/xtensa/predicates.md (call expander): Update for
+       DECL_SECTION_NAME being string.
+
 2014-07-11  Richard Biener  <rguenther@suse.de>
 
        PR middle-end/61473
index 4a4334189250dd4c15d08abef1316a8ea922aa55..0981f485d98199f197922b30902abec7934b0eaf 100644 (file)
@@ -97,7 +97,8 @@
       /* Direct calls only allowed to static functions with PIC.  */
       if (flag_pic)
        {
-         tree callee, callee_sec, caller_sec;
+         tree callee;
+         const char * callee_sec, * caller_sec;
 
          if (GET_CODE (op) != SYMBOL_REF
              || !SYMBOL_REF_LOCAL_P (op) || SYMBOL_REF_EXTERNAL_P (op))
              if (DECL_ONE_ONLY (callee))
                return false;
              callee_sec = DECL_SECTION_NAME (callee);
-             if (((caller_sec == NULL_TREE) ^ (callee_sec == NULL_TREE))
-                 || (caller_sec != NULL_TREE
-                     && strcmp (TREE_STRING_POINTER (caller_sec),
-                                TREE_STRING_POINTER (callee_sec)) != 0))
+             if (((caller_sec == NULL) ^ (callee_sec == NULL))
+                 || (caller_sec != NULL
+                     && caller_sec != callee_sec))
                return false;
            }
-         else if (caller_sec != NULL_TREE)
+         else if (caller_sec)
            return false;
        }
       return true;