public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/18190] New: [4.0 regression] primitive array optimization is gone
@ 2004-10-28  1:15 tromey at gcc dot gnu dot org
  2004-10-28  1:39 ` [Bug java/18190] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: tromey at gcc dot gnu dot org @ 2004-10-28  1:15 UTC (permalink / raw)
  To: java-prs

Sample source:

public class t
{
  public static final int[] x = { 5, 7, 9, 11 };
}

In gcc 3.3 (and 3.4 and earlier than 3.3), this code compiled
to something like:

.LJv0.0:
	.long	_Jv_intVTable
	.long	4
	.long	5
	.long	7
	.long	9
	.long	11

Now we actually emit code for this.

The culprits are a combination of this patch to gcj:

2004-07-08  Richard Henderson  <rth@redhat.com>

	* expr.c (case_identity, get_primitive_array_vtable,
	java_expand_expr, emit_init_test_initialization): Remove.
	* java-tree.h (java_expand_expr): Remove.
	* lang.c (LANG_HOOKS_EXPAND_EXPR): Remove.

and this patch to libgcj (which removed the primitive vtables):

2004-07-23  Bryce McKinlay  <mckinlay@redhat.com>

	* prims.cc (_Jv_InitPrimClass): Don't create an array class.
	(_Jv_CreateJavaVM): Don't pass array vtable parameter to
	_Jv_InitPrimClass.
	(DECLARE_PRIM_TYPE): Don't declare array vtables.
	* include/jvm.h (struct _Jv_ArrayVTable): Removed.
	* java/lang/Class.h (_Jv_InitPrimClass): Update friend declaration.

-- 
           Summary: [4.0 regression] primitive array optimization is gone
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tromey at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18190


^ permalink raw reply	[flat|nested] 11+ messages in thread
[parent not found: <bug-18190-360@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2005-10-30 22:11 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-28  1:15 [Bug java/18190] New: [4.0 regression] primitive array optimization is gone tromey at gcc dot gnu dot org
2004-10-28  1:39 ` [Bug java/18190] " pinskia at gcc dot gnu dot org
2004-11-04  4:53 ` pinskia at gcc dot gnu dot org
2004-11-04 18:46 ` mckinlay at redhat dot com
2004-11-04 21:19 ` pinskia at gcc dot gnu dot org
2004-11-04 23:06 ` pinskia at gcc dot gnu dot org
2005-01-11 13:48 ` pinskia at gcc dot gnu dot org
2005-01-19 18:52 ` mmitchel at gcc dot gnu dot org
2005-03-05 19:58 ` [Bug java/18190] [4.0/4.1 " pinskia at gcc dot gnu dot org
2005-08-22  1:47 ` mmitchel at gcc dot gnu dot org
     [not found] <bug-18190-360@http.gcc.gnu.org/bugzilla/>
2005-10-30 22:11 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).