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]

[gcjx] Patch: FYI: gimplify


I'm checking this in on the gcjx branch.

Now we gimplify a function before passing it on to cgraph.

Tom

# 
# patch "gcc/gcc/java/ChangeLog"
#  from [64886e3486220af424d296583fff24394b1df9e9]
#    to [304655905418a1203ceb963b4cb711419e42c142]
# 
# patch "gcc/gcc/java/glue.hh"
#  from [ecfd03a70bf4d1ae7bda583808fa8284a8fef86f]
#    to [b2b7c41c35d83ac3b139910aefad0192daece6ae]
# 
# patch "gcc/gcc/java/treegen.cc"
#  from [dd3354fa569861961644355f4922d7f51ecf1dcd]
#    to [0163af64327e0e1bf0d7aeb3d63ccc4155e71696]
# 
--- gcc/gcc/java/ChangeLog
+++ gcc/gcc/java/ChangeLog
@@ -1,5 +1,8 @@
 2005-02-07  Tom Tromey  <tromey@redhat.com>
 
+	* glue.hh: Include tree-dump.h.
+	* treegen.cc (generate): Gimplify function.
+
 	* tree.cc (visit_type_qualified_invocation): Pass 'super' to
 	handle_invocation.  Handle static methods correctly.
 	* builtins.cc (map_type): Assign a name to the type.
--- gcc/gcc/java/glue.hh
+++ gcc/gcc/java/glue.hh
@@ -72,6 +72,7 @@
 // This gets us alloc_stmt_list().  Shouldn't that be in
 // tree-iterator.h?
 #include "tree-gimple.h"
+#include "tree-dump.h"
 }
 
 // gcc's system.h defines these unconditionally, but they make life
--- gcc/gcc/java/treegen.cc
+++ gcc/gcc/java/treegen.cc
@@ -58,6 +58,10 @@
     {
       tree_generator gen (builtins, wrapper);
       tree method = gen.generate ((*i).get ());
+
+      dump_function (TDI_original, method);
+      gimplify_function_tree (method);
+      dump_function (TDI_generic, method);
       cgraph_finalize_function (method, 0);
     }
 


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