bootstrap/9399: bootstrap failure in gtype-desc.c (missing casts?) on mips-sgi-irix6.5
reichelt@igpm.rwth-aachen.de
reichelt@igpm.rwth-aachen.de
Wed Jan 22 09:20:00 GMT 2003
>Number: 9399
>Category: bootstrap
>Synopsis: bootstrap failure in gtype-desc.c (missing casts?) on mips-sgi-irix6.5
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jan 22 09:16:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Volker Reichelt
>Release: gcc 3.4-20030116
>Organization:
>Environment:
mips-sgi-irix6.5
>Description:
When bootstrapping mainline on mips-sgi-irix6.5 with
SGI's native compiler, I get the following error:
===========================================================
cc -c -g -DIN_GCC -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/config -I../../gcc/gcc/../include gtype-desc.c -o gtype-desc.o
cc-1164 cc: ERROR File = gtype-desc.c, Line = 1013
Argument of type "splay_tree_value" is incompatible with parameter of type
"void *".
gt_ggc_m_9tree_node ((*x).value);
^
cc-1164 cc: ERROR File = gtype-desc.c, Line = 2139
Argument of type "splay_tree_key" is incompatible with parameter of type
"const void *".
gt_pch_n_S ((*x).key);
^
cc-1164 cc: ERROR File = gtype-desc.c, Line = 2140
Argument of type "splay_tree_value" is incompatible with parameter of type
"void *".
gt_pch_n_9tree_node ((*x).value);
^
cc-1174 cc: WARNING File = gtype-desc.c, Line = 2388
The variable "x" was declared but never referenced.
struct real_value * const x ATTRIBUTE_UNUSED = (struct real_value *)x_p;
^
3 errors detected in the compilation of "gtype-desc.c".
gmake[2]: *** [gtype-desc.o] Error 2
gmake[2]: Leaving directory `/USR/people/reichelt/rrr/build/gcc'
gmake[1]: *** [stage1_build] Error 2
gmake[1]: Leaving directory `/USR/people/reichelt/rrr/build/gcc'
gmake: *** [bootstrap-lean] Error 2
===========================================================
If I add explicit casts to "void*" for the three arguments,
the bootstrap is performed without errors.
I'm not sure, however, if that's a correct fix.
Maybe it's not even gcc's fault, but a bug in SGI's
compiler. But even then: if it prevents bootstrapping,
there should be a workaround.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list