Commit 0218574f by Jan Hubicka Committed by Jan Hubicka

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
parent cdd1ba62
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> 2014-07-11 Richard Biener <rguenther@suse.de>
PR middle-end/61473 PR middle-end/61473
......
...@@ -97,7 +97,8 @@ ...@@ -97,7 +97,8 @@
/* Direct calls only allowed to static functions with PIC. */ /* Direct calls only allowed to static functions with PIC. */
if (flag_pic) if (flag_pic)
{ {
tree callee, callee_sec, caller_sec; tree callee;
const char * callee_sec, * caller_sec;
if (GET_CODE (op) != SYMBOL_REF if (GET_CODE (op) != SYMBOL_REF
|| !SYMBOL_REF_LOCAL_P (op) || SYMBOL_REF_EXTERNAL_P (op)) || !SYMBOL_REF_LOCAL_P (op) || SYMBOL_REF_EXTERNAL_P (op))
...@@ -117,13 +118,12 @@ ...@@ -117,13 +118,12 @@
if (DECL_ONE_ONLY (callee)) if (DECL_ONE_ONLY (callee))
return false; return false;
callee_sec = DECL_SECTION_NAME (callee); callee_sec = DECL_SECTION_NAME (callee);
if (((caller_sec == NULL_TREE) ^ (callee_sec == NULL_TREE)) if (((caller_sec == NULL) ^ (callee_sec == NULL))
|| (caller_sec != NULL_TREE || (caller_sec != NULL
&& strcmp (TREE_STRING_POINTER (caller_sec), && caller_sec != callee_sec))
TREE_STRING_POINTER (callee_sec)) != 0))
return false; return false;
} }
else if (caller_sec != NULL_TREE) else if (caller_sec)
return false; return false;
} }
return true; return true;
......
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