This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Privatize gimplify_ctx structure.
- From: Diego Novillo <dnovillo at google dot com>
- To: Jeff Law <law at redhat dot com>
- Cc: Andrew MacLeod <amacleod at redhat dot com>, Richard Biener <richard dot guenther at gmail dot com>, Trevor Saunders <tsaunders at mozilla dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 20 Nov 2013 13:59:17 -0500
- Subject: Re: [patch] Privatize gimplify_ctx structure.
- Authentication-results: sourceware.org; auth=none
- References: <528CBAA0 dot 5060801 at redhat dot com> <CAFiYyc00hQJL3t2S8hw96HC+tp9T6B8mcFzTXQduaQG5F8nQag at mail dot gmail dot com> <20131120141658 dot GJ892 at tucnak dot redhat dot com> <CAFiYyc0HO3vMrLjCUa+TcoC54xd9LH+bEETBLGgSyrJRJEh_EA at mail dot gmail dot com> <20131120150622 dot GA19586 at tsaunders-iceball dot corp dot tor1 dot mozilla dot com> <CAFiYyc0a+Mn+Cr6Hqv1LMc0H_s1YV+JOyV_-2aQTKch74DeTPQ at mail dot gmail dot com> <528CE3BA dot 7010105 at redhat dot com> <528CE7AE dot 4020502 at redhat dot com> <528D020F dot 7010502 at redhat dot com>
On Wed, Nov 20, 2013 at 1:40 PM, Jeff Law <law@redhat.com> wrote:
> Do our coding standards allow using default arguments:
>
> extern void push_gimplify_context (bool in_ssa = false,
> bool rhs_cond_ok = false);
Yes, as long as they are not expensive to construct (so, PODs mostly).
http://gcc.gnu.org/codingconventions.html#Default
Diego.