]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
From patha@softlab.ericsson.se:
authorbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 6 Jan 2001 05:06:02 +0000 (05:06 +0000)
committerbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 6 Jan 2001 05:06:02 +0000 (05:06 +0000)
* parse.y (switch_label): Use build, not build1, to construct
DEFAULT_EXPR.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38745 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/java/ChangeLog
gcc/java/parse.y

index 0b8306b2861ebb03e823d3bf5124ca1dc8cd2c2f..e3e7e46aa3e028454a2050addd60645c0655d832 100644 (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.
index 1dc60163b8a4f32655184d2885e5d644408cf79e..9dc58043963d3748fe8a80a924cefde02545868d 100644 (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);
                }