From ac8f7e421b35b2f8b045058e83bf7111cc4e2b38 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Tue, 11 Aug 2009 11:39:43 +0000 Subject: [PATCH] re PR bootstrap/40788 (ICE on sparc: tree check: expected class 'expression', have 'declaration' (var_decl) in gimplify_va_arg_expr, at builtins.c:5107) 2009-08-11 Richard Guenther PR bootstrap/40788 * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION. From-SVN: r150648 --- gcc/ChangeLog | 6 ++++++ gcc/builtins.c | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5d1df0f..1938c39 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2009-08-11 Richard Guenther + + PR bootstrap/40788 + * builtins.c (gimplify_va_arg_expr): Do not call + SET_EXPR_LOCATION. + 2009-08-10 Douglas B Rupp * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove diff --git a/gcc/builtins.c b/gcc/builtins.c index 57c0c1b..1349c33 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -5104,7 +5104,6 @@ gimplify_va_arg_expr (tree *expr_p, gimple_seq *pre_p, gimple_seq *post_p) return GS_ALL_DONE; *expr_p = targetm.gimplify_va_arg_expr (valist, type, pre_p, post_p); - SET_EXPR_LOCATION (*expr_p, loc); return GS_OK; } } -- 2.7.4