From: ebotcazou Date: Mon, 9 Mar 2009 12:06:23 +0000 (+0000) Subject: * fold-const.c (fold_unary): Fix comment. X-Git-Tag: upstream/4.9.2~37559 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4ce9876e3339802e7896e292e704df68dfed8e0e;p=platform%2Fupstream%2Flinaro-gcc.git * fold-const.c (fold_unary): Fix comment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@144723 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 90f93ea..9ab8b72 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2009-03-09 Eric Botcazou + + * fold-const.c (fold_unary): Fix comment. + 2009-03-07 Jan Hubicka PR target/39361 diff --git a/gcc/fold-const.c b/gcc/fold-const.c index da4d50d..97331f3 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -8174,12 +8174,12 @@ fold_unary (enum tree_code code, tree type, tree op0) && inter_prec >= final_prec) return fold_build1 (code, type, TREE_OPERAND (op0, 0)); - /* Likewise, if the intermediate and final types are either both - float or both integer, we don't need the middle conversion if - it is wider than the final type and doesn't change the signedness - (for integers). Avoid this if the final type is a pointer - since then we sometimes need the inner conversion. Likewise if - the outer has a precision not equal to the size of its mode. */ + /* Likewise, if the intermediate and initial types are either both + float or both integer, we don't need the middle conversion if the + former is wider than the latter and doesn't change the signedness + (for integers). Avoid this if the final type is a pointer since + then we sometimes need the middle conversion. Likewise if the + final type has a precision not equal to the size of its mode. */ if (((inter_int && inside_int) || (inter_float && inside_float) || (inter_vec && inside_vec))