public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: reichelt@igpm.rwth-aachen.de
To: gcc-gnats@gcc.gnu.org
Subject: bootstrap/9399: bootstrap failure in gtype-desc.c (missing casts?) on mips-sgi-irix6.5
Date: Wed, 22 Jan 2003 09:16:00 -0000	[thread overview]
Message-ID: <20030122090822.25980.qmail@sources.redhat.com> (raw)


>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:


             reply	other threads:[~2003-01-22  9:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-22  9:16 reichelt [this message]
2003-02-03 12:58 reichelt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030122090822.25980.qmail@sources.redhat.com \
    --to=reichelt@igpm.rwth-aachen.de \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).