This is the mail archive of the java@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]

Re: Name mangling once again


Alexandre Petit-Bianco wrote:
> The source of the problem seems that I introduced a change to handle
> the `Synthetic' attribute for things we read from classfiles. But it
> looks like this shouldn't be used on fields as it will prevent them
> from being generated properly. The incriminate code is in
> java/class.c:make_class_data:

What concerns me is how the compiler is forgetting to emit some of these DECLs.

Regardless of DECL_ARTIFICIAL if the variable is referenced anywhere, it must be
generated.  Somehow wrapup_global_declarations is dropping these.  We saw
similar problems with static arrays.

I'd like to look at it a bit closer.  I've come a long way understanding the
interaction of make_decl_rtl and rest_of_decl_compilation but haven't fingered
the problem yet.

--
Jeff Sturm
jeff.sturm@commerceone.com

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