This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch: RFA: fix PR java/18741
- From: Tom Tromey <tromey at redhat dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: Gcc Patch List <gcc-patches at gcc dot gnu dot org>, Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 01 Dec 2004 16:07:30 -0700
- Subject: Re: Patch: RFA: fix PR java/18741
- References: <m3pt1tllhz.fsf@localhost.localdomain><20041201230640.GA14464@redhat.com>
- Reply-to: tromey at redhat dot com
>>>>> "rth" == Richard Henderson <rth@redhat.com> writes:
>> + if (IS_EXPR_CODE_CLASS (TREE_CODE_CLASS (TREE_CODE (*expr_p))))
rth> This is EXPR_P.
Thanks. Here's the updated patch.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
PR java/18741:
* java-gimplify.c (java_gimplify_expr): Don't call
SET_EXPR_LOCATION unless wrapped tree is an expression.
Index: java-gimplify.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/java-gimplify.c,v
retrieving revision 1.17
diff -u -r1.17 java-gimplify.c
--- java-gimplify.c 24 Nov 2004 11:41:38 -0000 1.17
+++ java-gimplify.c 1 Dec 2004 23:09:36 -0000
@@ -78,7 +78,8 @@
input_location.line = EXPR_WFL_LINENO (*expr_p);
#endif
*expr_p = EXPR_WFL_NODE (*expr_p);
- SET_EXPR_LOCATION (*expr_p, input_location);
+ if (EXPR_P (*expr_p))
+ SET_EXPR_LOCATION (*expr_p, input_location);
break;
case LABELED_BLOCK_EXPR: