This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: targetm.calls.promote_prototypes parameter
- From: Jakub Jelinek <jakub at redhat dot com>
- To: DJ Delorie <dj at redhat dot com>
- Cc: Jason Merrill <jason at redhat dot com>, kazu at gcc dot gnu dot org, aoliva at redhat dot com, olegendo at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Date: Wed, 6 Dec 2017 18:14:15 +0100
- Subject: Re: targetm.calls.promote_prototypes parameter
- Authentication-results: sourceware.org; auth=none
- References: <CADzB+2nQj0Khxg_t23yVaNdY=YpyKtqCB5LDjiSAJKqbfdCj9A@mail.gmail.com> <xno9nbby6q.fsf@greed.delorie.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Wed, Dec 06, 2017 at 11:47:41AM -0500, DJ Delorie wrote:
>
> In my original proposal, I said this:
>
> > It includes a bunch of macro->hook conversions, mostly because the
> > hooks need an additional parameter (the function) to detect which ones
> > are Renesas ABI and which are GCC ABI.
>
> The original documentation at least hinted that the parameter was a
> function type:
>
> > @deftypefn {Target Hook} bool TARGET_PROMOTE_PROTOTYPES (tree @var{fntype})
>
> Kazu's calls are in the C++ stuff, I don't know if g++ and Renesas C++
> are compatible anyway (I doubt it), but that's what would be affected.
> The original work was for C compatibility.
The C FE seems to pass the fntype, while C++ FE seems to pass
the type of the param.
Jakub