PATCH: Auto detect HOST_64BIT_TYPE and HOST_U_64BIT_TYPE
Thiemo Seufer
ica2_ts@csv.ica.uni-stuttgart.de
Fri Sep 19 10:13:00 GMT 2003
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
More information about the Binutils
mailing list