Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Michael Snyder <msnyder@redhat.com>
To: Andrew Cagney <ac131313@cygnus.com>
Cc: Michael Elizabeth Chastain <mec@shout.net>,
	gdb-patches@sources.redhat.com
Subject: Re: [RFA] nuke CONST_PTR
Date: Wed, 13 Feb 2002 10:04:00 -0000	[thread overview]
Message-ID: <3C6AA952.5179@redhat.com> (raw)
In-Reply-To: <3C6AA2BA.8090001@cygnus.com>

Andrew Cagney wrote:
> 
> > In gdb 4.18 and gdb 5.0, CONST_PTR was conditionally defined as nothing
> >> if MSC_VER was defined, and "const" otherwise.  In gdb 5.1 and gdb 5.1.1,
> >> CONST_PTR is always defined to "const".  So CONST_PTR has been
> >> unconditionally defined for only a few months.
> >>
> >> However, in gdb 4.18, gdb 5.0, gdb 5.1, and gdb 5.1, c-lang.c has also
> >> contained this line:
> >>
> >> struct type **const (cplus_builtin_types[]) =
> >>
> >> So this form has been in gdb source code for four releases already
> >> without drawing complaint.
> >>
> >> Testing: I built this on native i686-pc-linux-gnu and ran the test suite.
> >>
> >> Okay to apply?
> >
> >
> > Your reasoning seems good, but your testing doesn't.
> > Seems to me you need to test this when building with Microsoft C.
> >
> > OTOH, do we ever build with Microsoft C any more?
> > Is there any reason to support it?  Cygwin and Djgcc
> > are both self-hosting, aren't they?
> 
> Not since '98!  The line:
> 
>  >> struct type **const (cplus_builtin_types[]) =
> 
> was added in '98 so ever since then GDB hasn't been able to build with
> the MSC compiler CONST_PTR was working around.  As Michael pointed out,
> we've had 4 releases since then.

OK, then this change seems safe.  Maybe we can also
start yanking out other #if MSC code...


  reply	other threads:[~2002-02-13 18:04 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-13  6:44 Michael Elizabeth Chastain
2002-02-13  7:19 ` Kevin Buettner
2002-02-13  8:15 ` Michael Snyder
2002-02-13  9:30   ` Andrew Cagney
2002-02-13 10:04     ` Michael Snyder [this message]
2002-02-13 10:56       ` Christopher Faylor
2002-02-13 11:05       ` Andrew Cagney
2002-02-13 11:08         ` Christopher Faylor
2002-02-13  9:06 Michael Elizabeth Chastain
2002-02-13 11:43 ` Eli Zaretskii
2002-02-13 10:49 Michael Elizabeth Chastain

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=3C6AA952.5179@redhat.com \
    --to=msnyder@redhat.com \
    --cc=ac131313@cygnus.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=mec@shout.net \
    /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