Patchwork PR target/43804

login
register
mail settings
Submitter Andreas Schwab
Date April 24, 2011, 8:04 p.m.
Message ID <m2fwp71kmk.fsf@igel.home>
Download mbox | patch
Permalink /patch/92676/
State New
Headers show

Comments

Andreas Schwab - April 24, 2011, 8:04 p.m.
I have checked in Richard's patch for PR43804.

Andreas.

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.

Patch

Index: gcc/config/m68k/constraints.md
===================================================================
--- gcc/config/m68k/constraints.md	(revision 172919)
+++ gcc/config/m68k/constraints.md	(working copy)
@@ -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."