This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java 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: [PATCH] Fix PR java/15576, class initialization optimization disable



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


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