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]

[ada] Fix TYPE_RM_SIZE_INT


I've installed this patch suggested by Kenner.

nathan
--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk

2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
	    Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
	
	* ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.

Index: ada/ada-tree.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ada/ada-tree.h,v
retrieving revision 1.21
diff -c -3 -p -r1.21 ada-tree.h
*** ada/ada-tree.h	5 Jul 2004 18:36:47 -0000	1.21
--- ada/ada-tree.h	25 Aug 2004 09:57:39 -0000
*************** struct lang_type GTY(()) {union lang_tre
*** 165,171 ****
    (TYPE_LANG_SPECIFIC (INTEGER_TYPE_CHECK (NODE)) = (struct lang_type *) (X))
  
  /* For INTEGER_TYPE, stores the RM_Size of the type.  */
! #define TYPE_RM_SIZE_INT(NODE)	(INTEGER_TYPE_CHECK (NODE)->type.values)
  
  /* Likewise for ENUMERAL_TYPE.  */
  #define TYPE_RM_SIZE_ENUM(NODE)	\
--- 165,171 ----
    (TYPE_LANG_SPECIFIC (INTEGER_TYPE_CHECK (NODE)) = (struct lang_type *) (X))
  
  /* For INTEGER_TYPE, stores the RM_Size of the type.  */
! #define TYPE_RM_SIZE_INT(NODE)	TYPE_LANG_SLOT_1 (INTEGER_TYPE_CHECK (NODE))
  
  /* Likewise for ENUMERAL_TYPE.  */
  #define TYPE_RM_SIZE_ENUM(NODE)	\

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