Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: gdb-patches@sourceware.org
Cc: Keith Seitz <keiths@redhat.com>
Subject: Re: New ARI warning Wed Aug 12 01:53:55 UTC 2015
Date: Fri, 14 Aug 2015 18:06:00 -0000	[thread overview]
Message-ID: <20150814180556.GN22245@adacore.com> (raw)
In-Reply-To: <20150812015355.GA61373@sourceware.org>

> 295a296,301
> > gdb/location.c:39: regression: PTR: Do not use PTR, ISO C 90 implies 'void *'
> gdb/location.c:39:#define EL_TYPE(PTR) (PTR)->type
> > gdb/location.c:47: regression: PTR: Do not use PTR, ISO C 90 implies 'void *'
> gdb/location.c:47:#define EL_LINESPEC(PTR) ((PTR)->u.addr_string)
> > gdb/location.c:48: regression: PTR: Do not use PTR, ISO C 90 implies 'void *'
> gdb/location.c:48:#define EL_PROBE(PTR) ((PTR)->u.addr_string)
> > gdb/location.c:52: regression: PTR: Do not use PTR, ISO C 90 implies 'void *'
> gdb/location.c:52:#define EL_ADDRESS(PTR) (PTR)->u.address
> > gdb/location.c:56: regression: PTR: Do not use PTR, ISO C 90 implies 'void *'
> gdb/location.c:56:#define EL_EXPLICIT(PTR) (&((PTR)->u.explicit))
> > gdb/location.c:62: regression: PTR: Do not use PTR, ISO C 90 implies 'void *'
> gdb/location.c:62:#define EL_STRING(PTR) ((PTR)->as_string)

I'm wondering what other people think of these. On the one hand,
I'm pretty sure the ARI check is too simplistic and N/A for
this code. On the other hand, I'd like to think that our long
term goal/hope is to have a clean ARI report someday.

We could tell the ARI that these are OK by adding explicit ARI:
markers, but it seems to me that it'd be just as simple to change
the name of the parameter for each macro.

Thoughts?

-- 
Joel


  reply	other threads:[~2015-08-14 18:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-12  1:53 GDB Administrator
2015-08-14 18:06 ` Joel Brobecker [this message]
2015-08-14 18:12   ` Keith Seitz
2015-08-14 18:32     ` Joel Brobecker
2015-08-14 22:19       ` Keith Seitz

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=20150814180556.GN22245@adacore.com \
    --to=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=keiths@redhat.com \
    /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