public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Nathan Sidwell <nathan@acm.org>
To: Martin Sebor <msebor@gmail.com>,
	Gcc Patch List <gcc-patches@gcc.gnu.org>
Subject: Re: correct attribute ifunc C++ type safety (PR 82301)
Date: Wed, 11 Oct 2017 11:53:00 -0000	[thread overview]
Message-ID: <752252c7-6757-fe61-c28b-ebcd040acdb2@acm.org> (raw)
In-Reply-To: <1b3ba388-5806-3d1a-8ba5-8fab72ea4a04@gmail.com>

On 10/04/2017 03:40 PM, Martin Sebor wrote:
> On 09/28/2017 08:25 AM, Nathan Sidwell wrote:


> Since the original tests (where the resolver returns void*) pass
> across the board I assume it must work for all supported ABIs.
> Or is there some subtlety between the before and after code that
> I'm missing?

I had a vague notion of some (IBM?) target that might do something 
different.  Perhaps it's gone.  Your comment explains it fine.

>> oh, I think it's trying to spot the pointer to NON-static member
>> function internal record type.  But brokenly. I think pmf record_types
>> have DECL_ARTIFICIAL and BUILTIN_LOCATION, that might be useful.
> 
> It turns out this code was superfluous with the C++ correction
> and I was able to remove it with no impact on the tests.

Great.

>> Is this function called before we know whether we've enabled the
>> appropriate warnings?  It would be better to bail out sooner if the
>> warnings are disabled.
> 
> I'm not sure I understand the question or suggestion here but
> warnings in general are certainly enabled at this point.  The
> function issues both errors and warnings so it can't very well
> exit early without checking the compatibility.  Let me know if
> I misunderstood your comment.

Oh, forgot it issued errors too, so my queston is moot.

> -signedness.
> +signedness.  In C++ where incompatible pointer conversions ordinarily cause
Missing comma:  In C++, where incompatible ...

> +errors, the warning detects such conversions in GCC extensions that aren't
> +part of the standard language.  An example of a construct that might perform
> +such a conversion is the @code{alias} attribute.  @xref{Function Attributes,,Declaring Attributes of Functions}.

Looks fine to me.  (pedantically, I don't think I can formally approve 
this, because it's not part of the C++ FE.)

nathan
-- 
Nathan Sidwell

  reply	other threads:[~2017-10-11 11:14 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-25  1:03 Martin Sebor
2017-09-27 15:22 ` Martin Sebor
2017-09-28 11:23 ` Pedro Alves
2017-09-29 15:57   ` Martin Sebor
2017-09-28 14:26 ` Nathan Sidwell
2017-10-04 19:40   ` Martin Sebor
2017-10-11 11:53     ` Nathan Sidwell [this message]
2017-10-11 17:26       ` Jeff Law
2017-10-11 16:32     ` [PING] " Martin Sebor
2017-10-11 16:34       ` Nathan Sidwell
2017-10-11 16:46         ` Martin Sebor

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=752252c7-6757-fe61-c28b-ebcd040acdb2@acm.org \
    --to=nathan@acm.org \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=msebor@gmail.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).