public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: java/8457: [3.2/3.3 regression] ICE in generate_bytecode_insns, at java/jcf-write.c:1850
@ 2003-04-04 10:17 aph
  0 siblings, 0 replies; 6+ messages in thread
From: aph @ 2003-04-04 10:17 UTC (permalink / raw)
  To: aph, gcc-bugs, gcc-prs, java-prs, martin_aliger, tjmather

Synopsis: [3.2/3.3 regression] ICE in generate_bytecode_insns, at java/jcf-write.c:1850

State-Changed-From-To: feedback->closed
State-Changed-By: aph
State-Changed-When: Fri Apr  4 10:17:15 2003
State-Changed-Why:
    No longer a regression.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8457


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: java/8457: [3.2/3.3 regression] ICE in generate_bytecode_insns, at java/jcf-write.c:1850
@ 2003-04-04 10:26 Andrew Haley
  0 siblings, 0 replies; 6+ messages in thread
From: Andrew Haley @ 2003-04-04 10:26 UTC (permalink / raw)
  To: aph; +Cc: gcc-prs

The following reply was made to PR java/8457; it has been noted by GNATS.

From: Andrew Haley <aph@redhat.com>
To: Steven Bosscher <s.bosscher@student.tudelft.nl>
Cc: gcc-gnats@gcc.gnu.org, java-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org,
   tjmather@maxmind.com, gcc-prs@gcc.gnu.org, aph@gcc.gnu.org,
   martin_aliger@email.cz
Subject: Re: java/8457: [3.2/3.3 regression] ICE in generate_bytecode_insns,
 at java/jcf-write.c:1850
Date: Fri, 4 Apr 2003 11:17:12 +0100 (BST)

 Steven Bosscher writes:
  > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8457
  > 
  > A patch was applied and the PR is in feedback state.  Why?  According
  > to the changelog, the bug fixed wasn't fixed completely by the patch.  Is
  > it still a regression, or have the remaining always just been there???
 
 It's no longer a regression.  The inner class buges have always been
 there.  I closed the PR.
 
 Andrew.
 


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: java/8457: [3.2/3.3 regression] ICE in generate_bytecode_insns, at java/jcf-write.c:1850
@ 2003-04-04 10:16 Steven Bosscher
  0 siblings, 0 replies; 6+ messages in thread
From: Steven Bosscher @ 2003-04-04 10:16 UTC (permalink / raw)
  To: aph; +Cc: gcc-prs

The following reply was made to PR java/8457; it has been noted by GNATS.

From: Steven Bosscher <s.bosscher@student.tudelft.nl>
To: gcc-gnats@gcc.gnu.org, java-prs@gcc.gnu.org,
	gcc-bugs@gcc.gnu.org, tjmather@maxmind.com, gcc-prs@gcc.gnu.org,
	aph@gcc.gnu.org, martin_aliger@email.cz, aph@redhat.com
Cc:  
Subject: Re: java/8457: [3.2/3.3 regression] ICE in generate_bytecode_insns,
 at java/jcf-write.c:1850
Date: Fri, 04 Apr 2003 12:06:35 +0200

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8457
 
 A patch was applied and the PR is in feedback state.  Why?  According
 to the changelog, the bug fixed wasn't fixed completely by the patch.  Is
 it still a regression, or have the remaining always just been there???
 
 Greetz
 Steven
 
 


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: java/8457: [3.2/3.3 regression] ICE in generate_bytecode_insns, at java/jcf-write.c:1850
@ 2003-02-03 17:50 aph
  0 siblings, 0 replies; 6+ messages in thread
From: aph @ 2003-02-03 17:50 UTC (permalink / raw)
  To: aph, gcc-bugs, gcc-prs, java-prs, martin_aliger, nobody, tjmather

Synopsis: [3.2/3.3 regression] ICE in generate_bytecode_insns, at java/jcf-write.c:1850

Responsible-Changed-From-To: unassigned->aph
Responsible-Changed-By: aph
Responsible-Changed-When: Mon Feb  3 17:50:14 2003
Responsible-Changed-Why:
    Patch checked in.
State-Changed-From-To: analyzed->feedback
State-Changed-By: aph
State-Changed-When: Mon Feb  3 17:50:14 2003
State-Changed-Why:
    Patch checked in.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8457


^ permalink raw reply	[flat|nested] 6+ messages in thread

* java/8457: [3.2/3.3 regression] ICE in generate_bytecode_insns, at java/jcf-write.c:1850
@ 2003-01-31 18:56 Andrew Haley
  0 siblings, 0 replies; 6+ messages in thread
From: Andrew Haley @ 2003-01-31 18:56 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR java/8457; it has been noted by GNATS.

