Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: "Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr>
Cc: <gdb-patches@sourceware.org>
Subject: Re: [RFA] dwarf2read.c: Avoid complaint for char array of unspecified size
Date: Fri, 21 May 2010 22:13:00 -0000	[thread overview]
Message-ID: <m3pr0px76l.fsf@fleche.redhat.com> (raw)
In-Reply-To: <38685.0063725889$1274473713@news.gmane.org> (Pierre Muller's	message of "Fri, 21 May 2010 22:28:23 +0200")

>>>>> "Pierre" == Pierre Muller <pierre.muller@ics-cnrs.unistra.fr> writes:

Pierre>   This code:
Pierre> external char gdbint [];
Pierre> generated a DW_TAG_subrange_type with zero attributes
Pierre> to describe the `[]' part.
Pierre>  (compiled with  gcc (Debian 4.3.2-1.1) 4.3.2.).

I think this kind of DIE is explicitly ok, according to DWARF.
See the paragraph toward the end of section 5.11 that describes what to
do when a DW_TAG_subrange_type has no basis type.

So, I think this complaint is incorrect.  It would be better to simply
remove it.

Tom


       reply	other threads:[~2010-05-21 21:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <38685.0063725889$1274473713@news.gmane.org>
2010-05-21 22:13 ` Tom Tromey [this message]
2010-05-21 23:55   ` Pierre Muller
2010-05-24 15:35     ` Tom Tromey
2010-05-26 15:21       ` [RFA-v2] " Pierre Muller
     [not found]       ` <34200.8848595016$1274864816@news.gmane.org>
2010-05-27 20:09         ` Tom Tromey
2010-05-28 10:17           ` [RFA-v3] " Pierre Muller
2010-06-01 19:07             ` Tom Tromey
2010-06-02  6:25               ` Pierre Muller
2010-06-02 19:35                 ` Tom Tromey
2010-05-21 20:35 [RFA] " Pierre Muller

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=m3pr0px76l.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=pierre.muller@ics-cnrs.unistra.fr \
    /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