diff options
author | Bob Duff <duff@adacore.com> | 2016-04-18 10:53:32 +0000 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2016-04-18 12:53:32 +0200 |
commit | b269f47786ffff084e874cd09ac8d87f895a1db6 (patch) | |
tree | c8485ab31d9fcb70d60bce25c2bf64496590d01f /gcc/ada/errout.ads | |
parent | 876f16240d138e8efdb47939f906d4fcfa234fdb (diff) | |
download | gcc-b269f47786ffff084e874cd09ac8d87f895a1db6.zip gcc-b269f47786ffff084e874cd09ac8d87f895a1db6.tar.gz gcc-b269f47786ffff084e874cd09ac8d87f895a1db6.tar.bz2 |
sem_ch6.adb (Is_Inline_Pragma): The pragma argument can be a selected component...
2016-04-18 Bob Duff <duff@adacore.com>
* sem_ch6.adb (Is_Inline_Pragma): The pragma
argument can be a selected component, which has no Chars field,
so we need to deal with that case (use the Selector_Name).
(Check_Inline_Pragma): We need to test Is_List_Member before
calling In_Same_List, because in case of a library unit, they're
not in lists, so In_Same_List fails an assertion.
2016-04-18 Bob Duff <duff@adacore.com>
* namet.ads, namet.adb: Add an Append that appends a
Bounded_String onto a Bounded_String. Probably a little more
efficient than "Append(X, +Y);". Also minor cleanup.
(Append_Decoded, Append_Decoded_With_Brackets, Append_Unqualified,
Append_Unqualified_Decoded): Make sure these work with non-empty
buffers.
* casing.ads, casing.adb (Set_Casing): Pass a Bounded_String
parameter, defaulting to Global_Name_Buffer.
* errout.ads, errout.adb (Adjust_Name_Case): Pass a
Bounded_String parameter, no default.
* exp_ch11.adb (Expand_N_Raise_Statement): Use local
Bounded_String instead of Global_Name_Buffer.
* exp_intr.ads, exp_intr.adb (Write_Entity_Name): Rename it
to Append_Entity_Name, and pass a Bounded_String parameter,
instead of using globals.
(Add_Source_Info): Pass a Bounded_String parameter, instead of
using globals.
(Expand_Source_Info): Use local instead of globals.
* stringt.ads, stringt.adb (Append): Add an Append procedure
for appending a String_Id onto a Bounded_String.
(String_To_Name_Buffer, Add_String_To_Name_Buffer): Rewrite in
terms of Append.
* sem_prag.adb (Set_Error_Msg_To_Profile_Name): Adjust for new
Adjust_Name_Case parameter.
* erroutc.adb, uname.adb: Don't pass D => Mixed_Case to
Set_Casing; that's the default.
* lib-xref-spark_specific.adb (Add_SPARK_Scope): Pretend that calls to
protected subprograms are entry calls; otherwise it is not possible to
distinguish them from regular subprogram calls.
From-SVN: r235129
Diffstat (limited to 'gcc/ada/errout.ads')
-rw-r--r-- | gcc/ada/errout.ads | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/gcc/ada/errout.ads b/gcc/ada/errout.ads index 7066914..70988b9 100644 --- a/gcc/ada/errout.ads +++ b/gcc/ada/errout.ads @@ -904,11 +904,17 @@ package Errout is -- Utility Interface for Casing Control -- ------------------------------------------ + procedure Adjust_Name_Case + (Buf : in out Bounded_String; + Loc : Source_Ptr); + -- Given a name stored in Buf, set proper casing. Loc is an associated + -- source position, if we can find a match between the name in Buf and the + -- name at that source location, we copy the casing from the source, + -- otherwise we set appropriate default casing. + procedure Adjust_Name_Case (Loc : Source_Ptr); - -- Given a name stored in Name_Buffer (1 .. Name_Len), set proper casing. - -- Loc is an associated source position, if we can find a match between - -- the name in Name_Buffer and the name at that source location, we copy - -- the casing from the source, otherwise we set appropriate default casing. + -- Uses Buf => Global_Name_Buffer. There are no calls to this in the + -- compiler, but it is called in SPARK2014. procedure Set_Identifier_Casing (Identifier_Name : System.Address; |