Add ADA_LONG_TYPE_SIZE as tm.h parameter

Richard Kenner kenner@vlsi1.ultra.nyu.edu
Wed Dec 5 06:42:00 GMT 2001


Wed Dec  5 09:33:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

	* config/alpha/vms.h (ADA_LONG_TYPE_SIZE): New macro.
	* doc/tm.texi (ADA_LONG_TYPE_SIZE): Document it.

*** config/alpha/vms.h	2001/12/02 14:38:07	1.42
--- config/alpha/vms.h	2001/12/05 14:38:01
*************** Boston, MA 02111-1307, USA.  */
*** 81,87 ****
  #undef PCC_STATIC_STRUCT_RETURN
  
! /* "long" is 32 bits.  */
  #undef LONG_TYPE_SIZE
  #define LONG_TYPE_SIZE 32
  
  /* Pointer is 32 bits but the hardware has 64-bit addresses, sign extended.  */
--- 81,88 ----
  #undef PCC_STATIC_STRUCT_RETURN
  
! /* "long" is 32 bits, but 64 bits for Ada.  */
  #undef LONG_TYPE_SIZE
  #define LONG_TYPE_SIZE 32
+ #define ADA_LONG_TYPE_SIZE 64
  
  /* Pointer is 32 bits but the hardware has 64-bit addresses, sign extended.  */
*** doc/tm.texi	2001/12/05 12:36:48	1.72
--- doc/tm.texi	2001/12/05 14:38:16
*************** A C expression for the size in bits of t
*** 1373,1376 ****
--- 1373,1384 ----
  target machine.  If you don't define this, the default is one word.
  
+ @findex ADA_LONG_TYPE_SIZE
+ @item ADA_LONG_TYPE_SIZE
+ On some machines, the size used for the Ada equivalent of the type
+ @code{long} by a native Ada compiler differs from that used by C.  In
+ that situation, define this macro to be a C expression to be used for
+ the size of that type.  If you don't define this, the default is the
+ value of @code{LONG_TYPE_SIZE}.
+ 
  @findex MAX_LONG_TYPE_SIZE
  @item MAX_LONG_TYPE_SIZE



More information about the Gcc-patches mailing list