From: James E Wilson Date: Mon, 9 Feb 2004 21:32:37 +0000 (+0000) Subject: re PR c++/11295 (ICE when using a non-trivial object in a compound statement expression) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=228ae085b590f8e440afa88c181ae5950744dbda;p=gcc.git re PR c++/11295 (ICE when using a non-trivial object in a compound statement expression) PR c++/11295 * c-common.c (c_expand_expr, case STMT_EXPR): Change expand_expr call to expand_expr_real call, and pass in alt_rtl as last argument. From-SVN: r77557 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6ba6220195b..8a99a014ec1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2004-02-09 James E Wilson + PR c++/11295 + * c-common.c (c_expand_expr, case STMT_EXPR): Change expand_expr call + to expand_expr_real call, and pass in alt_rtl as last argument. + PR libstdc++/5625 * builtin-types.def (BT_WORD, BT_FN_WORD_PTR): New. * builtins.c (expand_builtin): Handle BUILT_IN_EXTEND_POINTER. diff --git a/gcc/c-common.c b/gcc/c-common.c index c31c671e9a2..e8370d519ee 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -4106,7 +4106,7 @@ c_expand_expr (tree exp, rtx target, enum machine_mode tmode, expand_stmt (STMT_EXPR_STMT (exp)); expand_end_stmt_expr (rtl_expr); - result = expand_expr (rtl_expr, target, tmode, modifier); + result = expand_expr_real (rtl_expr, target, tmode, modifier, alt_rtl); if (preserve_result && GET_CODE (result) == MEM) { if (GET_MODE (result) != BLKmode)