This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug java/24980] GCJ/GIJ segfaults on Workout.java from Click and Hack's "Java Puzzlers"



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


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