Use HAVE___INT64
Richard Kenner
kenner@vlsi1.ultra.nyu.edu
Sun Dec 9 17:58:00 GMT 2001
I notice autoconf now checks for this, so we might as well use it.
Tested by compilation only.
Sun Dec 9 20:25:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* hwint.h (HOST_BITS_PER_LONGLONG): Deal with __int64 type.
* vmsdbg.h (DST_SRC_COMMAND): Test for type of long long or __int64,
not GNUC.
*** hwint.h 2001/10/09 22:40:12 1.10
--- hwint.h 2001/12/10 01:29:58
***************
*** 19,22 ****
--- 19,25 ----
# define HOST_BITS_PER_LONGLONG (CHAR_BIT * SIZEOF_LONG_LONG)
#else
+ #ifdef HAVE__INT64
+ # define HOST_BITS_PER_LONGLONG (CHAR_BIT * SIZEOF___INT64)
+ #else
/* If we're here and we're GCC, assume this is stage 2+ of a bootstrap
and 'long long' has the width of the *target*'s long long. */
***************
*** 24,27 ****
--- 27,31 ----
# define HOST_BITS_PER_LONGLONG LONG_LONG_TYPE_SIZE
# endif /* gcc */
+ #endif
#endif /* no long long */
*** vmsdbg.h 2001/12/09 15:57:48 1.3
--- vmsdbg.h 2001/12/10 01:29:58
*************** typedef struct _DST_SRC_COMMAND
*** 217,224 ****
unsigned char dst_b_src_df_flags;
unsigned short int dst_w_src_df_fileid;
! #ifdef __GNUC__
long long dst_q_src_df_rms_cdt;
#else
__int64 dst_q_src_df_rms_cdt;
#endif
unsigned int dst_l_src_df_rms_ebk;
--- 217,226 ----
unsigned char dst_b_src_df_flags;
unsigned short int dst_w_src_df_fileid;
! #ifdef HAVE_LONG_LONG
long long dst_q_src_df_rms_cdt;
#else
+ #ifdef HAVE___INT64
__int64 dst_q_src_df_rms_cdt;
+ #endif
#endif
unsigned int dst_l_src_df_rms_ebk;
More information about the Gcc-patches
mailing list