From 58307bcd65aa2d6ad0e185c745eed6e875477124 Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Thu, 12 Dec 1996 21:14:40 +0000 Subject: [PATCH] Only do @plt calls if -fpic. From-SVN: r13299 --- gcc/config/rs6000/rs6000.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 5752d2328c9..e9f164117fc 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -5036,7 +5036,7 @@ [(set (match_operand:SI 0 "register_operand" "") (unspec [(match_operand:SI 1 "got_operand" "") (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]); @@ -7360,7 +7360,7 @@ else if (INTVAL (operands[2]) & CALL_V4_CLEAR_FP_ARGS) 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 "length" "4,8")]) @@ -7430,7 +7430,7 @@ else if (INTVAL (operands[3]) & CALL_V4_CLEAR_FP_ARGS) 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 "length" "4,8")]) -- 2.30.2