From: Mike Stump Date: Tue, 2 May 1995 19:39:17 +0000 (+0000) Subject: fold-const.c (fold): Ensure that we don't alter the expression's type when folding... X-Git-Tag: misc/cutover-egcs-0~4395 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=122977b9df2cc7098292c6555c617ad423a2a2ab;p=thirdparty%2Fgcc.git fold-const.c (fold): Ensure that we don't alter the expression's type when folding CLEANUP_POINT_EXPRs. * fold-const.c (fold): Ensure that we don't alter the expression's type when folding CLEANUP_POINT_EXPRs. From-SVN: r9563 --- diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 56f228cd7644..dd0f8a2b75d2 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -5044,7 +5044,7 @@ fold (expr) /* Pull arithmetic ops out of the CLEANUP_POINT_EXPR where appropriate. */ case CLEANUP_POINT_EXPR: - if (! TREE_SIDE_EFFECTS (arg0)) + if (! TREE_SIDE_EFFECTS (arg0) && type == TREE_TYPE (arg0)) return arg0; {