From: Jim Blandy <jimb@codesourcery.com>
To: Michael Snyder <msnyder@sonic.net>
Cc: gdb-patches@sourceware.org
Subject: Re: [OB] pointer ref, m2-typeprint.c
Date: Tue, 03 Jul 2007 20:50:00 -0000 [thread overview]
Message-ID: <m3ir9143fy.fsf@codesourcery.com> (raw)
In-Reply-To: <20070701153309.GA10872@caradoc.them.org> (Daniel Jacobowitz's message of "Sun, 1 Jul 2007 11:33:09 -0400")
Daniel Jacobowitz <drow@false.org> writes:
> On Fri, Jun 29, 2007 at 11:33:08AM -0700, Michael Snyder wrote:
>> I agree. It would be pretty simple to make CHECK_TYPEDEF safe,
>> and I think I would rather do that than go hunt down every place that
>> calls it. What do you think? Should I add that to this patch?
>>
>> It would add a "not equal to null" test to every call to CHECK_TYPEDEF,
>> of which there are many, but on today's hardware the cost should be less
>> than negligable...
>
> Do you think the case of a NULL type is at all common? I bet
> everything that uses CHECK_TYPEDEF then looks inside the type, so if
> we want null type checks, they'd be more useful before the
> CHECK_TYPEDEF than inside it.
I think CHECK_TYPEDEF ought to require a non-NULL pointer, as it does
now. An explicit test should protect calls when the type might be
NULL.
prev parent reply other threads:[~2007-07-03 20:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-29 0:44 msnyder
2007-06-29 1:02 ` Daniel Jacobowitz
2007-06-29 1:36 ` msnyder
2007-06-29 16:17 ` Daniel Jacobowitz
2007-06-29 18:49 ` Michael Snyder
2007-07-01 15:33 ` Daniel Jacobowitz
2007-07-03 20:50 ` Jim Blandy [this message]
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=m3ir9143fy.fsf@codesourcery.com \
--to=jimb@codesourcery.com \
--cc=gdb-patches@sourceware.org \
--cc=msnyder@sonic.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