From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27572 invoked by alias); 22 Jan 2003 09:16:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 27552 invoked by uid 71); 22 Jan 2003 09:16:00 -0000 Resent-Date: 22 Jan 2003 09:16:00 -0000 Resent-Message-ID: <20030122091600.27551.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, reichelt@igpm.rwth-aachen.de Received: (qmail 25981 invoked by uid 48); 22 Jan 2003 09:08:22 -0000 Message-Id: <20030122090822.25980.qmail@sources.redhat.com> Date: Wed, 22 Jan 2003 09:16:00 -0000 From: reichelt@igpm.rwth-aachen.de Reply-To: reichelt@igpm.rwth-aachen.de To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: bootstrap/9399: bootstrap failure in gtype-desc.c (missing casts?) on mips-sgi-irix6.5 X-SW-Source: 2003-01/txt/msg01186.txt.bz2 List-Id: >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: