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]

Patch: another gcj assume-compiled fix


Tom Tromey writes:
 > 
 > Index: ChangeLog
 > from  Tom Tromey  <tromey@redhat.com>
 > 	* class.c (build_static_field_ref): Only a String or numeric field
 > 	can fold to a constant.

Okay if you add a comment that explains why you're doing this.  The
following might be a place to start from, but that's up to you.

/* When using -fno-assume-compiled, gcj will sometimes try to fold a
   field from an uncompiled class.  This is required when the field in
   question meets the appropriate criteria for a compile-time
   constant.  However, currently sometimes gcj is too eager and will
   end up returning the field itself, leading to an incorrect external
   reference being generated.  */

Andrew.


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