aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/namet.adb
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2017-04-25 11:40:48 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2017-04-25 11:40:48 +0200
commitd9049849d0052ba4c7ab5585d896c7e746add39f (patch)
treefeb0e278249ba4e4be2b9c2dcd18ecd5c5e3f302 /gcc/ada/namet.adb
parentdb78cb813401d088fb7ad35825f0bac9b9ef4754 (diff)
downloadgcc-d9049849d0052ba4c7ab5585d896c7e746add39f.zip
gcc-d9049849d0052ba4c7ab5585d896c7e746add39f.tar.gz
gcc-d9049849d0052ba4c7ab5585d896c7e746add39f.tar.bz2
[multiple changes]
2017-04-25 Bob Duff <duff@adacore.com> * s-secsta.adb (SS_Info): Add a comment explaining why we don't need to walk all the chunks in order to compute the total size. 2017-04-25 Bob Duff <duff@adacore.com> * namet.ads, namet.adb (Global_Name_Buffer): Increase the length of the global name buffer to 4*Max_Line_Length. 2017-04-25 Javier Miranda <miranda@adacore.com> * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): When creating a renaming entity for debug information, mark the entity as needing debug info if it comes from sources. 2017-04-25 Hristian Kirtchev <kirtchev@adacore.com> * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Remove the restriction converning the use of 'Address where the prefix is of a controlled type. 2017-04-25 Pierre-Marie de Rodat <derodat@adacore.com> * exp_dbug.adb: In Debug_Renaming_Declaration, skip slices that are made redundant by an indexed component access. * atree.h: New definition for Original_Node. From-SVN: r247166
Diffstat (limited to 'gcc/ada/namet.adb')
-rw-r--r--gcc/ada/namet.adb3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/ada/namet.adb b/gcc/ada/namet.adb
index 5bea77d..6e59909 100644
--- a/gcc/ada/namet.adb
+++ b/gcc/ada/namet.adb
@@ -116,6 +116,9 @@ package body Namet is
procedure Append (Buf : in out Bounded_String; C : Character) is
begin
if Buf.Length >= Buf.Chars'Last then
+ Write_Str ("Name buffer overflow; Max_Length = ");
+ Write_Int (Int (Buf.Max_Length));
+ Write_Line ("");
raise Program_Error;
end if;