This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
64-bit powerpc compare with constant problem
- To: gcc-bugs at gcc dot gnu dot org
- Subject: 64-bit powerpc compare with constant problem
- From: Benjamin Gamsa <ben at eecg dot toronto dot edu>
- Date: Fri, 4 Feb 2000 17:15:35 -0500
A simple comparison of a 64-bit unsigned long with a 64-bit constant,
both of them being 0xffffffffffffffffUL, fails with the 64-bit powerpc/aix
configuration.
Command line:
gcc -v -maix64 -save-temps file.c >& file.command
file.i:
# 1 "file.c"
unsigned long x = 0xffffffffffffffffUL;
int main()
{
unsigned long b = (x != 0xffffffffffffffffUL);
if (b) {
printf("Failed\n");
} else {
printf("Succeeded\n");
}
return 0;
}
file.command:
Reading specs from /stumm/j/j1/khacks/tools/aix/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.1/specs
gcc version 2.95.1 19990816 (release)
/stumm/j/j1/khacks/tools/aix/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.1/cpp -lang-c -v -D__GNUC__=2 -D__GNUC_MINOR__=95 -D_IBMR2 -D_POWER -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_LONG_LONG -D_IBMR2 -D_POWER -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_LONG_LONG -Asystem(unix) -Asystem(aix) -D__CHAR_UNSIGNED__ -D__64BIT__ -D_ARCH_PPC file.c file.i
GNU CPP version 2.95.1 19990816 (release)
#include "..." search starts here:
#include <...> search starts here:
/stumm/j/j1/khacks/tools/aix/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.1/../../../../rs6000-ibm-aix4.3.2.0/include
/stumm/j/j1/khacks/tools/aix/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.1/include
/usr/include
End of search list.
The following default directories have been omitted from the search path:
/stumm/j/j1/khacks/tools/aix/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.1/../../../../include/g++-3
/usr/local/include
End of omitted list.
/stumm/j/j1/khacks/tools/aix/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.1/cc1 file.i -quiet -dumpbase file.c -maix64 -version -o file.s
GNU C version 2.95.1 19990816 (release) (rs6000-ibm-aix4.3.2.0) compiled by GNU C version 2.95.1 19990816 (release).
as -u -a64 -mppc64 -o file.o file.s
/stumm/j/j1/khacks/tools/aix/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.1/collect2 -bpT:0x10000000 -bpD:0x20000000 -btextro -bnodelcsect -b64 /lib/crt0_64.o -L/stumm/j/j1/khacks/tools/aix/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.1/aix64 -L/stumm/j/j1/khacks/tools/aix/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.1 -L/stumm/j/j1/khacks/tools/aix/rs6000-ibm-aix4.3.2.0/lib/aix64 -L/stumm/j/j1/khacks/tools/aix/rs6000-ibm-aix4.3.2.0/lib -L/stumm/j/j1/khacks/tools/aix/lib/aix64 -L/stumm/j/j1/khacks/tools/aix/lib file.o /stumm/j/j1/khacks/tools/aix/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.1/aix64/libgcc.a -lc /stumm/j/j1/khacks/tools/aix/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.1/aix64/libgcc.a
--
Ben Gamsa ben@eecg.toronto.edu - http://www.eecg.toronto.edu/~ben
ECE/CS, University of Toronto, Toronto, Ont. CANADA, M5S 1A4