aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/types.ads
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2015-11-12 14:25:40 +0100
committerArnaud Charlet <charlet@gcc.gnu.org>2015-11-12 14:25:40 +0100
commitaff557c74c4bff664d8b65d68444a5e2b57bd048 (patch)
tree70ab6c0a750c1c31b4dbad5e8824d4b823c6b6af /gcc/ada/types.ads
parenta989bcc3f56ee3b90a9c8d78c94d424d1629f2ec (diff)
downloadgcc-aff557c74c4bff664d8b65d68444a5e2b57bd048.zip
gcc-aff557c74c4bff664d8b65d68444a5e2b57bd048.tar.gz
gcc-aff557c74c4bff664d8b65d68444a5e2b57bd048.tar.bz2
[multiple changes]
2015-11-12 Bob Duff <duff@adacore.com> * impunit.adb, lib-xref.ads, restrict.ads, scos.ads, sem_attr.ads, types.ads: Get rid of some global variables. * output.adb, output.ads: Move some global variables to the body. 2015-11-12 Yannick Moy <moy@adacore.com> * lib-xref-spark_specific.adb (Is_Constant_Object_Without_Variable_Input): Add special case for imported constants. 2015-11-12 Philippe Gil <gil@adacore.com> * g-debpoo.adb (Allocate): Avoid having allocations not handled. 2015-11-12 Ed Schonberg <schonberg@adacore.com> * checks.adb (Apply_Scalar_Range_Check): If the expression is a real literal and the context type has static bounds, remove range check when possible. 2015-11-12 Ed Schonberg <schonberg@adacore.com> * sem_util.adb (Collect_Primitive_Operations): If the type is derived from a type declared elsewhere that has an incomplete type declaration, the primitives are found in the scope of the type nat that of its ancestor. 2015-11-12 Arnaud Charlet <charlet@adacore.com> * switch-c.adb, debug.adb, osint-c.adb, gnat1drv.adb: Remove -gnatd.V debug switch. * exp_aggr.adb, exp_util.adb: Fix typos. 2015-11-12 Jerome Lambourg <lambourg@adacore.com> * init.c: Properly adjust PC values in case of signals. 2015-11-12 Bob Duff <duff@adacore.com> * sem_prag.adb (Check_Arg_Is_Library_Level_Local_Name): A pragma that comes from an aspect does not "come from source", so we need to test whether it comes from an aspect. From-SVN: r230253
Diffstat (limited to 'gcc/ada/types.ads')
-rw-r--r--gcc/ada/types.ads7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/ada/types.ads b/gcc/ada/types.ads
index 8b21b10..1075607 100644
--- a/gcc/ada/types.ads
+++ b/gcc/ada/types.ads
@@ -109,8 +109,9 @@ package Types is
Character range Character'Val (16#80#) .. Character'Val (16#FF#);
-- 8-bit Characters with the upper bit set
- type Character_Ptr is access all Character;
- type String_Ptr is access all String;
+ type Character_Ptr is access all Character;
+ type String_Ptr is access all String;
+ type String_Ptr_Const is access constant String;
-- Standard character and string pointers
procedure Free is new Unchecked_Deallocation (String, String_Ptr);
@@ -896,7 +897,7 @@ package Types is
type Reason_Kind is (CE_Reason, PE_Reason, SE_Reason);
-- Categorization of reason codes by exception raised
- Rkind : array (RT_Exception_Code range <>) of Reason_Kind :=
+ Rkind : constant array (RT_Exception_Code range <>) of Reason_Kind :=
(CE_Access_Check_Failed => CE_Reason,
CE_Access_Parameter_Is_Null => CE_Reason,
CE_Discriminant_Check_Failed => CE_Reason,