On Wed, Dec 06, 2017 at 02:27:55PM -0500, Jason Merrill wrote:
> On Wed, Dec 6, 2017 at 12:14 PM, Jakub Jelinek <ja...@redhat.com> wrote:
> > 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.
> 
> I'm inclined to change the C++ FE to pass NULL_TREE instead until such
> time as someone cares.

Well, in PR82897 I had a potential use for it, but one of the obstackles was
that when the C++ FE calls these the function type isn't around.

        Jakub

Reply via email to