This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
c-decl.c broken on 64-bit platforms
- From: Andreas Jaeger <aj at suse dot de>
- To: gcc at gcc dot gnu dot org
- Date: Sat, 12 Jul 2003 14:52:36 +0200
- Subject: c-decl.c broken on 64-bit platforms
Geoff,
on x86_64-gnu-linux I get with current CVS:
stage1/xgcc -Bstage1/ -B/opt/gcc/3.4-devel/x86_64-suse-linux-gnu/bin/ -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Werror -fno-common -DHAVE_CONFIG_H -I. -I. -I/usr/src/aj/cvs/gcc/gcc -I/usr/src/aj/cvs/gcc/gcc/. -I/usr/src/aj/cvs/gcc/gcc/config -I/usr/src/aj/cvs/gcc/gcc/../include /usr/src/aj/cvs/gcc/gcc/c-common.c -o c-common.o
/usr/src/aj/cvs/gcc/gcc/c-decl.c: In function `link_hash_hash':
/usr/src/aj/cvs/gcc/gcc/c-decl.c:6797: warning: cast from pointer to integer of different size
make[2]: *** [c-decl.o] Error 1
The problem is this statement:
return (hashval_t) DECL_ASSEMBLER_NAME (x);
Do you really want to use DECL_ASSEMBLER_NAME (x) and not
IDENTIFIER_HASH_VALUE(DECL_ASSEMBLER_NAME (x)) (this might need
link_hash_eq also?
Otherwise you should cast this correctly. Can you look into this,
please?
Thanks,
Andreas
--
Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126