This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed] Fix constraint in pa.md pattern


The following problem was noticed while working on a patch to allow
the hppa64-hp-hpux11.11 port to handle very large frames.  We need
to use the R1_REGS class when the label is far from the instruction
loading it.

Tested on hppa64-hp-hpux11.11 with no regressions.  Installed to main.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)

2004-01-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>

	* pa.md: Correct constraint in pattern for loading PIC label address.

Index: config/pa/pa.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/pa/pa.md,v
retrieving revision 1.137
diff -u -3 -p -r1.137 pa.md
--- config/pa/pa.md	20 Dec 2003 17:24:15 -0000	1.137
+++ config/pa/pa.md	12 Jan 2004 03:21:15 -0000
@@ -2604,7 +2604,7 @@
 ;; Note since this pattern can be created at reload time (via movsi), all
 ;; the same rules for movsi apply here.  (no new pseudos, no temporaries).
 (define_insn ""
-  [(set (match_operand 0 "pmode_register_operand" "=r")
+  [(set (match_operand 0 "pmode_register_operand" "=a")
 	(match_operand 1 "pic_label_operand" ""))]
   "TARGET_PA_20"
   "*


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]