From f4f5851ea31b5cb5c5b81ba645ce51a0a593b0d7 Mon Sep 17 00:00:00 2001 From: Arnaud Charlet Date: Tue, 25 Apr 2017 11:28:49 +0200 Subject: 2017-04-25 Arnaud Charlet * gnat1drv.adb (Gnat1Drv): Disable Generate_Processed_File in codepeer mode. 2017-04-25 Javier Miranda * urealp.adb (UR_Write): Fix output of constants with a base other that 10. 2017-04-25 Justin Squirek * 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 --- gcc/ada/urealp.adb | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'gcc/ada/urealp.adb') 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; -- cgit v1.1