Commit 58307bcd by Michael Meissner

Only do @plt calls if -fpic.

From-SVN: r13299
parent eaf1bcf1
...@@ -5036,7 +5036,7 @@ ...@@ -5036,7 +5036,7 @@
[(set (match_operand:SI 0 "register_operand" "") [(set (match_operand:SI 0 "register_operand" "")
(unspec [(match_operand:SI 1 "got_operand" "") (unspec [(match_operand:SI 1 "got_operand" "")
(match_dup 2)] 8))] (match_dup 2)] 8))]
"(DEFAULT_ABI == ABI_V4 || DEFAULT_ABI == ABI_SOLARIS) && flag_pic" "(DEFAULT_ABI == ABI_V4 || DEFAULT_ABI == ABI_SOLARIS) && flag_pic == 1"
" "
{ {
operands[2] = rs6000_got_register (operands[1]); operands[2] = rs6000_got_register (operands[1]);
...@@ -7360,7 +7360,7 @@ ...@@ -7360,7 +7360,7 @@
else if (INTVAL (operands[2]) & CALL_V4_CLEAR_FP_ARGS) else if (INTVAL (operands[2]) & CALL_V4_CLEAR_FP_ARGS)
output_asm_insn (\"creqv 6,6,6\", operands); output_asm_insn (\"creqv 6,6,6\", operands);
return (flag_pic) ? \"bl %z0@plt\" : \"bl %z0\"; return (flag_pic == 1) ? \"bl %z0@plt\" : \"bl %z0\";
}" }"
[(set_attr "type" "branch") [(set_attr "type" "branch")
(set_attr "length" "4,8")]) (set_attr "length" "4,8")])
...@@ -7430,7 +7430,7 @@ ...@@ -7430,7 +7430,7 @@
else if (INTVAL (operands[3]) & CALL_V4_CLEAR_FP_ARGS) else if (INTVAL (operands[3]) & CALL_V4_CLEAR_FP_ARGS)
output_asm_insn (\"creqv 6,6,6\", operands); output_asm_insn (\"creqv 6,6,6\", operands);
return (flag_pic) ? \"bl %z1@plt\" : \"bl %z1\"; return (flag_pic == 1) ? \"bl %z1@plt\" : \"bl %z1\";
}" }"
[(set_attr "type" "branch") [(set_attr "type" "branch")
(set_attr "length" "4,8")]) (set_attr "length" "4,8")])
......
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