From: Andrew Haley <aph@redhat.com>
To: gcc-gnats@gcc.gnu.org
Cc:  
Subject: java/8457: [3.2/3.3 regression] ICE in generate_bytecode_insns, at java/jcf-write.c:1850
Date: Fri, 31 Jan 2003 18:48:43 +0000 (GMT)

 It seems that when we expand constructors of anonymous innter classes
 we generate access methods that we fail to expand, and later code
 generation explodes.  Fix the fault by making another pass over all
 the classes and expanding the newly created methods.
 
 This doesn't completely fix the test case, as there are more inner
 class bugs, but it's better.
 
 No regressions on i686-RH8.
 
 Andrew.
 
 
 2003-01-31  Andrew Haley  <aph@redhat.com>
 
 	* parse.y (java_expand_classes): Scan the whole class list looking
 	for access methods that haven't yet been expanded.
 
 Index: parse.y
 ===================================================================
 RCS file: /cvs/gcc/gcc/gcc/java/parse.y,v
 retrieving revision 1.417
 diff -p -2 -c -r1.417 parse.y
 *** parse.y	14 Jan 2003 13:31:11 -0000	1.417
 --- parse.y	31 Jan 2003 17:23:06 -0000
 *************** java_expand_classes (void)
 *** 8877,8880 ****
 --- 8877,8939 ----
       }
   
 +   /* Expanding the constructors of anonymous classes generates access
 +      methods.  Scan all the methods looking for null DECL_RESULTs --
 +      this will be the case if a method hasn't been expanded.  */
 +   for (cur_ctxp = ctxp_for_generation; cur_ctxp; cur_ctxp = cur_ctxp->next)
 +     {
 +       tree current;
 +       ctxp = cur_ctxp;
 +       for (current = ctxp->class_list; current; current = TREE_CHAIN (current))
 + 	{
 + 	  tree d;
 + 	  current_class = TREE_TYPE (current);
 + 	  for (d = TYPE_METHODS (current_class); d; d = TREE_CHAIN (d))
 + 	    {
 + 	      if (DECL_RESULT (d) == NULL_TREE)
 + 		{
 + 		  restore_line_number_status (1);
 + 		  java_complete_expand_method (d);
 + 		  restore_line_number_status (0);
 + 		}
 + 	    }
 + 	}
 +     }
 + 
 +   /* ???  Instead of all this we could iterate around the list of
 +      classes until there were no more un-expanded methods.  It would
 +      take a little longer -- one pass over the whole list of methods
 +      -- but it would be simpler.  Like this:  */
 + #if 0
 +     {
 +       int something_changed;
 +     
 +       do
 + 	{
 + 	  something_changed = 0;
 + 	  for (cur_ctxp = ctxp_for_generation; cur_ctxp; cur_ctxp = cur_ctxp->next)
 + 	    {
 + 	      tree current;
 + 	      ctxp = cur_ctxp;
 + 	      for (current = ctxp->class_list; current; current = TREE_CHAIN (current))
 + 		{
 + 		  tree d;
 + 		  current_class = TREE_TYPE (current);
 + 		  for (d = TYPE_METHODS (current_class); d; d = TREE_CHAIN (d))
 + 		    {
 + 		      if (DECL_RESULT (d) == NULL_TREE)
 + 			{
 + 			  something_changed = 1;
 + 			  restore_line_number_status (1);
 + 			  java_complete_expand_method (d);
 + 			  restore_line_number_status (0);
 + 			}
 + 		    }
 + 		}
 + 	    }
 + 	}
 +       while (something_changed);
 +     }
 + #endif
 + 
     /* If we've found error at that stage, don't try to generate
        anything, unless we're emitting xrefs or checking the syntax only


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: java/8457: [3.2/3.3 regression] ICE in generate_bytecode_insns, at java/jcf-write.c:1850
@ 2002-12-06  2:07 reichelt
  0 siblings, 0 replies; 6+ messages in thread
From: reichelt @ 2002-12-06  2:07 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, java-prs, martin_aliger, nobody, tjmather

Old Synopsis: Internal compiler error in generate_bytecode_insns, at java/jcf-write.c:1850
New Synopsis: [3.2/3.3 regression] ICE in generate_bytecode_insns, at java/jcf-write.c:1850

State-Changed-From-To: open->analyzed
State-Changed-By: reichelt
State-Changed-When: Fri Dec  6 02:07:33 2002
State-Changed-Why:
    Confirmed.
    The code crashes 3.2-branch and mainline, but compiled
    fine under gcc 3.0.x.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8457


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-04-04 10:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-04 10:17 java/8457: [3.2/3.3 regression] ICE in generate_bytecode_insns, at java/jcf-write.c:1850 aph
  -- strict thread matches above, loose matches on Subject: below --
2003-04-04 10:26 Andrew Haley
2003-04-04 10:16 Steven Bosscher
2003-02-03 17:50 aph
2003-01-31 18:56 Andrew Haley
2002-12-06  2:07 reichelt

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).