bug-gnulib
[Top][All Lists]
Advanced

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

Re: [Bug-tar] GNU tar 1.19 on HP-UX


From: Paul Eggert
Subject: Re: [Bug-tar] GNU tar 1.19 on HP-UX
Date: Fri, 12 Oct 2007 17:35:14 -0700
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Re <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>:

Thanks for reporting those problems.  The CHAR_BIT bug should have
been fixed by the patch in
<http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00138.html>.

The HP-UX 10.20 PA-RISC-2.0 bug I'm not familiar with.  What is the
value of LONG_MAX on that host?  Can you please verify that
HAVE_LONG_LONG_INT is defined to be 1 in config.h?  Can you please
verify that the following program does not compile, but if you
omit the first 3 lines it compiles and links correctly?  Thanks.

   #if 9223372036854775807LL == 0
   /* The #if tests for a bug in HP-UX 10.20 C compiler.  */
   #endif

   long long int ll = 9223372036854775807ll;
   long long int nll = -9223372036854775807LL;
   typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
                  ? 1 : -1)];
   int i = 63;

   int main (void)
   {
     long long int llmax = 9223372036854775807ll;
     return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
             | (llmax / ll) | (llmax % ll));
   }




reply via email to

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