diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-09-05 07:56:02 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-09-05 07:56:02 +0000 |
commit | 5c6363c7f65cce5941552d28ee26aabee8e2f059 (patch) | |
tree | b5b30756f1f19c01bed62b9b9fef8126093e6cdb /gcc/ada/switch-c.adb | |
parent | 37d963d3bd658161588ba9f4ffc48135a4323b11 (diff) | |
download | gcc-5c6363c7f65cce5941552d28ee26aabee8e2f059.tar.gz |
2005-09-01 Robert Dewar <dewar@adacore.com>
* opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
* par-prag.adb: Implement new pragma Debug_Policy
* sem_prag.adb Implement new pragma Debug_Policy
(Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
Component_Size attribute specification. Give warning for ignored pragma
Pack.
* snames.h, snames.ads, snames.adb: Introduce entries in
Preset_Names for Name_Disp_Asynchronous_Select,
Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
Name_Disp_Timed_Select.
New pragma Debug_Policy
* switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
explicitly.
Switch -gnata also sets Debug_Pragmas_Enabled
* sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
handle an explicit -gnata when compiling predefined files.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103873 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/switch-c.adb')
-rw-r--r-- | gcc/ada/switch-c.adb | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/gcc/ada/switch-c.adb b/gcc/ada/switch-c.adb index 95eabe04650..c89eb1bc0fb 100644 --- a/gcc/ada/switch-c.adb +++ b/gcc/ada/switch-c.adb @@ -31,7 +31,6 @@ with Lib; use Lib; with Osint; use Osint; with Opt; use Opt; with Prepcomp; use Prepcomp; -with Types; use Types; with Validsw; use Validsw; with Stylesw; use Stylesw; @@ -192,6 +191,7 @@ package body Switch.C is when 'a' => Ptr := Ptr + 1; Assertions_Enabled := True; + Debug_Pragmas_Enabled := True; -- Processing for A switch @@ -265,14 +265,6 @@ package body Switch.C is end if; end loop; - -- Make sure Zero_Cost_Exceptions is set if gnatdX set. This - -- is for backwards compatibility with old versions and usage. - - if Debug_Flag_XX then - Zero_Cost_Exceptions_Set := True; - Zero_Cost_Exceptions_Val := True; - end if; - return; -- Processing for D switch @@ -485,6 +477,13 @@ package body Switch.C is System_Extend_Unit := Empty; Warning_Mode := Treat_As_Error; + -- Set Ada 2005 mode explicitly. We don't want to rely on the + -- implicit setting here, since for example, we want + -- Preelaborate_05 treated as Preelaborate + + Ada_Version := Ada_05; + Ada_Version_Explicit := Ada_Version; + -- Set default warnings for -gnatg (same set as -gnatwa) Check_Unreferenced := True; @@ -564,8 +563,8 @@ package body Switch.C is when 'L' => Ptr := Ptr + 1; - Zero_Cost_Exceptions_Set := True; - Zero_Cost_Exceptions_Val := False; + Osint.Fail + ("-gnatL is no longer supported: consider using --RTS=sjlj"); -- Processing for m switch @@ -1059,8 +1058,8 @@ package body Switch.C is when 'Z' => Ptr := Ptr + 1; - Zero_Cost_Exceptions_Set := True; - Zero_Cost_Exceptions_Val := True; + Osint.Fail + ("-gnatZ is no longer supported: consider using --RTS=zcx"); -- Processing for 83 switch |