--- Comment #1 from vadimn at redhat dot com 2005-11-23 14:12 ---
> Since i is declared final in the above example, it is a constant
> expression of type int. Therefore, the above clause applies in this
> case.
See also
http://java.sun.com/docs/books/jls/second_edi
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: vadimn at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25001
--- Comment #6 from vadimn at redhat dot com 2005-11-21 21:52 ---
(In reply to comment #5)
> 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.
Except that under Bryce&
--- Comment #4 from vadimn at redhat dot com 2005-11-21 21:40 ---
Created an attachment (id=10316)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10316&action=view)
call-tree-of-depth-4.png
So, speaking of stress patterns, this is what the call tree looks like
if
--- Comment #3 from vadimn at redhat dot com 2005-11-21 21:34 ---
Yeah, this may be a dup.
Bryce did mention that native-compiling this program with -O2 should
turn on the TCO. There are two problems with this theory. Number
one, it still segfaults for me:
| $ gcj -O2 --main=Workout
--- Comment #2 from vadimn at redhat dot com 2005-11-21 21:20 ---
Created an attachment (id=10315)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10315&action=view)
BinaryCallTree.java
For my own education, I wrote a variation of Workout.java that prints
out the call tree
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: vadimn at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24980
ith(String)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libgcj
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: vadimn at redhat dot com
CC: gcc-bu