From: Richard Kenner Date: Fri, 25 Jun 2004 03:41:41 +0000 (+0000) Subject: gimplify.c (voidify_wrapper_expr): Allow TARGET_EXPR. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=77db1f411d9b7d9cf865b119ea09aadc92238a81;p=gcc.git gimplify.c (voidify_wrapper_expr): Allow TARGET_EXPR. PR/16131 * gimplify.c (voidify_wrapper_expr): Allow TARGET_EXPR. From-SVN: r83633 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b1c0befdd3d..d02cd056827 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2004-06-24 Richard Kenner + PR/16131 + * gimplify.c (voidify_wrapper_expr): Allow TARGET_EXPR. + * gimplify.c: Remove unneeded forward declarations. * gimplify.c (append_to_compound_expr): Deleted. diff --git a/gcc/gimplify.c b/gcc/gimplify.c index 7d1b71544a4..b482fface7d 100644 --- a/gcc/gimplify.c +++ b/gcc/gimplify.c @@ -828,7 +828,8 @@ voidify_wrapper_expr (tree wrapper, tree temp) goto restart; } /* The C++ frontend already did this for us. */ - else if (TREE_CODE (*p) == INIT_EXPR) + else if (TREE_CODE (*p) == INIT_EXPR + || TREE_CODE (*p) == TARGET_EXPR) temp = TREE_OPERAND (*p, 0); /* If we're returning a dereference, move the dereference outside the wrapper. */