Mail Archives: pgcc/1999/03/06/13:38:51
Hi,
I'm a member of the NCSA HDF team and we would like to use pgcc to
to compile hdf5, and in fact I've been using pgcc-1.90.29 for quite
some time with -O6 on a PentiumPro. However, I recently upgraded to
pgcc-1.91.60 and am getting an error. Here's a minimal program:
> extern int f1(void), f2(void), f3(long long);
>
> void
> f(void *d, int g1)
> {
> long long np=0, ppb=0;
> if (g1 && f1()) f2();
> if (d) f3(ppb<np?ppb:np);
> }
The prog compiles fine under egcs-2.91.60 with the same compiler
flags. If there is any information you need don't hesitate to ask. If
you want to compile the entire hdf5 library you can get it from
ftp://hdf.ncsa.uiuc.edu/pub/outgoing/hdf5/snapshots (just unpack and
type `CC=whatever make check'). The library tends to stress a lot of
compilers (SGI, DEC, Micro$oft, GNU 2.7.x) because it makes
quite extensive use of the long long type.
Thanks for your time and consideration.
robb AT arborea:~/hdf5/src$ uname -a
Linux arborea 2.1.124 #1 SMP Thu Oct 8 13:39:47 EDT 1998 i686 unknown
robb AT arborea:~/hdf5/src$ /usr/local/pgcc/bin/gcc -v -march=pentiumpro -O1 -c test.c
Reading specs from /usr/local/pgcc/lib/gcc-lib/i686-pc-linux-gnulibc1/pgcc-2.91.60/specs
gcc version pgcc-2.91.60 19981201 (egcs-1.1.1 release)
/usr/local/pgcc/lib/gcc-lib/i686-pc-linux-gnulibc1/pgcc-2.91.60/cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=91 -D__ELF__ -Dunix -Di386 -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__i386__ -D__linux__ -D__unix -D__i386 -D__linux -Asystem(posix) -D__OPTIMIZE__ -Asystem(unix) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di686 -Dpentiumpro -D__i686 -D__i686__ -D__pentiumpro -D__pentiumpro__ test.c /tmp/cc5nMVig.i
GNU CPP version pgcc-2.91.60 19981201 (egcs-1.1.1 release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/home/robb/include
/usr/local/include
/usr/local/pgcc/i686-pc-linux-gnulibc1/include
/usr/local/pgcc/lib/gcc-lib/i686-pc-linux-gnulibc1/pgcc-2.91.60/include
/usr/include
End of search list.
/usr/local/pgcc/lib/gcc-lib/i686-pc-linux-gnulibc1/pgcc-2.91.60/cc1 /tmp/cc5nMVig.i -quiet -dumpbase test.c -march=pentiumpro -O1 -version -o /tmp/ccS3AFhp.s
GNU C version pgcc-2.91.60 19981201 (egcs-1.1.1 release) (i686-pc-linux-gnulibc1) compiled by GNU C version pgcc-2.91.60 19981201 (egcs-1.1.1 release).
test.c: In function `f':
test.c:9: internal error--insn does not satisfy its constraints:
(insn 73 58 74 (set (cc0)
(compare (mem/u:DI (symbol_ref/u:SI ("*.LC0")))
(reg/v:DI 3 %ebx))) 14 {cmpdi_1} (nil)
(nil))
../../egcs-1.1.1/gcc/toplev.c:1431: Internal compiler error in function fatal_insn
--
Robb Matzke L-170 #include <disclaimer.h>
Lawrence Livermore National Laboratory Voice/Fax: +1 812 949 7318
Livermore, CA 94550 Cellular: +1 502 396 8547
- Raw text -