summaryrefslogtreecommitdiff
path: root/gcc/ada/par-ch11.adb
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-15 10:46:56 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-15 10:46:56 +0000
commit30e5c8d3250a70aa673ba3083412f1c3e006c82c (patch)
tree10bddee8ce636cf702726cb420bef283041bab7d /gcc/ada/par-ch11.adb
parentcd8ac304b108e32531bd2357fed2958b0deabb44 (diff)
downloadgcc-30e5c8d3250a70aa673ba3083412f1c3e006c82c.tar.gz
2009-04-15 Robert Dewar <dewar@adacore.com>
* frontend.adb (Frontend): Set proper default for Warn_On_Non_Local_Exception. * opt.ads (Exception_Handler_Encountered): New flag (No_Warn_On_Non_Local_Exception): New flag * par-ch11.adb (P_Exception_Handler): Set Exception_Handler_Encountered * sem_warn.adb (Set_Warning_Switch): Set No_Warn_On_Non_Local_Exception (Set_Dot_Warning_Switch): Set No_Warn_On_Non_Local_Exception 2009-04-15 Cyrille Comar <comar@adacore.com> * s-tassta.adb, a-exextr.adb, a-elchha.adb (Ada.Exception.Last_Chance_Handler): Do not print unhandled exception message when exception traces are active since it would generate redundant information. (Exception_Traces.Notify_Exception): put message output by a critical section to avoid unsynchronized output. (Trace_Unhandled_Exception_In_Task): put message output by a critical section to avoid unsynchronized output. 2009-04-15 Emmanuel Briot <briot@adacore.com> * g-comlin.adb, prj-tree.adb, prj-tree.ads, prj.adb, prj.ads (Free): New subprogram. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146100 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/par-ch11.adb')
-rw-r--r--gcc/ada/par-ch11.adb1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/ada/par-ch11.adb b/gcc/ada/par-ch11.adb
index 412456e1a7e..14129bc6230 100644
--- a/gcc/ada/par-ch11.adb
+++ b/gcc/ada/par-ch11.adb
@@ -92,6 +92,7 @@ package body Ch11 is
Choice_Param_Node : Node_Id;
begin
+ Exception_Handler_Encountered := True;
Handler_Node := New_Node (N_Exception_Handler, Token_Ptr);
Set_Local_Raise_Statements (Handler_Node, No_Elist);