[committed] Fix loading of non 14-bit CONST operands when generating PIC code on PA

John David Anglin dave@hiauly1.hia.nrc.ca
Mon May 31 14:54:00 GMT 2004


This fixes a bootstrap problem on hppa64-hpux* on the trunk.  I don't
know why this was never seen before ...

Should also be applied to 3.3 and 3.4.

Tested with build of 3.5.0 on hppa64-hp-hpux11.11 with indexing disabled.

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

2004-05-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>

	* pa.c (emit_move_sequence): Fix loading of non 14-bit CONST operands
	when generating PIC code.

Index: config/pa/pa.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/pa/pa.c,v
retrieving revision 1.248
diff -u -3 -p -r1.248 pa.c
--- config/pa/pa.c	13 May 2004 06:40:03 -0000	1.248
+++ config/pa/pa.c	30 May 2004 22:08:24 -0000
@@ -1929,6 +1929,7 @@ emit_move_sequence (rtx *operands, enum 
 		  operands[1] = force_const_mem (mode, operand1);
 		  operands[1] = legitimize_pic_address (XEXP (operands[1], 0),
 							mode, temp);
+		  operands[1] = gen_rtx_MEM (mode, operands[1]);
 		  emit_move_sequence (operands, mode, temp);
 		}
 	      else



More information about the Gcc-patches mailing list