This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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]

Re: PATCH: Auto detect HOST_64BIT_TYPE and HOST_U_64BIT_TYPE


H. J. Lu wrote:
[snip]
> How about this?
> 
> 
> H.J.
> ----
> 2003-09-18  H.J. Lu  <hongjiu.lu@intel.com>
> 
> 	* acinclude.m4: Include ../config/accross.m4.
> 	* aclocal.m4: Regenerated.
> 
> 	* configure.host (HOST_64BIT_TYPE): Remove if it is set to long
> 	or long long.
> 	(HOST_U_64BIT_TYPE): Remove if it is set to unsigned long long.
> 	(host64): Remove if HOST_64BIT_TYPE is set to long.
> 
> 	* configure.in (HOST_64BIT_TYPE): Set according to the size of
> 	long and long long.
> 	(HOST_U_64BIT_TYPE): Likewise.
> 	(host64): Likewise.
> 	* configure: Regenerated.
[snip]
> +AC_COMPILE_CHECK_SIZEOF(long)
> +if test "x${ac_cv_sizeof_long}" = "x8"; then
> +  host64=true
> +  HOST_64BIT_TYPE="long"
> +elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
> +  HOST_64BIT_TYPE="long long"
> +  HOST_U_64BIT_TYPE="unsigned long long"
> +fi

AFAICS it won't set HOST_U_64BIT_TYPE for 8 byte longs as it was done before.


Thiemo


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