Author: Richard Sandiford <richard.sandiford@linaro.org>
authorRichard Sandiford <richard.sandiford@linaro.org>
Sun, 24 Apr 2011 20:04:24 +0000 (20:04 +0000)
committerAndreas Schwab <schwab@gcc.gnu.org>
Sun, 24 Apr 2011 20:04:24 +0000 (20:04 +0000)
PR target/43804
* gcc/config/m68k/constraints.md (T): Allow PIC operands that satisfy
LEGITIMATE_PIC_OPERAND_P.

From-SVN: r172920

gcc/ChangeLog
gcc/config/m68k/constraints.md

index 3a7ebf0e42425e2d9e46e42b2c9c8a2c56cd20e8..505d7437cd93f71f206f965f6491324c71617856 100644 (file)
@@ -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
index a4885cda6ca5b030f998e3680d6b3ab31df470f4..0fb30078d667b926e9f9a0707ccd66a332f88ee8 100644 (file)
@@ -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."