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]

Don't expand if flag_syntax_only


We shouldn't be expanding with flag_syntax_only.

I also found some duplicated code, presumably from a misapplied patch.

Andrew.


2004-10-20  Andrew Haley  <aph@redhat.com>

	* decl.c (end_java_method): Don't expand if flag_syntax_only.
	Remove duplicated code block.

Index: decl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/decl.c,v
retrieving revision 1.200
diff -c -2 -p -w -r1.200 decl.c
*** decl.c      1 Oct 2004 15:11:24 -0000       1.200
--- decl.c      20 Oct 2004 17:05:31 -0000
*************** end_java_method (void)
*** 1888,1902 ****
    BLOCK_SUPERCONTEXT (DECL_INITIAL (fndecl)) = fndecl;
  
    flag_unit_at_a_time = 0;
    finish_method (fndecl);
- 
-   if (! flag_unit_at_a_time)
-     {
-       /* Nulling these fields when we no longer need them saves
-        memory.  */
-       DECL_SAVED_TREE (fndecl) = NULL;
-       DECL_STRUCT_FUNCTION (fndecl) = NULL;
-       DECL_INITIAL (fndecl) = NULL_TREE;
      }
    if (! flag_unit_at_a_time)
      {
--- 1888,1897 ----
    BLOCK_SUPERCONTEXT (DECL_INITIAL (fndecl)) = fndecl;
  
+   if (! flag_syntax_only)
+     {
        flag_unit_at_a_time = 0;
        finish_method (fndecl);
      }
+ 
    if (! flag_unit_at_a_time)
      {
You have new mail in /var/spool/mail/aph


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