From patha@softlab.ericsson.se:

* parse.y (switch_label): Use build, not build1, to construct
	DEFAULT_EXPR.

From-SVN: r38745
This commit is contained in:
Bryce McKinlay 2001-01-06 05:06:02 +00:00 committed by Bryce McKinlay
parent c804f3f88d
commit ac39dac023
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
From patha@softlab.ericsson.se:
* parse.y (switch_label): Use build, not build1, to construct
DEFAULT_EXPR.
2001-01-04 Neil Booth <neil@daikokuya.demon.co.uk>
* lang.c (lang_decode_option): Change -MA to -MP.

View File

@ -1628,7 +1628,7 @@ switch_label:
}
| DEFAULT_TK REL_CL_TK
{
tree lab = build1 (DEFAULT_EXPR, NULL_TREE, NULL_TREE);
tree lab = build (DEFAULT_EXPR, NULL_TREE, NULL_TREE);
EXPR_WFL_LINECOL (lab) = $1.location;
java_method_add_stmt (current_function_decl, lab);
}