diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2014-07-11 15:44:49 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2014-07-11 13:44:49 +0000 |
commit | 0218574ff5041815ef2c01dcb6d922c20ebf71c0 (patch) | |
tree | b5fa8c0c2dd3839f5506a9eefbfe49b8e998acbb /gcc | |
parent | cdd1ba62102cd0196d6692b1af256680151fc222 (diff) | |
download | gcc-0218574ff5041815ef2c01dcb6d922c20ebf71c0.zip gcc-0218574ff5041815ef2c01dcb6d922c20ebf71c0.tar.gz gcc-0218574ff5041815ef2c01dcb6d922c20ebf71c0.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/xtensa/predicates.md | 12 |
2 files changed, 11 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6fe9bfdb..4804b63 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/xtensa/predicates.md b/gcc/config/xtensa/predicates.md index 4a43341..0981f48 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; |