This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Don't expand if flag_syntax_only
- From: Andrew Haley <aph at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- Date: Wed, 20 Oct 2004 15:33:07 +0100
- Subject: Don't expand if flag_syntax_only
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)