This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch: RFA: fix PR java/18741


>>>>> "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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]