Commit a226df46 by Michael Meissner Committed by Michael Meissner

Use @local for local calls under System V

From-SVN: r16765
parent 034e84c4
Wed Nov 26 15:47:30 1997 Michael Meissner <meissner@cygnus.com> Wed Nov 26 15:47:30 1997 Michael Meissner <meissner@cygnus.com>
* rs6000.md (call insns): For local calls, use @local suffix under
System V. Don't use @plt under Solaris.
* rs6000.c (output_function_profiler): Put label address in r0, and * rs6000.c (output_function_profiler): Put label address in r0, and
store LR in 4(sp) for System V/eabi. store LR in 4(sp) for System V/eabi.
......
...@@ -7525,7 +7525,7 @@ ...@@ -7525,7 +7525,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 \"bl %z0\"; return (DEFAULT_ABI == ABI_V4 && flag_pic) ? \"bl %z0@local\" : \"bl %z0\";
}" }"
[(set_attr "type" "branch") [(set_attr "type" "branch")
(set_attr "length" "4,8")]) (set_attr "length" "4,8")])
...@@ -7580,7 +7580,7 @@ ...@@ -7580,7 +7580,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 (DEFAULT_ABI == ABI_V4 && flag_pic) ? \"bl %z0@plt\" : \"bl %z0\";
}" }"
[(set_attr "type" "branch") [(set_attr "type" "branch")
(set_attr "length" "4,8")]) (set_attr "length" "4,8")])
...@@ -7600,7 +7600,7 @@ ...@@ -7600,7 +7600,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 \"bl %z1\"; return (DEFAULT_ABI == ABI_V4 && flag_pic) ? \"bl %z1@local\" : \"bl %z1\";
}" }"
[(set_attr "type" "branch") [(set_attr "type" "branch")
(set_attr "length" "4,8")]) (set_attr "length" "4,8")])
...@@ -7650,7 +7650,7 @@ ...@@ -7650,7 +7650,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 (DEFAULT_ABI == ABI_V4 && flag_pic) ? \"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