diff options
author | Zack Weinberg <zack@codesourcery.com> | 2003-09-29 22:14:01 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2003-09-29 22:14:01 +0000 |
commit | 783be936d2f4928f74c6b8418bd17b21021ece86 (patch) | |
tree | 6cd7dd5b5247402ad28f6bd94c373ce5887005dd /gcc | |
parent | 9d340419285814de51cced9ad39d682c0037167f (diff) | |
download | gcc-783be936d2f4928f74c6b8418bd17b21021ece86.zip gcc-783be936d2f4928f74c6b8418bd17b21021ece86.tar.gz gcc-783be936d2f4928f74c6b8418bd17b21021ece86.tar.bz2 |
trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to initialize dconstp5 and dconstmp5.
ada:
* trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
initialize dconstp5 and dconstmp5.
From-SVN: r71921
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ada/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ada/trans.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 46e76fd..f185478 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,8 @@ +2003-09-29 Zack Weinberg <zack@codesourcery.com> + + * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to + initialize dconstp5 and dconstmp5. + 2003-09-28 Richard Henderson <rth@redhat.com> * trans.c (tree_transform): Update call to expand_asm_operands. diff --git a/gcc/ada/trans.c b/gcc/ada/trans.c index d666b2f..2d0e9ff 100644 --- a/gcc/ada/trans.c +++ b/gcc/ada/trans.c @@ -196,8 +196,8 @@ gigi (gnat_root, max_gnat_node, number_name, nodes_ptr, next_node_ptr, gnu_except_ptr_stack = tree_cons (NULL_TREE, NULL_TREE, NULL_TREE); - dconstp5 = REAL_VALUE_ATOF ("0.5", DFmode); - dconstmp5 = REAL_VALUE_ATOF ("-0.5", DFmode); + REAL_ARITHMETIC (dconstp5, RDIV_EXPR, dconst1, dconst2); + REAL_ARITHMETIC (dconstmp5, RDIV_EXPR, dconstm1, dconst2); gnu_standard_long_long_float = gnat_to_gnu_entity (Base_Type (standard_long_long_float), NULL_TREE, 0); |