This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
targetm.calls.promote_prototypes parameter
- From: Jason Merrill <jason at redhat dot com>
- To: DJ Delorie <dj at redhat dot com>, kazu at gcc dot gnu dot org
- Cc: Alexandre Oliva <aoliva at redhat dot com>, olegendo at gcc dot gnu dot org, gcc Mailing List <gcc at gcc dot gnu dot org>
- Date: Wed, 6 Dec 2017 10:14:53 -0500
- Subject: targetm.calls.promote_prototypes parameter
- Authentication-results: sourceware.org; auth=none
It seems that when DJ converted TARGET_PROMOTE_PROTOTYPES to a hook,
he added a parameter type that was never documented; the name and its
initial usage indicate that it was intended to get the type of a
function. Later Kazu converted remaining uses of the macro to use the
hook, but those calls pass the individual parameter type instead. SH
seems to be the only target that cares about the parameter; is this
inconsistency causing trouble there?
Jason