public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Geoffrey Keating <geoffk@romulus.sfbay.redhat.com>
To: gcc-gnats@gcc.gnu.org
Cc: gcc-patches@gcc.gnu.org
Subject: bootstrap/6589: [PCH] typo in cp/cp-tree.h
Date: Tue, 07 May 2002 00:06:00 -0000	[thread overview]
Message-ID: <20020507065727.25926.qmail@sources.redhat.com> (raw)


>Number:         6589
>Category:       bootstrap
>Synopsis:       [PCH] typo in cp/cp-tree.h
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 07 00:06:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     k_fukui@highway.ne.jp
>Release:        pch-branch from cvs
>Organization:
>Environment:
linuxppc
>Description:
build error by typo of cp/cp-tree.h
I have done PCH gcc compiling with my patch.

gcc -c -DIN_GCC    -O2 -fsigned-char -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes   -DHAVE_CONFIG_H    -I. -Icp -I../../gcc -I../../gcc/cp -I../../gcc/config -I../../gcc/../include ../../gcc/cp/decl.c -o cp/decl.o
../../gcc/cp/decl.c: In function `build_ptrmemfunc_type':
../../gcc/cp/decl.c:9186: union has no member named `p'
../../gcc/cp/decl.c:9176: warning: `t' might be used uninitialized in this function

>How-To-Repeat:
normal bootstrap
>Fix:
diff -urN base/gcc/cp/cp-tree.h fixed/gcc/cp/cp-tree.h
--- base/gcc/cp/cp-tree.h	Tue May  7 10:49:01 2002
+++ fixed/gcc/cp/cp-tree.h	Tue May  7 14:27:50 2002
@@ -1302,7 +1302,7 @@
 #else
 
 #define LANG_TYPE_CLASS_CHECK(NODE) (&TYPE_LANG_SPECIFIC (NODE)->u.c)
-#define LANG_TYPE_PTRMEM_CHECK(NODE) (&TYPE_LANG_SPECIFIC (NODE)->u.p)
+#define LANG_TYPE_PTRMEM_CHECK(NODE) (&TYPE_LANG_SPECIFIC (NODE)->u.ptrmem)
 
 #endif /* ENABLE_TREE_CHECKING */
 
>Release-Note:
>Audit-Trail:
>Unformatted:


             reply	other threads:[~2002-05-07  7:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-07  0:06 Geoffrey Keating [this message]
2002-05-07 11:03 geoffk

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=20020507065727.25926.qmail@sources.redhat.com \
    --to=geoffk@romulus.sfbay.redhat.com \
    --cc=gcc-gnats@gcc.gnu.org \
    --cc=gcc-patches@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).