Don't expand if flag_syntax_only

Andrew Haley aph@redhat.com
Wed Oct 20 14:34:00 GMT 2004


We shouldn't be expanding with flag_syntax_only.

Andrew.


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

	* decl.c (end_java_method): Don't expand if flag_syntax_only.

Index: decl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/decl.c,v
retrieving revision 1.178.4.11
diff -c -2 -p -w -r1.178.4.11 decl.c
*** decl.c	12 Oct 2004 12:42:42 -0000	1.178.4.11
--- decl.c	20 Oct 2004 14:32:20 -0000
*************** end_java_method (void)
*** 1933,1938 ****
--- 1933,1941 ----
    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)



More information about the Java-patches mailing list