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]

[PATCH] Java: fixing gcc/1905 and other issues.


This patch fixes gcc/385 and some other related issues:

  http://gcc.gnu.org/ml/gcc-prs/2001-q1/msg01026.html
  http://gcc.gnu.org/ml/java/2001-02/threads.html#00015

I'm checking this in, as it would prevent some bytecode only package
builds from linking.

./A

2001-02-07  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* jcf-parse.c (HANDLE_SYNTHETIC_ATTRIBUTE): Don't handle field
	DECLs.

Index: jcf-parse.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/jcf-parse.c,v
retrieving revision 1.75
diff -u -p -r1.75 jcf-parse.c
--- jcf-parse.c	2001/02/04 22:44:02	1.75
+++ jcf-parse.c	2001/02/07 20:38:27
@@ -224,11 +224,12 @@ set_source_filename (jcf, index)
 
 #define HANDLE_SYNTHETIC_ATTRIBUTE()					\
 {									\
-  /* Irrelevant decls should have been nullified by the END macros. */ \
+  /* Irrelevant decls should have been nullified by the END macros.	\
+     We only handle the `Synthetic' attribute on method DECLs.		\
+     DECL_ARTIFICIAL on fields is used for something else (See          \
+     PUSH_FIELD in java-tree.h) */                                      \
   if (current_method)							\
     DECL_ARTIFICIAL (current_method) = 1;				\
-  else									\
-    DECL_ARTIFICIAL (current_field) = 1;				\
 }
 
 #include "jcf-reader.c"

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