diff options
author | Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | 2004-06-25 03:41:41 +0000 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 2004-06-24 23:41:41 -0400 |
commit | 77db1f411d9b7d9cf865b119ea09aadc92238a81 (patch) | |
tree | 6705e0e56d15e9088f9186fded1125bc62d1791a /gcc | |
parent | aa4a53af510109ace50301adba3ee39237056cb6 (diff) | |
download | gcc-77db1f411d9b7d9cf865b119ea09aadc92238a81.zip gcc-77db1f411d9b7d9cf865b119ea09aadc92238a81.tar.gz gcc-77db1f411d9b7d9cf865b119ea09aadc92238a81.tar.bz2 |
gimplify.c (voidify_wrapper_expr): Allow TARGET_EXPR.
PR/16131
* gimplify.c (voidify_wrapper_expr): Allow TARGET_EXPR.
From-SVN: r83633
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/gimplify.c | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b1c0bef..d02cd05 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2004-06-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> + 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 7d1b715..b482ffa 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. */ |