This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: another gcj assume-compiled fix
- From: Andrew Haley <aph at redhat dot com>
- To: tromey at redhat dot com
- Cc: Java Patch List <java-patches at gcc dot gnu dot org>,Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 24 Jan 2003 09:38:36 GMT
- Subject: Patch: another gcj assume-compiled fix
- References: <87fzrjfo2j.fsf@fleche.redhat.com>
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.