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]

[tree-ssa][java] remove dead rtl inliner code


Cgraph is supposed to take care of all emission needs now.

Removing this fixes

-# of expected passes           2985
-# of unexpected failures       161
+# of expected passes           3066
+# of unexpected failures       51
 # of expected failures         11
-# of untested testcases        20
+# of untested testcases        49

cause we now crash if we try to invoke the rtl optimizer without going
through the tree optimizer.  At least with code that was _intended_ to
go through the tree optimizer...


r~


        * class.c (finish_class): Kill code to output_inline_function.

Index: gcc/java/class.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/class.c,v
retrieving revision 1.133.2.24
diff -u -p -r1.133.2.24 class.c
--- gcc/java/class.c	28 Oct 2003 14:58:19 -0000	1.133.2.24
+++ gcc/java/class.c	20 Nov 2003 23:20:10 -0000
@@ -1589,37 +1588,6 @@ make_class_data (tree type)
 void
 finish_class (void)
 {
-  tree method;
-  tree type_methods = TYPE_METHODS (current_class);
-  int saw_native_method = 0;
-
-  /* Find out if we have any native methods.  We use this information
-     later.  */
-  for (method = type_methods;
-       method != NULL_TREE;
-       method = TREE_CHAIN (method))
-    {
-      if (METHOD_NATIVE (method))
-	{
-	  saw_native_method = 1;
-	  break;
-	}
-    }
-
-  /* Emit deferred inline methods. */  
-  for (method = type_methods; method != NULL_TREE; )
-    {
-      if (! TREE_ASM_WRITTEN (method) && DECL_SAVED_INSNS (method) != 0)
-	{
-	  output_inline_function (method);
-	  /* Scan the list again to see if there are any earlier
-	     methods to emit. */
-	  method = type_methods;
-	  continue;
-	}
-      method = TREE_CHAIN (method);
-    }
-
   current_function_decl = NULL_TREE;
   make_class_data (current_class);
   register_class ();


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