bug-coreutils
[Top][All Lists]
Advanced

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

Re: test failures building 5.93 and hpux compiler patch


From: Paul Eggert
Subject: Re: test failures building 5.93 and hpux compiler patch
Date: Wed, 16 Nov 2005 01:44:12 -0800
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

"Peter O'Gorman" <address@hidden> writes:

> I've attached the non-root verbose test failures here and a patch.

Thanks for doing that.

> The patch may seem a little strange, it is. The HP-UX-10.20 compiler
> does not like 64 bit types in switch statements!

Rather than modify the code, how about if we change coreutils to not
use 64-bit integer types if they have that bug?  After all, if there's
one bug there are likely to be others.

Does the HP-UX 10.20 compiler crash with the following program?  If
not, is there some other simple program that it does crash on?

   long long ll = 1LL;
   int i = 63;

   int
   main (void)
   {
     long long llmax = (long long) -1;

     switch (llmax)
       {
       case -2:
         return 1;
       case -1:
         return 2;
       default:
         return ll << i | ll >> i | llmax / ll | llmax % ll;
       }
   }


> The HP-UX-11.00 compiler crashed when it saw *copy_into_self |=
> local_copy_into_self and other perfectly valid constructs.

Perhaps all we need to do is substitute our on bool type for the
compiler's broken one.  How was the 'bool' type defined on your
platform?  Was lib/stdbool.h created, or the compiler's stdbool.h
used?  What is the value of HAVE_STDBOOL_H in config.h?  HAVE__BOOL?
Are these values correct?




reply via email to

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