[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT
From: |
Eric Blake-1 |
Subject: |
Re: AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT |
Date: |
Mon, 22 Oct 2007 10:55:23 -0700 (PDT) |
> > 2007-10-22 Bruno Haible <address@hidden>
> >
> > * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
> > -1u, in preprocessor expression.
>
> Thanks for checking that. I installed that fix into gnulib, and a
> similar patch into autoconf.
And I'm installing this further patch in autoconf.
2007-10-22 Eric Blake <address@hidden>
* doc/autoconf.texi (Particular Types): Mention bug in HP-UX 11.00
preprocessor.
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 5c09d3e..0659526 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -6106,7 +6106,8 @@ range or precision than the @code{double} type, define
@acindex{TYPE_LONG_LONG_INT}
@cvindex HAVE_LONG_LONG_INT
If the C compiler supports a working @code{long long int} type, define
address@hidden
address@hidden This test also validates that the
+preprocessor can handle integers with the @samp{LL} suffix.
@end defmac
@defmac AC_TYPE_MBSTATE_T
@@ -6243,7 +6244,12 @@ exists.
@acindex{TYPE_UNSIGNED_LONG_LONG_INT}
@cvindex HAVE_UNSIGNED_LONG_LONG_INT
If the C compiler supports a working @code{unsigned long long int} type,
-define @code{HAVE_UNSIGNED_LONG_LONG_INT}.
+define @code{HAVE_UNSIGNED_LONG_LONG_INT}. This test also validates
+that the preprocessor can handle integers with the @samp{ULL} suffix.
+However, portable code cannot mix @code{unsigned long int} and
address@hidden long long int} types in preprocessor expressions,
+since the @acronym{HP-UX} 11.00 preprocessor does not use consistent
+promotion rules.
@end defmac
@node Generic Types
--
View this message in context:
http://www.nabble.com/Re%3A--Bug-tar--GNU-tar-1.19-on-HP-UX-tf4636656.html#a13349039
Sent from the Gnu - Autoconf - Patches mailing list archive at Nabble.com.
- Re: [Bug-tar] GNU tar 1.19 on HP-UX, Paul Eggert, 2007/10/16
- AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT (was: Re: [Bug-tar] GNU tar 1.19 on HP-UX), Bruno Haible, 2007/10/21
- Re: AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT (was: Re: [Bug-tar] GNU tar 1.19 on HP-UX), H.Merijn Brand, 2007/10/21
- Re: AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT, Paul Eggert, 2007/10/22
- Re: AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT, Bruno Haible, 2007/10/22
- Re: AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT, Paul Eggert, 2007/10/22
- Re: AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT,
Eric Blake-1 <=
- Re: AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT, Bruno Haible, 2007/10/23
- Re: AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT, Paul Eggert, 2007/10/24
- Re: AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT, Bruno Haible, 2007/10/24
- Re: AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT, Bruno Haible, 2007/10/26
- Re: AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT, Paul Eggert, 2007/10/30
- Re: AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT, Bruno Haible, 2007/10/31