zero sized initializers with side effects discarded
Olivier Hainque
hainque@adacore.com
Mon Sep 12 12:53:00 GMT 2005
Andrew Pinski wrote:
> > FWIW, I think part of the problem is that TREE_SIDE_EFFECTS is not
> > set on the constructor, despite the presence of a function call in
> > the components.
> No, that is not the problem. The problem is that we gimplify the
> expression for side effects but don't actually add the expression if
> the gimplify put it back in the same expression.
> Any ways, the following patch fixes the issue correctly.
>
> If you could test and post the patch, that would be nice?
Will look into it as a separate change (from the init_ctor that I'm
about to submit). Thanks.
More information about the Gcc
mailing list