re PR java/13237 (ICE on Math.sqrt(2.0))
authorJeff Sturm <jsturm@gcc.gnu.org>
Mon, 1 Dec 2003 14:19:41 +0000 (14:19 +0000)
committerJeff Sturm <jsturm@gcc.gnu.org>
Mon, 1 Dec 2003 14:19:41 +0000 (14:19 +0000)
Fix PR java/13237
* parse.y (java_complete_lhs): Save location prior to patching
CALL_EXPR.

From-SVN: r74101

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

index 695f317b8dda5cfbaa6f32c2630adf753440776b..3eb27bd4b58289e3d602a710fdfbdf4b6291a0c3 100644 (file)
@@ -1,8 +1,14 @@
+2003-12-01  Jeff Sturm  <jsturm@one-point.com>
+
+       Fix PR java/13237
+       * parse.y (java_complete_lhs): Save location prior to patching
+       CALL_EXPR.
+
 2003-11-25  Mohan Embar  <gnustuff@thisiscool.com>
 
-  PR java/12548
-  * resource.c (write_resource_constructor): Append
-  "_resource" to constructor identifier name.
+       PR java/12548
+       * resource.c (write_resource_constructor): Append
+       "_resource" to constructor identifier name.
 
 2003-11-25  Jeff Sturm  <jsturm@one-point.com>
 
index 267198c65f9555f4d32078475b1cb6bc39d667da..81f8f7e83268a9d4a05adcc9ce12c4f94172dac4 100644 (file)
@@ -12053,6 +12053,7 @@ java_complete_lhs (tree node)
          int from_super = (EXPR_WFL_NODE (TREE_OPERAND (node, 0)) ==
                            super_identifier_node);
          tree arguments;
+         int location = EXPR_WFL_LINECOL (node);
 
          node = patch_method_invocation (node, NULL_TREE, NULL_TREE,
                                          from_super, 0, &decl);
@@ -12064,8 +12065,7 @@ java_complete_lhs (tree node)
            arguments = TREE_VALUE (TREE_OPERAND (node, 1));
          else
            arguments = NULL_TREE;
-         check_thrown_exceptions (EXPR_WFL_LINECOL (node), decl,
-                                  arguments);
+         check_thrown_exceptions (location, decl, arguments);
          /* If we call this(...), register signature and positions */
          if (in_this)
            DECL_CONSTRUCTOR_CALLS (current_function_decl) =