Typo/think fix for H8

law@redhat.com law@redhat.com
Thu Jun 6 14:00:00 GMT 2002


The H8 port was failing an RTL flag check (tried to access SYMBOL_REF_P on
a PLUS when trying to build the H8 target libraries).

It's a simple thinko.  With this patch the target libraries build again.
Installed into the mainline sources.


	* h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.

Index: h8300.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/h8300/h8300.h,v
retrieving revision 1.78.2.1
diff -c -3 -p -r1.78.2.1 h8300.h
*** h8300.h	21 May 2002 23:44:58 -0000	1.78.2.1
--- h8300.h	6 Jun 2002 20:19:05 -0000
*************** struct cum_arg
*** 848,854 ****
          && GET_CODE (XEXP (XEXP (OP, 0), 0)) == PLUS			\
          && GET_CODE (XEXP (XEXP (XEXP (OP, 0), 0), 0)) == SYMBOL_REF	\
          && GET_CODE (XEXP (XEXP (XEXP (OP, 0), 0), 1)) == CONST_INT)	\
!         && (TARGET_H8300S || SYMBOL_REF_FLAG (XEXP (XEXP (OP, 0), 0))))	\
     || (GET_CODE (OP) == MEM						\
         && EIGHTBIT_CONSTANT_ADDRESS_P (XEXP (OP, 0)))			\
     || (GET_CODE (OP) == MEM && TARGET_H8300S				\
--- 848,855 ----
          && GET_CODE (XEXP (XEXP (OP, 0), 0)) == PLUS			\
          && GET_CODE (XEXP (XEXP (XEXP (OP, 0), 0), 0)) == SYMBOL_REF	\
          && GET_CODE (XEXP (XEXP (XEXP (OP, 0), 0), 1)) == CONST_INT)	\
!         && (TARGET_H8300S						\
! 	    || SYMBOL_REF_FLAG (XEXP (XEXP (XEXP (OP, 0), 0), 0))))	\
     || (GET_CODE (OP) == MEM						\
         && EIGHTBIT_CONSTANT_ADDRESS_P (XEXP (OP, 0)))			\
     || (GET_CODE (OP) == MEM && TARGET_H8300S				\




More information about the Gcc-patches mailing list