diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-09-05 07:46:59 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-09-05 07:46:59 +0000 |
commit | 3a7fc3d614abf9a85891594846f87e16c858f635 (patch) | |
tree | c8c4bdeea1597cf43807ca89f524b62979d2208c /gcc/ada/a-exexda.adb | |
parent | 51e69f04c0161130375d97979e76cbfd0bd2d45e (diff) | |
download | gcc-3a7fc3d614abf9a85891594846f87e16c858f635.tar.gz |
PR ada/23646
* s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
(Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
Remove reference to System.Exceptions.
* s-mastop-x86.adb: Removed, no longer used.
* s-traceb-mastop.adb: Adjust calls to Pop_Frame.
* a-excach.adb: Minor reformatting.
* a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
instead fix new warnings that were hidden by this change.
(AAA, ZZZ): Removed, replaced by...
(Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
are used instead of constants, to help make Ada.Exception truly
preelaborate.
(Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
Raise_Storage_Error): File is now a System.Address, to simplify code.
(Elab code): Removed, no longer used.
(Null_Occurrence): Remove Warnings Off and make this construct
preelaborate.
Remove code related to front-end zero cost exception handling, since
it is no longer used.
Remove -gnatL/-gnatZ switches.
* a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
Update use of Except.Msg.
* gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
to front-end zero cost exception handling, since it is no longer used.
Remove -gnatL/-gnatZ switches.
* lib-writ.ads: Minor reformatting
Remove doc of UX
* Makefile.rtl: Remove references to s-except*, s-mastop-x86*
* Make-lang.in: Remove references to s-except.ads
* s-except.ads: Removed, no longer used.
* s-mastop.ads, s-mastop.adb:
(Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
Remove reference to System.Exceptions.
* raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
switch-b.adb: Remove code related to front-end zero cost exception
handling, since it is no longer used.
Remove -gnatL/-gnatZ switches.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103848 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/a-exexda.adb')
-rw-r--r-- | gcc/ada/a-exexda.adb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/ada/a-exexda.adb b/gcc/ada/a-exexda.adb index 901b386cec0..6049ccd3285 100644 --- a/gcc/ada/a-exexda.adb +++ b/gcc/ada/a-exexda.adb @@ -476,7 +476,7 @@ package body Exception_Data is declare Len : constant Natural := Exception_Name_Length (Id); - Name : constant String (1 .. Len) := Id.Full_Name (1 .. Len); + Name : constant String (1 .. Len) := To_Ptr (Id.Full_Name) (1 .. Len); begin Append_Info_String (Name, Info, Ptr); end; @@ -556,9 +556,9 @@ package body Exception_Data is procedure Set_Exception_C_Msg (Id : Exception_Id; - Msg1 : Big_String_Ptr; + Msg1 : System.Address; Line : Integer := 0; - Msg2 : Big_String_Ptr := null) + Msg2 : System.Address := System.Null_Address) is Excep : constant EOA := Get_Current_Excep.all; Val : Integer := Line; @@ -575,11 +575,11 @@ package body Exception_Data is Excep.Msg_Length := 0; Excep.Cleanup_Flag := False; - while Msg1 (Excep.Msg_Length + 1) /= ASCII.NUL + while To_Ptr (Msg1) (Excep.Msg_Length + 1) /= ASCII.NUL and then Excep.Msg_Length < Exception_Msg_Max_Length loop Excep.Msg_Length := Excep.Msg_Length + 1; - Excep.Msg (Excep.Msg_Length) := Msg1 (Excep.Msg_Length); + Excep.Msg (Excep.Msg_Length) := To_Ptr (Msg1) (Excep.Msg_Length); end loop; -- Append line number if present @@ -613,18 +613,18 @@ package body Exception_Data is -- Append second message if present - if Msg2 /= null + if Msg2 /= System.Null_Address and then Excep.Msg_Length + 1 < Exception_Msg_Max_Length then Excep.Msg_Length := Excep.Msg_Length + 1; Excep.Msg (Excep.Msg_Length) := ' '; Ptr := 1; - while Msg2 (Ptr) /= ASCII.NUL + while To_Ptr (Msg2) (Ptr) /= ASCII.NUL and then Excep.Msg_Length < Exception_Msg_Max_Length loop Excep.Msg_Length := Excep.Msg_Length + 1; - Excep.Msg (Excep.Msg_Length) := Msg2 (Ptr); + Excep.Msg (Excep.Msg_Length) := To_Ptr (Msg2) (Ptr); Ptr := Ptr + 1; end loop; end if; |