[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnulib] FYI: use of bool provokes HP ia64 /bin/cc compiler bug?
From: |
Albert Chin |
Subject: |
Re: [Bug-gnulib] FYI: use of bool provokes HP ia64 /bin/cc compiler bug? |
Date: |
Wed, 2 Jun 2004 12:06:48 -0500 |
User-agent: |
Mutt/1.5.6i |
On Mon, May 31, 2004 at 01:31:43PM +0200, Jim Meyering wrote:
> Here's a small program to illustrate:
>
> $ cat k.c
> #include <stdio.h>
> #include <stdlib.h>
> #define N 256
> int
> main ()
> {
> _Bool a[N];
> printf ("%d %d\n", sizeof a, N * sizeof (a[0]));
> exit (0);
> }
>
> Of course, the two numbers should be the same.
> But here they're not:
>
> $ /bin/cc k.c && ./a.out
> 256 1024
>
> More details:
>
> $ /bin/cc -V
> cc: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]
>
> config.guess reports this:
>
> ia64-hp-hpux11.23
$ On hppa2.0w-hp-hpux11.00 and hppa2.0w-hp-hpux11.11:
$ what /opt/ansic/bin/cc
/opt/ansic/bin/cc:
$Revision: 92453-07 linker linker crt0.o B.11.16.01 030316 $
LINT B.11.11.08 CXREF B.11.11.08
HP92453-01 B.11.11.08 HP C Compiler
$ PATCH/11.00:PHCO_27774 Oct 3 2002 09:45:59 $
$ what /opt/aCC/bin/aCC
/opt/aCC/bin/aCC:
$Revision: 92453-07 linker linker crt0.o B.11.16.01 030316 $
HP aC++ B3910B A.03.52
HP aC++ B3910B A.03.52
HP aC++ B3910B X.03.37.01 Language Support Library
$ /opt/ansic/bin/cc hp4.c
$ ./a.out
256 256
$ /opt/aCC/bin/aCC hp4.c
256 256
$ /opt/aCC/bin/aCC -Ae hp4.c
256 1024
What is /bin/cc on your machine?
--
albert chin (address@hidden)