* [Bug java/20768] Bytecode -> native code doesn't handle exception properly
2005-04-05 18:11 [Bug java/20768] New: Bytecode -> native code doesn't handle exception properly overholt at redhat dot com
@ 2005-04-05 18:12 ` overholt at redhat dot com
2005-04-05 18:20 ` overholt at redhat dot com
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: overholt at redhat dot com @ 2005-04-05 18:12 UTC (permalink / raw)
To: java-prs
------- Additional Comments From overholt at redhat dot com 2005-04-05 18:12 -------
Created an attachment (id=8537)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8537&action=view)
Test case (boiled down from something we're seeing with Ecilpse)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20768
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug java/20768] Bytecode -> native code doesn't handle exception properly
2005-04-05 18:11 [Bug java/20768] New: Bytecode -> native code doesn't handle exception properly overholt at redhat dot com
2005-04-05 18:12 ` [Bug java/20768] " overholt at redhat dot com
@ 2005-04-05 18:20 ` overholt at redhat dot com
2005-04-05 18:41 ` mckinlay at redhat dot com
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: overholt at redhat dot com @ 2005-04-05 18:20 UTC (permalink / raw)
To: java-prs
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |bkonrath at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20768
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug java/20768] Bytecode -> native code doesn't handle exception properly
2005-04-05 18:11 [Bug java/20768] New: Bytecode -> native code doesn't handle exception properly overholt at redhat dot com
2005-04-05 18:12 ` [Bug java/20768] " overholt at redhat dot com
2005-04-05 18:20 ` overholt at redhat dot com
@ 2005-04-05 18:41 ` mckinlay at redhat dot com
2005-04-05 20:15 ` tromey at gcc dot gnu dot org
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: mckinlay at redhat dot com @ 2005-04-05 18:41 UTC (permalink / raw)
To: java-prs
------- Additional Comments From mckinlay at redhat dot com 2005-04-05 18:33 -------
Confirmed. There seems to be something unique about the exception table
generated by ecj which confuses gcj. Note that this happens both with or without
optimization.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-04-05 18:33:25
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20768
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug java/20768] Bytecode -> native code doesn't handle exception properly
2005-04-05 18:11 [Bug java/20768] New: Bytecode -> native code doesn't handle exception properly overholt at redhat dot com
` (2 preceding siblings ...)
2005-04-05 18:41 ` mckinlay at redhat dot com
@ 2005-04-05 20:15 ` tromey at gcc dot gnu dot org
2005-04-08 8:52 ` aph at gcc dot gnu dot org
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: tromey at gcc dot gnu dot org @ 2005-04-05 20:15 UTC (permalink / raw)
To: java-prs
------- Additional Comments From tromey at gcc dot gnu dot org 2005-04-05 20:15 -------
Could you attach the ecj-generated bytecode for this file?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20768
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug java/20768] Bytecode -> native code doesn't handle exception properly
2005-04-05 18:11 [Bug java/20768] New: Bytecode -> native code doesn't handle exception properly overholt at redhat dot com
` (3 preceding siblings ...)
2005-04-05 20:15 ` tromey at gcc dot gnu dot org
@ 2005-04-08 8:52 ` aph at gcc dot gnu dot org
2005-04-19 12:34 ` aph at gcc dot gnu dot org
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: aph at gcc dot gnu dot org @ 2005-04-08 8:52 UTC (permalink / raw)
To: java-prs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |aph at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20768
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug java/20768] Bytecode -> native code doesn't handle exception properly
2005-04-05 18:11 [Bug java/20768] New: Bytecode -> native code doesn't handle exception properly overholt at redhat dot com
` (4 preceding siblings ...)
2005-04-08 8:52 ` aph at gcc dot gnu dot org
@ 2005-04-19 12:34 ` aph at gcc dot gnu dot org
2005-04-26 14:54 ` overholt at redhat dot com
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: aph at gcc dot gnu dot org @ 2005-04-19 12:34 UTC (permalink / raw)
To: java-prs
------- Additional Comments From aph at gcc dot gnu dot org 2005-04-19 12:33 -------
Should be fixed by
2005-04-18 Andrew Haley <aph@redhat.com>
* java-except.h (struct eh_range.handler): Remove unused field.
(handle_nested_ranges): Remove function declaration.
(sanity_check_exception_range): Add function declaration.
* verify.c (verify_jvm_instructions): Remove call to
handle_nested_ranges.
* verify-glue.c (verify_jvm_instructions_new): Call
sanity_check_exception_range.
* except.c (link_handler, eh_range_freelist, link_handler,
handle_nested_ranges): Remove.
(add_handler): Rewrite.
(sanity_check_exception_range): New function.
(print_ranges): New function.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20768
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug java/20768] Bytecode -> native code doesn't handle exception properly
2005-04-05 18:11 [Bug java/20768] New: Bytecode -> native code doesn't handle exception properly overholt at redhat dot com
` (5 preceding siblings ...)
2005-04-19 12:34 ` aph at gcc dot gnu dot org
@ 2005-04-26 14:54 ` overholt at redhat dot com
2005-04-26 16:20 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: overholt at redhat dot com @ 2005-04-26 14:54 UTC (permalink / raw)
To: java-prs
------- Additional Comments From overholt at redhat dot com 2005-04-26 14:54 -------
I've verified this fix in the RPMs in Fedora rawhide (4.0.0-1). I'm not sure if
this counts as a verification from gcc's standpoint, though. I'll mark as FIXED
but feel free to change if I need to verify on HEAD or something.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20768
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug java/20768] Bytecode -> native code doesn't handle exception properly
2005-04-05 18:11 [Bug java/20768] New: Bytecode -> native code doesn't handle exception properly overholt at redhat dot com
` (6 preceding siblings ...)
2005-04-26 14:54 ` overholt at redhat dot com
@ 2005-04-26 16:20 ` pinskia at gcc dot gnu dot org
2005-04-26 16:21 ` [Bug java/20768] [4.0 only] " pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-26 16:20 UTC (permalink / raw)
To: java-prs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-26 16:20 -------
Reopening since this is only fixed on the mainline, this should also be fixed for 4.0.1.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20768
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug java/20768] [4.0 only] Bytecode -> native code doesn't handle exception properly
2005-04-05 18:11 [Bug java/20768] New: Bytecode -> native code doesn't handle exception properly overholt at redhat dot com
` (7 preceding siblings ...)
2005-04-26 16:20 ` pinskia at gcc dot gnu dot org
@ 2005-04-26 16:21 ` pinskia at gcc dot gnu dot org
2005-04-28 16:35 ` cvs-commit at gcc dot gnu dot org
2005-04-28 16:53 ` pinskia at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-26 16:21 UTC (permalink / raw)
To: java-prs
--
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |ASSIGNED
Keywords| |wrong-code
Known to fail| |4.0.0
Known to work| |4.1.0
Summary|Bytecode -> native code |[4.0 only] Bytecode ->
|doesn't handle exception |native code doesn't handle
|properly |exception properly
Target Milestone|--- |4.0.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20768
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug java/20768] [4.0 only] Bytecode -> native code doesn't handle exception properly
2005-04-05 18:11 [Bug java/20768] New: Bytecode -> native code doesn't handle exception properly overholt at redhat dot com
` (8 preceding siblings ...)
2005-04-26 16:21 ` [Bug java/20768] [4.0 only] " pinskia at gcc dot gnu dot org
@ 2005-04-28 16:35 ` cvs-commit at gcc dot gnu dot org
2005-04-28 16:53 ` pinskia at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-04-28 16:35 UTC (permalink / raw)
To: java-prs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-04-28 16:35 -------
Subject: Bug 20768
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-4_0-branch
Changes by: aph@gcc.gnu.org 2005-04-28 16:35:25
Modified files:
gcc/java : expr.c java-except.h verify.c verify-glue.c
except.c ChangeLog
Log message:
2005-04-28 Andrew Haley <aph@redhat.com>
PR java/21115
* expr.c (force_evaluation_order): Convert outgoing args smaller
than integer.
PR java/20768
* java-except.h (struct eh_range.handler): Remove unused field.
(handle_nested_ranges): Remove function declaration.
(sanity_check_exception_range): Add function declaration.
* verify.c (verify_jvm_instructions): Remove call to
handle_nested_ranges.
(start_pc_cmp): Remove function.
(verify_jvm_instructions): Remove PC sorting of exception regions.
* verify-glue.c (verify_jvm_instructions_new): Call
sanity_check_exception_range.
* except.c (link_handler, eh_range_freelist, link_handler,
handle_nested_ranges): Remove.
(add_handler): Rewrite.
(sanity_check_exception_range): New function.
(print_ranges): New function.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/expr.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.218.4.2&r2=1.218.4.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/java-except.h.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.18&r2=1.18.4.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/verify.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.69&r2=1.69.10.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/verify-glue.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.4.2.1&r2=1.4.2.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/except.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.47&r2=1.47.10.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.1556.2.16&r2=1.1556.2.17
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20768
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug java/20768] [4.0 only] Bytecode -> native code doesn't handle exception properly
2005-04-05 18:11 [Bug java/20768] New: Bytecode -> native code doesn't handle exception properly overholt at redhat dot com
` (9 preceding siblings ...)
2005-04-28 16:35 ` cvs-commit at gcc dot gnu dot org
@ 2005-04-28 16:53 ` pinskia at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-28 16:53 UTC (permalink / raw)
To: java-prs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-28 16:53 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20768
^ permalink raw reply [flat|nested] 12+ messages in thread