Minor PA64 related change

Jeffrey A Law law@cygnus.com
Tue Nov 23 10:17:00 GMT 1999


Another minor change in preparation for the PA64 port.

	* pa.md (call_internal_symref, call_value_internal_symref): No mode
	needed on the address operand.
	* pa.c (call_operand_address): Check for the correct mode.

Index: pa.md
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/config/pa/pa.md,v
retrieving revision 1.202
diff -c -3 -p -r1.202 pa.md
*** pa.md	1999/11/08 12:04:13	1.202
--- pa.md	1999/11/23 18:10:04
***************
*** 6297,6303 ****
  }")
  
  (define_insn "call_internal_symref"
!   [(call (mem:SI (match_operand:SI 0 "call_operand_address" ""))
  	 (match_operand 1 "" "i"))
     (clobber (reg:SI 2))
     (use (const_int 0))]
--- 6297,6303 ----
  }")
  
  (define_insn "call_internal_symref"
!   [(call (mem:SI (match_operand 0 "call_operand_address" ""))
  	 (match_operand 1 "" "i"))
     (clobber (reg:SI 2))
     (use (const_int 0))]
***************
*** 6488,6494 ****
  
  (define_insn "call_value_internal_symref"
    [(set (match_operand 0 "" "=rf")
! 	(call (mem:SI (match_operand:SI 1 "call_operand_address" ""))
  	      (match_operand 2 "" "i")))
     (clobber (reg:SI 2))
     (use (const_int 0))]
--- 6488,6494 ----
  
  (define_insn "call_value_internal_symref"
    [(set (match_operand 0 "" "=rf")
! 	(call (mem:SI (match_operand 1 "call_operand_address" ""))
  	      (match_operand 2 "" "i")))
     (clobber (reg:SI 2))
     (use (const_int 0))]
Index: pa.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/config/pa/pa.c,v
retrieving revision 1.182
diff -c -3 -p -r1.182 pa.c
*** pa.c	1999/11/05 09:34:57	1.182
--- pa.c	1999/11/23 18:13:42
*************** call_operand_address (op, mode)
*** 211,217 ****
       rtx op;
       enum machine_mode mode ATTRIBUTE_UNUSED;
  {
!   return (CONSTANT_P (op) && ! TARGET_PORTABLE_RUNTIME);
  }
  
  /* Return 1 if X contains a symbolic expression.  We know these
--- 211,218 ----
       rtx op;
       enum machine_mode mode ATTRIBUTE_UNUSED;
  {
!   return (GET_MODE (op) == word_mode
! 	  && CONSTANT_P (op) && ! TARGET_PORTABLE_RUNTIME);
  }
  
  /* Return 1 if X contains a symbolic expression.  We know these






More information about the Gcc-patches mailing list