summaryrefslogtreecommitdiffstats
path: root/gcc/ada/a-exextr.adb
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2012-05-15 10:52:24 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2012-05-15 10:52:24 +0000
commite1cedbae69770c11bd36f8aadddabd9c54ab204d (patch)
tree04c1eb149f086e71e621f985ba45cbbf1470156a /gcc/ada/a-exextr.adb
parent258a168decd85348a3c455c4d1c0592ff6604a69 (diff)
downloadppe42-gcc-e1cedbae69770c11bd36f8aadddabd9c54ab204d.tar.gz
ppe42-gcc-e1cedbae69770c11bd36f8aadddabd9c54ab204d.zip
2012-05-15 Tristan Gingold <gingold@adacore.com>
* a-exextr.adb: Add comment. 2012-05-15 Ed Schonberg <schonberg@adacore.com> * sem_ch3.adb: Minor reformatting (remove long dead code). 2012-05-15 Ed Schonberg <schonberg@adacore.com> * aspects.adb, aspects.ads: Add aspects for Convention, Export, External_Name, Import, and Link_Name. * exp_prag.adb (Expand_Pragma_Import_Or_Interface): if the pragma comes from an aspect specification, the entity is the first argument. * sem_prag.adb (Analyze_Pragma, cases Pragma_Export and Pragma_Import): if the pragma comes from an aspect specification, the entity is the first argument, and the second has the value True by default. * sem_ch13.adb (Analyze_Aspect_Specifications): generate pragam for aspect Convention. Add placeholders for Link_Name and External_Name. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187523 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/a-exextr.adb')
-rw-r--r--gcc/ada/a-exextr.adb8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/ada/a-exextr.adb b/gcc/ada/a-exextr.adb
index b6ba237840f..d8f4072e402 100644
--- a/gcc/ada/a-exextr.adb
+++ b/gcc/ada/a-exextr.adb
@@ -162,14 +162,14 @@ package body Exception_Traces is
-----------------------------------
procedure Unhandled_Exception_Terminate is
-
- -- Comments needed on why we do things this way ??? (see RH)
-
Excep : Exception_Occurrence;
-- This occurrence will be used to display a message after finalization.
-- It is necessary to save a copy here, or else the designated value
-- could be overwritten if an exception is raised during finalization
- -- (even if that exception is caught).
+ -- (even if that exception is caught). The occurrence is saved on the
+ -- stack to avoid dynamic allocation (if this exception is due to lack
+ -- of space in the heap, we therefore avoid a second failure). We assume
+ -- that there is enough room on the stack however.
begin
Save_Occurrence (Excep, Get_Current_Excep.all.all);
OpenPOWER on IntegriCloud