This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PING][PATCH] New plugin event when evaluating a constexpr call
- From: Jason Merrill <jason at redhat dot com>
- To: Andres Tiraboschi <andres dot tiraboschi at tallertechnologies dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 19 May 2016 12:08:02 -0400
- Subject: Re: [PING][PATCH] New plugin event when evaluating a constexpr call
- Authentication-results: sourceware.org; auth=none
- References: <CAJZwELnRxL54Z8GeXk1gTGY8qd8XeDsEXk-vAPJmMdjoyy-eqQ at mail dot gmail dot com> <571E6E3D dot 4030303 at redhat dot com> <CAJZwELksqE9PAYNZtuz1Frqe35wvo73MyU6X7FJzz6gcd0BmNA at mail dot gmail dot com> <CAJZwEL=PLg5N-dCdc_Lmq1DRH_8OWPvtzqSfhosiaoxuJ6NCJA at mail dot gmail dot com> <8987538f-e97c-46dc-e5f0-a146de57c230 at redhat dot com> <CAJZwEL=CsuhRyZQAULTi_Vz-Z6WZF_pmiX7K3gxa+7yG1zmgbw at mail dot gmail dot com> <CAJZwEL=r0wtCYDX922Thf6gGepZM27cnFsC5CsQCJ5gfKUKCNw at mail dot gmail dot com>
On 05/06/2016 10:23 AM, Andres Tiraboschi wrote:
+static tree
+eval_call_plugin_callback (const constexpr_ctx *ctx, tree fun,
+ bool lval, bool *non_constant_p, bool *overflow_p)
This function needs a comment.
-static void
+void
cxx_bind_parameters_in_call (const constexpr_ctx *ctx, tree t,
Why expose this function? If you want the reduced forms of the
arguments in your plugin, can't you call cxx_eval_constant_expression on
them directly?
Jason