This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: targetm.calls.promote_prototypes parameter


On Wed, Dec 6, 2017 at 12:14 PM, Jakub Jelinek <jakub@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.

Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]