Commit 36ae3d8e by Tom Tromey Committed by Tom Tromey

expr.c (expand_byte_code): Only warn about dead bytecode when extra_warnings is set.

	* expr.c (expand_byte_code): Only warn about dead bytecode when
	extra_warnings is set.

From-SVN: r72805
parent 926a822f
2003-10-22 Tom Tromey <tromey@redhat.com>
* expr.c (expand_byte_code): Only warn about dead bytecode when
extra_warnings is set.
2003-10-22 Bryce McKinlay <bryce@mckinlay.net.nz> 2003-10-22 Bryce McKinlay <bryce@mckinlay.net.nz>
Fix for PR java/12586. Fix for PR java/12586.
......
...@@ -2838,8 +2838,9 @@ expand_byte_code (JCF *jcf, tree method) ...@@ -2838,8 +2838,9 @@ expand_byte_code (JCF *jcf, tree method)
if (dead_code_index != -1) if (dead_code_index != -1)
{ {
/* We've just reached the end of a region of dead code. */ /* We've just reached the end of a region of dead code. */
warning ("unreachable bytecode from %d to before %d", if (extra_warnings)
dead_code_index, PC); warning ("unreachable bytecode from %d to before %d",
dead_code_index, PC);
dead_code_index = -1; dead_code_index = -1;
} }
} }
...@@ -2875,8 +2876,9 @@ expand_byte_code (JCF *jcf, tree method) ...@@ -2875,8 +2876,9 @@ expand_byte_code (JCF *jcf, tree method)
if (dead_code_index != -1) if (dead_code_index != -1)
{ {
/* We've just reached the end of a region of dead code. */ /* We've just reached the end of a region of dead code. */
warning ("unreachable bytecode from %d to the end of the method", if (extra_warnings)
dead_code_index); warning ("unreachable bytecode from %d to the end of the method",
dead_code_index);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment