summaryrefslogtreecommitdiff
path: root/gcc/ada/cuintp.c
diff options
context:
space:
mode:
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2007-03-09 17:09:54 +0000
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2007-03-09 17:09:54 +0000
commitf2ea17013528841f2e521e4a500cc164ec1bedf6 (patch)
tree1e4b81524f87b3b337510637b1b2c66422dfc8ba /gcc/ada/cuintp.c
parentb13d1547d45740ef3ac2096ff5555a56babc9be5 (diff)
downloadgcc-f2ea17013528841f2e521e4a500cc164ec1bedf6.tar.gz
* cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
fold with the result of buildN. * decl.c (gnat_to_gnu_entity): Likewise. * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise. * utils.c (finish_record_type, merge_sizes, max_size, convert): Likewise. * utils2.c (gnat_truthvalue_conversion, compare_arrays, nonbinary_modular_operation, build_binary_op, build_unary_op, build_cond_expr): Likewise. * utils.c (convert): Use fold_build1 when casting values to void. * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and fold_convert instead of convert when appropriate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122752 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/cuintp.c')
-rw-r--r--gcc/ada/cuintp.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/gcc/ada/cuintp.c b/gcc/ada/cuintp.c
index fbf800f3a8e..f8107282323 100644
--- a/gcc/ada/cuintp.c
+++ b/gcc/ada/cuintp.c
@@ -6,7 +6,7 @@
* *
* C Implementation File *
* *
- * Copyright (C) 1992-2005 Free Software Foundation, Inc. *
+ * Copyright (C) 1992-2007 Free Software Foundation, Inc. *
* *
* GNAT is free software; you can redistribute it and/or modify it under *
* terms of the GNU General Public License as published by the Free Soft- *
@@ -113,18 +113,18 @@ UI_To_gnu (Uint Input, tree type)
gnu_ret = build_cst_from_int (comp_type, First);
if (First < 0)
for (Idx++, Length--; Length; Idx++, Length--)
- gnu_ret = fold (build2 (MINUS_EXPR, comp_type,
- fold (build2 (MULT_EXPR, comp_type,
- gnu_ret, gnu_base)),
- build_cst_from_int (comp_type,
- Udigits_Ptr[Idx])));
+ gnu_ret = fold_build2 (MINUS_EXPR, comp_type,
+ fold_build2 (MULT_EXPR, comp_type,
+ gnu_ret, gnu_base),
+ build_cst_from_int (comp_type,
+ Udigits_Ptr[Idx]));
else
for (Idx++, Length--; Length; Idx++, Length--)
- gnu_ret = fold (build2 (PLUS_EXPR, comp_type,
- fold (build2 (MULT_EXPR, comp_type,
- gnu_ret, gnu_base)),
- build_cst_from_int (comp_type,
- Udigits_Ptr[Idx])));
+ gnu_ret = fold_build2 (PLUS_EXPR, comp_type,
+ fold_build2 (MULT_EXPR, comp_type,
+ gnu_ret, gnu_base),
+ build_cst_from_int (comp_type,
+ Udigits_Ptr[Idx]));
}
gnu_ret = convert (type, gnu_ret);