aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/urealp.adb
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2017-04-25 11:28:49 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2017-04-25 11:28:49 +0200
commitf4f5851ea31b5cb5c5b81ba645ce51a0a593b0d7 (patch)
treeb6d0e446799e5c55eca43aabbc113176f3471c7f /gcc/ada/urealp.adb
parent2700fbd655f608e8e23dd3b113eb36d9d8d83bf7 (diff)
downloadgcc-f4f5851ea31b5cb5c5b81ba645ce51a0a593b0d7.zip
gcc-f4f5851ea31b5cb5c5b81ba645ce51a0a593b0d7.tar.gz
gcc-f4f5851ea31b5cb5c5b81ba645ce51a0a593b0d7.tar.bz2
2017-04-25 Arnaud Charlet <charlet@adacore.com trojanek>
* gnat1drv.adb (Gnat1Drv): Disable Generate_Processed_File in codepeer mode. 2017-04-25 Javier Miranda <miranda@adacore.com> * urealp.adb (UR_Write): Fix output of constants with a base other that 10. 2017-04-25 Justin Squirek <squirek@adacore.com> * sem_ch13.adb (Get_Interfacing_Aspects): Moved to sem_util.adb. * sem_prag.adb (Analyze_Pragma, Process_Import_Or_Interface): Add extra parameter for Process_Interface_Name. (Process_Interface_Name): Add parameter for pragma to analyze corresponding aspect. * sem_util.ads, sem_util.adb (Get_Interfacing_Aspects): Added from sem_ch13.adb From-SVN: r247160
Diffstat (limited to 'gcc/ada/urealp.adb')
-rw-r--r--gcc/ada/urealp.adb10
1 files changed, 4 insertions, 6 deletions
diff --git a/gcc/ada/urealp.adb b/gcc/ada/urealp.adb
index f2f036b..b839933 100644
--- a/gcc/ada/urealp.adb
+++ b/gcc/ada/urealp.adb
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 1992-2014, Free Software Foundation, Inc. --
+-- Copyright (C) 1992-2016, 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- --
@@ -1472,8 +1472,8 @@ package body Urealp is
-- of the following forms, depending on the sign of the number
-- and the sign of the exponent (= minus denominator value)
- -- numerator.0*base**exponent
- -- numerator.0*base**-exponent
+ -- numerator.0/base**exponent
+ -- numerator.0/base**-exponent
-- And of course an exponent of 0 can be omitted
@@ -1486,16 +1486,14 @@ package body Urealp is
Write_Str (".0");
if Val.Den /= 0 then
- Write_Char ('*');
+ Write_Char ('/');
Write_Int (Val.Rbase);
Write_Str ("**");
if Val.Den <= 0 then
UI_Write (-Val.Den, Decimal);
else
- Write_Str ("(-");
UI_Write (Val.Den, Decimal);
- Write_Char (')');
end if;
end if;