aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2012-01-30 12:53:27 +0100
committerArnaud Charlet <charlet@gcc.gnu.org>2012-01-30 12:53:27 +0100
commitf849ad6ff8acbccd10cd3f3e2277ba1fc9a0cb66 (patch)
treee1c4661a1d7e0011561b6ba16029f5f972c60f67 /gcc/ada
parent37da997b17c1352e72d661f1426d78aa488c3399 (diff)
downloadgcc-f849ad6ff8acbccd10cd3f3e2277ba1fc9a0cb66.zip
gcc-f849ad6ff8acbccd10cd3f3e2277ba1fc9a0cb66.tar.gz
gcc-f849ad6ff8acbccd10cd3f3e2277ba1fc9a0cb66.tar.bz2
[multiple changes]
2012-01-30 Hristian Kirtchev <kirtchev@adacore.com> * exp_ch7.adb (Build_Finalizer_Call): Set loc again. * exp_ch11.adb (Expand_At_End_Handler): Do not provide a source location for the wrapped call to the original AT_END routine and the subsequent return statement. 2012-01-30 Pascal Obry <obry@adacore.com> * s-rannum.adb: Minor reformatting. 2012-01-30 Hristian Kirtchev <kirtchev@adacore.com> * a-calend-vms.adb, a-calend.adb: Increment the number of leap seconds to 25 and add the hard time value for 2012-06-30. From-SVN: r183711
Diffstat (limited to 'gcc/ada')
-rw-r--r--gcc/ada/ChangeLog16
-rw-r--r--gcc/ada/a-calend-vms.adb7
-rw-r--r--gcc/ada/a-calend.adb5
-rw-r--r--gcc/ada/exp_ch11.adb9
-rw-r--r--gcc/ada/exp_ch7.adb2
-rw-r--r--gcc/ada/s-rannum.adb1
6 files changed, 33 insertions, 7 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog
index b50eacf..916f5a2 100644
--- a/gcc/ada/ChangeLog
+++ b/gcc/ada/ChangeLog
@@ -1,3 +1,19 @@
+2012-01-30 Hristian Kirtchev <kirtchev@adacore.com>
+
+ * exp_ch7.adb (Build_Finalizer_Call): Set loc again.
+ * exp_ch11.adb (Expand_At_End_Handler): Do not provide a source
+ location for the wrapped call to the original AT_END routine
+ and the subsequent return statement.
+
+2012-01-30 Pascal Obry <obry@adacore.com>
+
+ * s-rannum.adb: Minor reformatting.
+
+2012-01-30 Hristian Kirtchev <kirtchev@adacore.com>
+
+ * a-calend-vms.adb, a-calend.adb: Increment the number of leap seconds
+ to 25 and add the hard time value for 2012-06-30.
+
2012-01-30 Robert Dewar <dewar@adacore.com>
* a-strhas.ads, einfo.adb, einfo.ads, exp_ch7.adb, exp_ch9.adb,
diff --git a/gcc/ada/a-calend-vms.adb b/gcc/ada/a-calend-vms.adb
index 788ff28..f9453c3 100644
--- a/gcc/ada/a-calend-vms.adb
+++ b/gcc/ada/a-calend-vms.adb
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 1992-2009, Free Software Foundation, Inc. --
+-- Copyright (C) 1992-2012, 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- --
@@ -126,7 +126,7 @@ package body Ada.Calendar is
-- The above flag controls the usage of leap seconds in all Ada.Calendar
-- routines.
- Leap_Seconds_Count : constant Natural := 24;
+ Leap_Seconds_Count : constant Natural := 25;
---------------------
-- Local Constants --
@@ -177,7 +177,8 @@ package body Ada.Calendar is
43744320200000000,
44218656210000000,
46427904220000000,
- 47374848230000000);
+ 47374848230000000,
+ 48478176240000000);
---------
-- "+" --
diff --git a/gcc/ada/a-calend.adb b/gcc/ada/a-calend.adb
index d85eb2c..f79b9d1 100644
--- a/gcc/ada/a-calend.adb
+++ b/gcc/ada/a-calend.adb
@@ -155,7 +155,7 @@ package body Ada.Calendar is
Leap_Support : constant Boolean := (Flag = 1);
-- Flag to controls the usage of leap seconds in all Ada.Calendar routines
- Leap_Seconds_Count : constant Natural := 24;
+ Leap_Seconds_Count : constant Natural := 25;
---------------------
-- Local Constants --
@@ -237,7 +237,8 @@ package body Ada.Calendar is
-4812566380000000000,
-4765132779000000000,
-4544207978000000000,
- -4449513577000000000);
+ -4449513577000000000,
+ -4339180776000000000);
---------
-- "+" --
diff --git a/gcc/ada/exp_ch11.adb b/gcc/ada/exp_ch11.adb
index 7a8f89c..67f4a58 100644
--- a/gcc/ada/exp_ch11.adb
+++ b/gcc/ada/exp_ch11.adb
@@ -101,10 +101,17 @@ package body Exp_Ch11 is
procedure Expand_At_End_Handler (HSS : Node_Id; Block : Node_Id) is
Clean : constant Entity_Id := Entity (At_End_Proc (HSS));
- Loc : constant Source_Ptr := Sloc (Clean);
Ohandle : Node_Id;
Stmnts : List_Id;
+ Loc : constant Source_Ptr := No_Location;
+ -- Location used for expansion. We quite deliberately do not set a
+ -- specific source location for the expanded handler. This makes
+ -- sense since really the handler is not associated with specific
+ -- source. We used to set this to Sloc (Clean), but that caused
+ -- useless and annoying bouncing around of line numbers in the
+ -- debugger in some circumstances.
+
begin
pragma Assert (Present (Clean));
pragma Assert (No (Exception_Handlers (HSS)));
diff --git a/gcc/ada/exp_ch7.adb b/gcc/ada/exp_ch7.adb
index 78a6180..9aac123 100644
--- a/gcc/ada/exp_ch7.adb
+++ b/gcc/ada/exp_ch7.adb
@@ -2843,7 +2843,7 @@ package body Exp_Ch7 is
-- Determine whether N denotes the protected version of a subprogram
-- which belongs to a protected type.
- Loc : constant Source_Ptr := No_Location;
+ Loc : constant Source_Ptr := Sloc (N);
HSS : Node_Id;
begin
diff --git a/gcc/ada/s-rannum.adb b/gcc/ada/s-rannum.adb
index ca38408..21d8799 100644
--- a/gcc/ada/s-rannum.adb
+++ b/gcc/ada/s-rannum.adb
@@ -690,4 +690,5 @@ package body System.Random_Numbers is
begin
return State_Val'Value (S (Start .. Start + Image_Numeral_Length - 1));
end Extract_Value;
+
end System.Random_Numbers;