[PATCH] Fix PR java/15576, class initialization optimization disable
Andrew Pinski
pinskia@physics.uc.edu
Fri Nov 5 18:22:00 GMT 2004
On Nov 5, 2004, at 10:52 AM, Andrew Pinski wrote:
> This patch cleans up a little the class initialization and fixes
> it so that it works with the tree-ssa/gimplifier. What needed
> to be done was to add a DECL_EXPR for the decl so that the
> initializer was expanded and also we needed to ignore DECL_EXPR
> in check_init as nobody else in the java front-end uses it and
> the variable was only a scaler type with a constant initializer.
>
> I also think this optimization can now be turned on for class file
> to native compiling as we now do it function at a time compiling for
> them (I think we don't do unit-at-a-time yet though) but that is for
> another patch.
>
> Built on powerpc-darwin. I am in the middle of testing it. OK if
> everthing passes?
There were no regressions.
Thanks,
Andrew Pinski
More information about the Java-patches
mailing list