Irix warning: cast from pointer to integer of different size
Billinghurst, David (CRTS)
David.Billinghurst@riotinto.com
Mon Aug 6 01:01:00 GMT 2001
During stage3 of a gcc bootstrap on irix6.5 I see:
.../gcc/cp/decl.c: In function `pushlevel':
.../gcc/cp/decl.c:827: warning: cast from pointer to integer of different
size
.../gcc/cp/decl.c: In function `poplevel':
.../gcc/cp/decl.c:1282: warning: cast from pointer to integer of different
size
.../gcc/cp/decl.c:1283: warning: cast from pointer to integer of different
size
.../gcc/cp/decl.c: In function `poplevel_class':
.../gcc/cp/decl.c:1708: warning: cast from pointer to integer of different
size
.../gcc/cp/decl.c:1709: warning: cast from pointer to integer of different
size
.../gcc/cp/decl.c: In function `finish_method':
.../gcc/cp/decl.c:14147: warning: cast from pointer to integer of different
size
.../gcc/cp/decl.c:14148: warning: cast from pointer to integer of different
size
The warnings occur on calls to GNU_xref_start_scope and GNU_xref_end_scope
GNU_xref_start_scope ((HOST_WIDE_INT) newlevel);
GNU_xref_end_scope ((HOST_WIDE_INT) current_binding_level,
(HOST_WIDE_INT) current_binding_level->level_chain,
current_binding_level->parm_flag,
current_binding_level->keep);
since:
HOST_WIDE_INT is long long (64 bits)
a pointer is long (32 bits)
Is there a neat way to squelch these warnings?
More information about the Gcc-bugs
mailing list