This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/24980] GCJ/GIJ segfaults on Workout.java from Click and Hack's "Java Puzzlers"
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Nov 2005 21:46:50 -0000
- Subject: [Bug java/24980] GCJ/GIJ segfaults on Workout.java from Click and Hack's "Java Puzzlers"
- References: <bug-24980-8557@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from pinskia at gcc dot gnu dot org 2005-11-21 21:46 -------
(In reply to comment #3)
> Number two, the TCO cannot possibly be applied in this case. (I can't
> see how at the moment, but I'm willing to be convinced otherwise.)
Actually TCO cannot because you still need to unwind the stack but it would
always be calling the first workHard, even before the finnally one is called..
>Bryce ran the program under a newer version of GCJ and got some
>equally bizarre results:
It is not that bizarre as what is happening is that the function is being
marked as a "pure" function so it does nothing useful, so we remove it.
Anyways I am marking this as a dup of bug 1373. This comes down to the halting
problem.
*** This bug has been marked as a duplicate of 1373 ***
*** This bug has been marked as a duplicate of 1373 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24980