aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2012-03-09 15:50:48 +0100
committerArnaud Charlet <charlet@gcc.gnu.org>2012-03-09 15:50:48 +0100
commita1fc903a3f2f5eb03776b500f22115eb466d70c6 (patch)
treed1aedbd66af9c99b39741e1a46c7919ec53f4090 /gcc
parentea3a4ad0a334535466172e2860f7f5ed7795e331 (diff)
downloadgcc-a1fc903a3f2f5eb03776b500f22115eb466d70c6.zip
gcc-a1fc903a3f2f5eb03776b500f22115eb466d70c6.tar.gz
gcc-a1fc903a3f2f5eb03776b500f22115eb466d70c6.tar.bz2
[multiple changes]
2012-03-09 Robert Dewar <dewar@adacore.com> * s-osinte-linux.ads, sem_util.adb, s-taprop-linux.adb, exp_ch4.adb, a-strsup.ads, sem_ch6.adb, a-stwisu.ads, exp_ch3.adb, a-stzsup.ads: Minor reformatting. 2012-03-09 Thomas Quinot <quinot@adacore.com> * s-ransee-vms.adb: Minor reformatting. 2012-03-09 Arnaud Charlet <charlet@adacore.com> * comperr.adb (Delete_SCIL_Files): Fix handling of N_Package_Renaming_Declaration and N_Generic_Package_Declaration. From-SVN: r185141
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ada/ChangeLog15
-rw-r--r--gcc/ada/a-strsup.ads13
-rw-r--r--gcc/ada/a-stwisu.ads13
-rw-r--r--gcc/ada/a-stzsup.ads13
-rw-r--r--gcc/ada/comperr.adb11
-rw-r--r--gcc/ada/exp_ch3.adb3
-rw-r--r--gcc/ada/exp_ch4.adb6
-rw-r--r--gcc/ada/s-osinte-linux.ads3
-rw-r--r--gcc/ada/s-ransee-vms.adb2
-rw-r--r--gcc/ada/s-taprop-linux.adb1
-rw-r--r--gcc/ada/sem_ch6.adb6
-rw-r--r--gcc/ada/sem_util.adb31
12 files changed, 73 insertions, 44 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog
index 194f6b0..fdb14dd 100644
--- a/gcc/ada/ChangeLog
+++ b/gcc/ada/ChangeLog
@@ -1,3 +1,18 @@
+2012-03-09 Robert Dewar <dewar@adacore.com>
+
+ * s-osinte-linux.ads, sem_util.adb, s-taprop-linux.adb, exp_ch4.adb,
+ a-strsup.ads, sem_ch6.adb, a-stwisu.ads, exp_ch3.adb,
+ a-stzsup.ads: Minor reformatting.
+
+2012-03-09 Thomas Quinot <quinot@adacore.com>
+
+ * s-ransee-vms.adb: Minor reformatting.
+
+2012-03-09 Arnaud Charlet <charlet@adacore.com>
+
+ * comperr.adb (Delete_SCIL_Files): Fix handling of
+ N_Package_Renaming_Declaration and N_Generic_Package_Declaration.
+
2012-03-09 Javier Miranda <miranda@adacore.com>
* sem_ch6.adb (Check_Body_To_Inline): In AAMP and VM targets
diff --git a/gcc/ada/a-strsup.ads b/gcc/ada/a-strsup.ads
index 185f888..d43a560 100644
--- a/gcc/ada/a-strsup.ads
+++ b/gcc/ada/a-strsup.ads
@@ -41,16 +41,17 @@ with Ada.Strings.Maps;
package Ada.Strings.Superbounded is
pragma Preelaborate;
+ -- Type Bounded_String in Ada.Strings.Bounded.Generic_Bounded_Length is
+ -- derived from Super_String, with the constraint of the maximum length.
+
type Super_String (Max_Length : Positive) is record
Current_Length : Natural := 0;
Data : String (1 .. Max_Length);
- -- A previous version had a default initial value for Data, which is no
- -- longer necessary, because we now special-case this type in the
- -- compiler, so "=" composes properly for descendants of this
- -- type. Leaving it out is more efficient.
+ -- A previous version had a default initial value for Data, which is
+ -- no longer necessary, because we now special-case this type in the
+ -- compiler, so "=" composes properly for descendants of this type.
+ -- Leaving it out is more efficient.
end record;
- -- Type Bounded_String in Ada.Strings.Bounded.Generic_Bounded_Length is
- -- derived from this type, with the constraint of the maximum length.
-- The subprograms defined for Super_String are similar to those
-- defined for Bounded_String, except that they have different names, so
diff --git a/gcc/ada/a-stwisu.ads b/gcc/ada/a-stwisu.ads
index 6b8d3a4..e2f3c57 100644
--- a/gcc/ada/a-stwisu.ads
+++ b/gcc/ada/a-stwisu.ads
@@ -44,16 +44,17 @@ package Ada.Strings.Wide_Superbounded is
Wide_NUL : constant Wide_Character := Wide_Character'Val (0);
+ -- Ada.Strings.Wide_Bounded.Generic_Bounded_Length.Wide_Bounded_String is
+ -- derived from Super_String, with the constraint of the maximum length.
+
type Super_String (Max_Length : Positive) is record
Current_Length : Natural := 0;
Data : Wide_String (1 .. Max_Length);
- -- A previous version had a default initial value for Data, which is no
- -- longer necessary, because we now special-case this type in the
- -- compiler, so "=" composes properly for descendants of this
- -- type. Leaving it out is more efficient.
+ -- A previous version had a default initial value for Data, which is
+ -- no longer necessary, because we now special-case this type in the
+ -- compiler, so "=" composes properly for descendants of this type.
+ -- Leaving it out is more efficient.
end record;
- -- Ada.Strings.Wide_Bounded.Generic_Bounded_Length.Wide_Bounded_String is
- -- derived from this type, with the constraint of the maximum length.
-- The subprograms defined for Super_String are similar to those defined
-- for Bounded_Wide_String, except that they have different names, so that
diff --git a/gcc/ada/a-stzsup.ads b/gcc/ada/a-stzsup.ads
index cb0d173..728b0bc 100644
--- a/gcc/ada/a-stzsup.ads
+++ b/gcc/ada/a-stzsup.ads
@@ -45,16 +45,17 @@ package Ada.Strings.Wide_Wide_Superbounded is
Wide_Wide_NUL : constant Wide_Wide_Character :=
Wide_Wide_Character'Val (0);
+ -- Wide_Wide_Bounded.Generic_Bounded_Length.Wide_Wide_Bounded_String is
+ -- derived from Super_String, with the constraint of the maximum length.
+
type Super_String (Max_Length : Positive) is record
Current_Length : Natural := 0;
Data : Wide_Wide_String (1 .. Max_Length);
- -- A previous version had a default initial value for Data, which is no
- -- longer necessary, because we now special-case this type in the
- -- compiler, so "=" composes properly for descendants of this
- -- type. Leaving it out is more efficient.
+ -- A previous version had a default initial value for Data, which is
+ -- no longer necessary, because we now special-case this type in the
+ -- compiler, so "=" composes properly for descendants of this type.
+ -- Leaving it out is more efficient.
end record;
- -- Wide_Wide_Bounded.Generic_Bounded_Length.Wide_Wide_Bounded_String is
- -- derived from this type, with the constraint of the maximum length.
-- The subprograms defined for Super_String are similar to those defined
-- for Bounded_Wide_Wide_String, except that they have different names, so
diff --git a/gcc/ada/comperr.adb b/gcc/ada/comperr.adb
index 9bf83f3..207beb8 100644
--- a/gcc/ada/comperr.adb
+++ b/gcc/ada/comperr.adb
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 1992-2011, 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- --
@@ -477,7 +477,7 @@ package body Comperr is
Name_Len := K;
end Decode_Name_Buffer;
- -- Start of processing for Decode_Name_Buffer
+ -- Start of processing for Delete_SCIL_Files
begin
-- If parsing was not successful, no Main_Unit is available, so return
@@ -499,6 +499,13 @@ package body Comperr is
when N_Package_Body =>
Unit_Name := Corresponding_Spec (Main);
+ when N_Package_Renaming_Declaration =>
+ Unit_Name := Defining_Unit_Name (Main);
+
+ when N_Generic_Package_Declaration =>
+ -- No SCIL file generated for generic package declarations
+ return;
+
-- Should never happen, but can be ignored in production
when others =>
diff --git a/gcc/ada/exp_ch3.adb b/gcc/ada/exp_ch3.adb
index 4cc9cae..5035751 100644
--- a/gcc/ada/exp_ch3.adb
+++ b/gcc/ada/exp_ch3.adb
@@ -6116,8 +6116,7 @@ package body Exp_Ch3 is
-- This is done unconditionally to ensure that tools can be linked
-- properly with user programs compiled with older language versions.
-- In addition, this is needed because "=" composes for bounded strings
- -- in all language versions (see also
- -- Exp_Ch4.Expand_Composite_Equality).
+ -- in all language versions (see Exp_Ch4.Expand_Composite_Equality).
elsif Comes_From_Source (Def_Id)
and then Convention (Def_Id) = Convention_Ada
diff --git a/gcc/ada/exp_ch4.adb b/gcc/ada/exp_ch4.adb
index f9c1f3c..075c9e8 100644
--- a/gcc/ada/exp_ch4.adb
+++ b/gcc/ada/exp_ch4.adb
@@ -2504,12 +2504,12 @@ package body Exp_Ch4 is
Op : constant Node_Id := Find_Primitive_Eq;
begin
+ -- Use user-defined primitive if it exists, otherwise use
+ -- predefined equality.
+
if Present (Op) then
return Op;
else
-
- -- Use predefined equality if no user-defined primitive exists
-
return Make_Op_Eq (Loc, Lhs, Rhs);
end if;
end;
diff --git a/gcc/ada/s-osinte-linux.ads b/gcc/ada/s-osinte-linux.ads
index 31b4c72..a99c4e5 100644
--- a/gcc/ada/s-osinte-linux.ads
+++ b/gcc/ada/s-osinte-linux.ads
@@ -258,7 +258,8 @@ package System.OS_Interface is
PR_SET_NAME : constant := 15;
function prctl
- (option : int; arg2, arg3, arg4, arg5 : unsigned_long := 0) return int;
+ (option : int;
+ arg2, arg3, arg4, arg5 : unsigned_long := 0) return int;
pragma Import (C, prctl);
-------------
diff --git a/gcc/ada/s-ransee-vms.adb b/gcc/ada/s-ransee-vms.adb
index 49bfadc6b..713edae 100644
--- a/gcc/ada/s-ransee-vms.adb
+++ b/gcc/ada/s-ransee-vms.adb
@@ -30,7 +30,7 @@
------------------------------------------------------------------------------
-- Version used on OpenVMS systems, where Clock accuracy is too low for
--- RM A.5.2 (45).
+-- RM A.5.2(45).
with Interfaces; use Interfaces;
diff --git a/gcc/ada/s-taprop-linux.adb b/gcc/ada/s-taprop-linux.adb
index cf71082..6047d31 100644
--- a/gcc/ada/s-taprop-linux.adb
+++ b/gcc/ada/s-taprop-linux.adb
@@ -771,6 +771,7 @@ package body System.Task_Primitives.Operations is
declare
Task_Name : String (1 .. Parameters.Max_Task_Image_Length + 1);
Result : int;
+
begin
-- Set thread name to ease debugging
diff --git a/gcc/ada/sem_ch6.adb b/gcc/ada/sem_ch6.adb
index 82898b9..60d07c6 100644
--- a/gcc/ada/sem_ch6.adb
+++ b/gcc/ada/sem_ch6.adb
@@ -4888,10 +4888,12 @@ package body Sem_Ch6 is
Remove (Body_To_Analyze);
-- Keep separate checks needed when compiling without optimizations
- -- AAMP and VM targets have no support for inlining in the backend
- -- and hence we use frontend inlining at all optimization levels.
if Optimization_Level = 0
+
+ -- AAMP and VM targets have no support for inlining in the backend
+ -- and hence we use frontend inlining at all optimization levels.
+
or else AAMP_On_Target
or else VM_Target /= No_VM
then
diff --git a/gcc/ada/sem_util.adb b/gcc/ada/sem_util.adb
index 67fa2e0..6886408 100644
--- a/gcc/ada/sem_util.adb
+++ b/gcc/ada/sem_util.adb
@@ -6751,18 +6751,18 @@ package body Sem_Util is
-----------------------
function Is_Bounded_String (T : Entity_Id) return Boolean is
- -- Check whether T is ultimately derived from Ada.Strings.-
- -- Superbounded.Super_String, or one of the [Wide_]Wide_
- -- versions. This will be True for all the Bounded_String types in
- -- instances of the Generic_Bounded_Length generics, and for types
- -- derived from those.
-
Under : constant Entity_Id := Underlying_Type (Root_Type (T));
+
begin
- return Present (Under) and then
- (Is_RTE (Root_Type (Under), RO_SU_Super_String)
- or else Is_RTE (Root_Type (Under), RO_WI_Super_String)
- or else Is_RTE (Root_Type (Under), RO_WW_Super_String));
+ -- Check whether T is ultimately derived from Ada.Strings.Superbounded.
+ -- Super_String, or one of the [Wide_]Wide_ versions. This will
+ -- be True for all the Bounded_String types in instances of the
+ -- Generic_Bounded_Length generics, and for types derived from those.
+
+ return Present (Under)
+ and then (Is_RTE (Root_Type (Under), RO_SU_Super_String) or else
+ Is_RTE (Root_Type (Under), RO_WI_Super_String) or else
+ Is_RTE (Root_Type (Under), RO_WW_Super_String));
end Is_Bounded_String;
-----------------------------
@@ -9422,13 +9422,14 @@ package body Sem_Util is
function Must_Inline (Subp : Entity_Id) return Boolean is
begin
- -- AAMP and VM targets have no support for inlining in the backend.
- -- Hence we do as much inlining as possible in the front end.
-
return
(Optimization_Level = 0
- or else AAMP_On_Target
- or else VM_Target /= No_VM)
+
+ -- AAMP and VM targets have no support for inlining in the backend.
+ -- Hence we do as much inlining as possible in the front end.
+
+ or else AAMP_On_Target
+ or else VM_Target /= No_VM)
and then Has_Pragma_Inline (Subp)
and then (Has_Pragma_Inline_Always (Subp) or else Front_End_Inlining);
end Must_Inline;