diff options
author | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-21 08:18:31 +0000 |
---|---|---|
committer | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-21 08:18:31 +0000 |
commit | 34994084d158123538a9cdba84ed84eb03a7f544 (patch) | |
tree | bdbfb2f81550c536d1df478a14f6cd8ad3abd2f5 /gcc/config/alpha/predicates.md | |
parent | 5073b85e9d80b3e7440d7636178149f654683a7b (diff) | |
download | gcc-34994084d158123538a9cdba84ed84eb03a7f544.tar.gz |
PR target/46533
* config/alpha/predicates.md (direct_call_operand): Return false
for !TARGET_SMALL_TEXT targets.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166999 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/alpha/predicates.md')
-rw-r--r-- | gcc/config/alpha/predicates.md | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/gcc/config/alpha/predicates.md b/gcc/config/alpha/predicates.md index 9fe5390fa6b..2f17fb9e3c3 100644 --- a/gcc/config/alpha/predicates.md +++ b/gcc/config/alpha/predicates.md @@ -266,8 +266,6 @@ (define_predicate "direct_call_operand" (match_operand 0 "samegp_function_operand") { - tree op_decl, cfun_sec, op_sec; - /* If profiling is implemented via linker tricks, we can't jump to the nogp alternate entry point. Note that crtl->profile would not be correct, since that doesn't indicate if the target @@ -291,21 +289,7 @@ if (TARGET_SMALL_TEXT) return true; - /* Otherwise, a decl is "near" if it is defined in the same section. */ - if (flag_function_sections) - return false; - - op_decl = SYMBOL_REF_DECL (op); - if (DECL_ONE_ONLY (current_function_decl) - || (op_decl && DECL_ONE_ONLY (op_decl))) - return false; - - cfun_sec = DECL_SECTION_NAME (current_function_decl); - op_sec = op_decl ? DECL_SECTION_NAME (op_decl) : NULL; - return ((!cfun_sec && !op_sec) - || (cfun_sec && op_sec - && strcmp (TREE_STRING_POINTER (cfun_sec), - TREE_STRING_POINTER (op_sec)) == 0)); + return false; }) ;; Return 1 if OP is a valid operand for the MEM of a CALL insn. |