check-init.c (current_switch_has_default): New static field.
authorPer Bothner <per@bothner.com>
Mon, 10 Dec 2001 04:28:28 +0000 (20:28 -0800)
committerPer Bothner <bothner@gcc.gnu.org>
Mon, 10 Dec 2001 04:28:28 +0000 (20:28 -0800)
commita5cb134d64a39d1af4c57a863bfe76e1eede38f8
tree73ee10ba948d6110ed04d65fb6a3d591fa635e95
parentbf6cfc5e9d87d41c96e8c9d65f647a2fb05f842d
check-init.c (current_switch_has_default): New static field.

* check-init.c (current_switch_has_default):  New static field.
(check_init):  Case DEFAULT_EXPR: Set current_switch_has_default.
Case SWITCH_EXPR:  Save/restore current_switch_has_default.  If no
DEFAULT_EXPR seen, simulate a default alternative that copies state.

From-SVN: r47833
gcc/java/ChangeLog
gcc/java/check-init.c