trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to initialize dconstp5...
authorZack Weinberg <zack@codesourcery.com>
Mon, 29 Sep 2003 22:14:01 +0000 (22:14 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Mon, 29 Sep 2003 22:14:01 +0000 (22:14 +0000)
ada:
* trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
initialize dconstp5 and dconstmp5.

From-SVN: r71921

gcc/ada/ChangeLog
gcc/ada/trans.c

index 46e76fd30574ab20e40c8faef0dba84b5a35e265..f1854785315d999e281eaa46681b2c5fea50450d 100644 (file)
@@ -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.
index d666b2f10a645889f2d5cc42dbbf3ac8d8b8822d..2d0e9ffd54f7c5c8931ab7f3c841296a235163c9 100644 (file)
@@ -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);