This is the mail archive of the gcc-patches@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: RFC (gimple): PATCH to really avoid copying empty classes (c++/43787)


On 05/05/2010 05:04 AM, Richard Guenther wrote:
I would like to move us to a point that the gimplifier only knowns about
GENERIC and the frontends would have finished at the point we do
gimplification.  Which is why I ask the question again why the C++
frontend cannot do the zero-sized type stuff during its genericization
phase?

Because the zero-size elimination needs to happen after gimplify_modify_expr_rhs. I suppose it would be possible for cp_genericize to call gimplify_modify_expr_rhs, though...


Jason


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