Subject: Re: Compilation / toolchain trouble
To: Reinoud Zandijk <reinoud@netbsd.org>
From: Richard Earnshaw <rearnsha@arm.com>
List: port-arm
Date: 03/19/2002 15:32:32
This is a multipart MIME message.

--==_Exmh_-622270330
Content-Type: text/plain; charset=us-ascii

Try the following:



--==_Exmh_-622270330
Content-Type: text/x-patch ; name="rtl.h.patch"; charset=us-ascii
Content-Description: rtl.h.patch
Content-Disposition: attachment; filename="rtl.h.patch"

*** /work/rearnsha/netbsd/src/gnu/dist/toolchain/gcc/rtl.h	Wed Aug 29 14:32:34 2001
--- ./rtl.h	Tue Mar 19 15:31:10 2002
*************** enum rtx_code  {
*** 42,50 ****
  #include "rtl.def"		/* rtl expressions are documented here */
  #undef DEF_RTL_EXPR
  
!   LAST_AND_UNUSED_RTX_CODE};	/* A convenient way to get a value for
  				   NUM_RTX_CODE.
  				   Assumes default enum value assignment.  */
  
  #define NUM_RTX_CODE ((int)LAST_AND_UNUSED_RTX_CODE)
  				/* The cast here, saves many elsewhere.  */
--- 42,53 ----
  #include "rtl.def"		/* rtl expressions are documented here */
  #undef DEF_RTL_EXPR
  
!   LAST_AND_UNUSED_RTX_CODE,	/* A convenient way to get a value for
  				   NUM_RTX_CODE.
  				   Assumes default enum value assignment.  */
+   RTX_CODE_PADDING = 0x7fff	/* Make sure we use a 16-bit enum if 
+ 				   packing. */
+ }
  
  #define NUM_RTX_CODE ((int)LAST_AND_UNUSED_RTX_CODE)
  				/* The cast here, saves many elsewhere.  */

--==_Exmh_-622270330--