* config/bfin/crti.S: Use it instead of __PIC__.
* config/bfin/crtn.S: Likewise.
+ * config/bfin/bfin.md (call_value_symbol, sibcall_value_symbol,
+ call_symbol, sibcall_symbol): Disallow if TARGET_ID_SHARED_LIBRARY,
+ not if flag_pic.
+ Lose 'G' modifier for call operand.
+ * config/bfin/bfin.c (print_operand) <case SYMBOL_REF>: Don't
+ recognize 'G' modifier.
+
2006-03-13 Eric Botcazou <ebotcazou@adacore.com>
PR middle-end/18859
(match_operand 1 "general_operand" "g"))
(use (match_operand 2 "" ""))]
"! SIBLING_CALL_P (insn)
- && !flag_pic
+ && !TARGET_ID_SHARED_LIBRARY
&& GET_CODE (operands[0]) == SYMBOL_REF
&& !bfin_longcall_p (operands[0], INTVAL (operands[2]))"
- "call %G0;"
+ "call %0;"
[(set_attr "type" "call")
(set_attr "length" "4")])
(use (match_operand 2 "" ""))
(return)]
"SIBLING_CALL_P (insn)
- && !flag_pic
+ && !TARGET_ID_SHARED_LIBRARY
&& GET_CODE (operands[0]) == SYMBOL_REF
&& !bfin_longcall_p (operands[0], INTVAL (operands[2]))"
- "jump.l %G0;"
+ "jump.l %0;"
[(set_attr "type" "br")
(set_attr "length" "4")])
(match_operand 2 "general_operand" "g")))
(use (match_operand 3 "" ""))]
"! SIBLING_CALL_P (insn)
- && !flag_pic
+ && !TARGET_ID_SHARED_LIBRARY
&& GET_CODE (operands[1]) == SYMBOL_REF
&& !bfin_longcall_p (operands[1], INTVAL (operands[3]))"
- "call %G1;"
+ "call %1;"
[(set_attr "type" "call")
(set_attr "length" "4")])
(use (match_operand 3 "" ""))
(return)]
"SIBLING_CALL_P (insn)
- && !flag_pic
+ && !TARGET_ID_SHARED_LIBRARY
&& GET_CODE (operands[1]) == SYMBOL_REF
&& !bfin_longcall_p (operands[1], INTVAL (operands[3]))"
- "jump.l %G1;"
+ "jump.l %1;"
[(set_attr "type" "br")
(set_attr "length" "4")])