mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-21 12:49:51 +08:00
fold-const.c (fold_convert_const, fold): Add missing FIX_ROUND_EXPR case.
* fold-const.c (fold_convert_const, fold): Add missing FIX_ROUND_EXPR case. From-SVN: r81410
This commit is contained in:
parent
eb4c9b54b4
commit
fc62753005
@ -1,3 +1,8 @@
|
|||||||
|
2004-05-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||||
|
|
||||||
|
* fold-const.c (fold_convert_const, fold): Add missing
|
||||||
|
FIX_ROUND_EXPR case.
|
||||||
|
|
||||||
2004-05-02 Alexandre Oliva <aoliva@redhat.com>
|
2004-05-02 Alexandre Oliva <aoliva@redhat.com>
|
||||||
|
|
||||||
* configure.ac (FLEX, BISON): Only use tools from the build tree
|
* configure.ac (FLEX, BISON): Only use tools from the build tree
|
||||||
|
@ -1788,6 +1788,10 @@ fold_convert_const (enum tree_code code, tree type, tree arg1)
|
|||||||
real_floor (&r, VOIDmode, &x);
|
real_floor (&r, VOIDmode, &x);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case FIX_ROUND_EXPR:
|
||||||
|
real_round (&r, VOIDmode, &x);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
abort ();
|
abort ();
|
||||||
}
|
}
|
||||||
@ -5630,6 +5634,7 @@ fold (tree expr)
|
|||||||
case FIX_TRUNC_EXPR:
|
case FIX_TRUNC_EXPR:
|
||||||
case FIX_CEIL_EXPR:
|
case FIX_CEIL_EXPR:
|
||||||
case FIX_FLOOR_EXPR:
|
case FIX_FLOOR_EXPR:
|
||||||
|
case FIX_ROUND_EXPR:
|
||||||
if (TREE_TYPE (TREE_OPERAND (t, 0)) == type)
|
if (TREE_TYPE (TREE_OPERAND (t, 0)) == type)
|
||||||
return TREE_OPERAND (t, 0);
|
return TREE_OPERAND (t, 0);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user