Re: [PATCH 2/3] Implement CALL_EXPR_MUST_TAIL_CALL

2016-05-21 Thread Andreas Schwab
David Malcolm writes: > diff --git a/gcc/testsuite/gcc.dg/plugin/must-tail-call-2.c > b/gcc/testsuite/gcc.dg/plugin/must-tail-call-2.c > new file mode 100644 > index 000..c5504f8 > --- /dev/null > +++ b/gcc/testsuite/gcc.dg/plugin/must-tail-call-2.c > @@ -0,0 +1,58 @@ >

Re: [PATCH 2/3] Implement CALL_EXPR_MUST_TAIL_CALL

2016-05-21 Thread Andreas Schwab
David Malcolm writes: > diff --git a/gcc/testsuite/gcc.dg/plugin/must-tail-call-2.c > b/gcc/testsuite/gcc.dg/plugin/must-tail-call-2.c > new file mode 100644 > index 000..c5504f8 > --- /dev/null > +++ b/gcc/testsuite/gcc.dg/plugin/must-tail-call-2.c > @@ -0,0 +1,58 @@ >

Re: [PATCH 2/3] Implement CALL_EXPR_MUST_TAIL_CALL

2016-05-19 Thread Jeff Law
On 05/17/2016 04:01 PM, David Malcolm wrote: This patch implements support for marking CALL_EXPRs as being mandatory for tail-call-optimization. expand_call tries harder to perform the optimization on such CALL_EXPRs, and issues an error if it fails. Currently this flag isn't accessible from

[PATCH 2/3] Implement CALL_EXPR_MUST_TAIL_CALL

2016-05-17 Thread David Malcolm
This patch implements support for marking CALL_EXPRs as being mandatory for tail-call-optimization. expand_call tries harder to perform the optimization on such CALL_EXPRs, and issues an error if it fails. Currently this flag isn't accessible from any frontend, so the patch uses a plugin for