diff options
Diffstat (limited to 'gcc/java/verify.c')
-rw-r--r-- | gcc/java/verify.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/java/verify.c b/gcc/java/verify.c index b81927e..c3b3b98 100644 --- a/gcc/java/verify.c +++ b/gcc/java/verify.c @@ -471,7 +471,6 @@ verify_jvm_instructions (jcf, byte_ops, length) if (start_pc < 0 || start_pc >= length || end_pc < 0 || end_pc > length || start_pc >= end_pc || handler_pc < 0 || handler_pc >= length - || (handler_pc >= start_pc && handler_pc < end_pc) || ! (instruction_bits [start_pc] & BCODE_INSTRUCTION_START) || (end_pc < length && ! (instruction_bits [end_pc] & BCODE_INSTRUCTION_START)) @@ -482,6 +481,9 @@ verify_jvm_instructions (jcf, byte_ops, length) return 0; } + if (handler_pc >= start_pc && handler_pc < end_pc) + warning ("exception handler inside code that is being protected"); + add_handler (start_pc, end_pc, lookup_label (handler_pc), catch_type == 0 ? NULL_TREE |