diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-12-17 13:37:04 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-12-17 13:37:04 +0000 |
commit | d66aa9f695c1c0a557fc70d162115a347f925b10 (patch) | |
tree | c88d390281088277a1a339c168d6606e0093cae2 /gcc/ada/a-elchha.adb | |
parent | c5ddfe195aaca1f2c628ea33f536f398d48cebe7 (diff) | |
download | gcc-d66aa9f695c1c0a557fc70d162115a347f925b10.tar.gz |
2003-12-17 Ed Falis <falis@gnat.com>
* a-elchha.adb (Tailored_Exception_Information): made Info constant to
eliminate warning.
* a-exextr.adb: Add context clause for
Ada.Exceptions.Last_Chance_Handler.
2003-12-17 Sergey Rybin <rybin@act-europe.fr>
* cstand.adb (Create_Standard): Change the way how the declaration of
the Duration type is created (making it the same way as it is for all
the other standard types).
2003-12-17 Robert Dewar <dewar@gnat.com>
* s-crtl.ads: Fix header format
Change Pure to Preelaborate
2003-12-17 Ed Schonberg <schonberg@gnat.com>
* checks.adb (Selected_Length_Checks): Generate an Itype reference for
the expression type only if it is declared in the current unit.
* sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
are universal and already analyzed, as can occur in constrained
subcomponents that depend on discriminants, when one constraint is a
subtype mark.
* sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
type Any_Fixed is legal as the argument of a conversion, if only one
fixed-point type is in context.
2003-12-17 GNAT Script <nobody@gnat.com>
* Make-lang.in: Makefile automatically updated
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74741 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/a-elchha.adb')
-rw-r--r-- | gcc/ada/a-elchha.adb | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/gcc/ada/a-elchha.adb b/gcc/ada/a-elchha.adb index 12699fee225..6e2da234a4b 100644 --- a/gcc/ada/a-elchha.adb +++ b/gcc/ada/a-elchha.adb @@ -38,16 +38,15 @@ -- Default version for most targets procedure Ada.Exceptions.Last_Chance_Handler - (Except : Exception_Occurrence) is - + (Except : Exception_Occurrence) +is procedure Unhandled_Terminate; pragma No_Return (Unhandled_Terminate); pragma Import (C, Unhandled_Terminate, "__gnat_unhandled_terminate"); -- Perform system dependent shutdown code function Tailored_Exception_Information - (X : Exception_Occurrence) - return String; + (X : Exception_Occurrence) return String; -- Exception information to be output in the case of automatic tracing -- requested through GNAT.Exception_Traces. -- @@ -96,16 +95,14 @@ procedure Ada.Exceptions.Last_Chance_Handler procedure Tailored_Exception_Information (X : Exception_Occurrence; Buff : in out String; - Last : in out Integer) is - - Info : String := Tailored_Exception_Information (X); + Last : in out Integer) + is + Info : constant String := Tailored_Exception_Information (X); begin Last := Info'Last; Buff (1 .. Last) := Info; end Tailored_Exception_Information; - - begin -- First allocate & store the exception info in a buffer when -- we know it will be needed. This needs to be done before @@ -152,9 +149,9 @@ begin To_Stderr (Nline); - else - -- Traceback exists + -- Traceback exists + else -- Note we can have this whole information output twice if -- this occurrence gets reraised up to here. @@ -165,5 +162,4 @@ begin end if; Unhandled_Terminate; - end Ada.Exceptions.Last_Chance_Handler; |