autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rethinking #if and 64-bit numbers (inttypes.h on Sun platforms)


From: Bruno Haible
Subject: Re: rethinking #if and 64-bit numbers (inttypes.h on Sun platforms)
Date: Wed, 14 Nov 2007 01:41:47 +0100
User-agent: KMail/1.5.4

Paul Eggert wrote:
> I installed this into Autoconf:
> 
> 2007-11-13  Paul Eggert  <address@hidden>
> ...
>       * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET):
>       Do not check for preprocessor flows.

'flows'? 'flaws'!

Also, I would prefer to not let autoconf/lib/autoconf/types.m4 and
gnulib/m4/longlong.m4 go out of sync. This proposed patch resynchronizes
autoconf with the comments that you added to gnulib a day earlier:

--- lib/autoconf/types.m4.bak   2007-11-14 01:37:44.000000000 +0100
+++ lib/autoconf/types.m4       2007-11-14 01:37:58.000000000 +0100
@@ -475,7 +475,11 @@
 AC_DEFUN([_AC_TYPE_LONG_LONG_SNIPPET],
 [
   AC_LANG_PROGRAM(
-    [[/* Test literals.  */
+    [[/* For now, do not test the preprocessor; as of 2007 there are too many
+        implementations with broken preprocessors.  Perhaps this can
+        be revisited in 2012.  In the meantime, code should not expect
+        #if to work with literals wider than 32 bits.  */
+      /* Test literals.  */
       long long int ll = 9223372036854775807ll;
       long long int nll = -9223372036854775807LL;
       unsigned long long int ull = 18446744073709551615ULL;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]