aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
diff options
context:
space:
mode:
authorJeff Sturm <jsturm@gcc.gnu.org>2003-12-01 14:19:41 +0000
committerJeff Sturm <jsturm@gcc.gnu.org>2003-12-01 14:19:41 +0000
commit50abb28b647be1dfb36ebb8947a8d49e97112464 (patch)
tree427c3e3c1a800027959cc330388e0db9d9c5c352 /gcc/java
parent08aa9a4a1cc0bb4a94b2612a9818578fc9222cde (diff)
downloadgcc-50abb28b647be1dfb36ebb8947a8d49e97112464.zip
gcc-50abb28b647be1dfb36ebb8947a8d49e97112464.tar.gz
gcc-50abb28b647be1dfb36ebb8947a8d49e97112464.tar.bz2
re PR java/13237 (ICE on Math.sqrt(2.0))
Fix PR java/13237 * parse.y (java_complete_lhs): Save location prior to patching CALL_EXPR. From-SVN: r74101
Diffstat (limited to 'gcc/java')
-rw-r--r--gcc/java/ChangeLog12
-rw-r--r--gcc/java/parse.y4
2 files changed, 11 insertions, 5 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 695f317..3eb27bd 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -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>
diff --git a/gcc/java/parse.y b/gcc/java/parse.y
index 267198c..81f8f7e 100644
--- a/gcc/java/parse.y
+++ b/gcc/java/parse.y
@@ -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) =