diff options
author | Richard Sandiford <richard.sandiford@linaro.org> | 2011-04-24 20:04:24 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@gcc.gnu.org> | 2011-04-24 20:04:24 +0000 |
commit | ed4c109ee830c14f91ba4b6ae39a016ee5f2131e (patch) | |
tree | 9a9a9c6c40c2d2c20c1b6c45a3294fd1d705a5a4 | |
parent | 8179f674939ddafc3b61e89f2ec9b1cecb584590 (diff) | |
download | gcc-ed4c109ee830c14f91ba4b6ae39a016ee5f2131e.tar.gz |
Author: Richard Sandiford <richard.sandiford@linaro.org>
PR target/43804
* gcc/config/m68k/constraints.md (T): Allow PIC operands that satisfy
LEGITIMATE_PIC_OPERAND_P.
From-SVN: r172920
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/m68k/constraints.md | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3a7ebf0e424..505d7437cd9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-04-24 Richard Sandiford <richard.sandiford@linaro.org> + + PR target/43804 + * config/m68k/constraints.md (T): Allow PIC operands that satisfy + LEGITIMATE_PIC_OPERAND_P. + 2011-04-24 Jan Hubicka <jh@suse.cz> * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette diff --git a/gcc/config/m68k/constraints.md b/gcc/config/m68k/constraints.md index a4885cda6ca..0fb30078d66 100644 --- a/gcc/config/m68k/constraints.md +++ b/gcc/config/m68k/constraints.md @@ -94,7 +94,8 @@ (define_constraint "T" "Used for operands that satisfy 's' when -mpcrel is not in effect." (and (match_code "symbol_ref,label_ref,const") - (match_test "!flag_pic"))) + (match_test "!TARGET_PCREL") + (match_test "!flag_pic || LEGITIMATE_PIC_OPERAND_P (op)"))) (define_memory_constraint "Q" "Means address register indirect addressing mode." |