From: Jan Hubicka Date: Fri, 11 Jul 2014 13:44:49 +0000 (+0200) Subject: predicates.md (call expander): Update for DECL_SECTION_NAME being string. X-Git-Tag: releases/gcc-5.1.0~6402 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0218574ff5041815ef2c01dcb6d922c20ebf71c0;p=thirdparty%2Fgcc.git predicates.md (call expander): Update for DECL_SECTION_NAME being string. * config/xtensa/predicates.md (call expander): Update for DECL_SECTION_NAME being string. From-SVN: r212454 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6fe9bfdb7197..4804b63940c5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-07-11 Jan Hubicka + + * config/xtensa/predicates.md (call expander): Update for + DECL_SECTION_NAME being string. + 2014-07-11 Richard Biener PR middle-end/61473 diff --git a/gcc/config/xtensa/predicates.md b/gcc/config/xtensa/predicates.md index 4a4334189250..0981f485d981 100644 --- a/gcc/config/xtensa/predicates.md +++ b/gcc/config/xtensa/predicates.md @@ -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)) @@ -117,13 +118,12 @@ 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;