diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-07-18 09:25:40 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-07-18 09:25:40 +0000 |
commit | ae4f915b449d8e1069294a8216613f9eec75b53a (patch) | |
tree | 916c8efd989256a5db10ceeeddb4e7d7780ad769 /gcc/ada/debug.adb | |
parent | bd006389830f7c09cff46e01a87ca2d683753d7c (diff) | |
download | gcc-ae4f915b449d8e1069294a8216613f9eec75b53a.tar.gz |
2014-07-18 Vincent Celier <celier@adacore.com>
* debug.adb: Update comment.
2014-07-18 Hristian Kirtchev <kirtchev@adacore.com>
* exp_util.adb (Needs_Finalization): There is no reason why a
C type should not benefit from finalization actions.
2014-07-18 Thomas Quinot <quinot@adacore.com>
* s-oscons-tmplt.c (NAME_MAX): Fix definition for Solaris
(FILENAME_MAX): Remove unneeded definition.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@212785 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/debug.adb')
-rw-r--r-- | gcc/ada/debug.adb | 371 |
1 files changed, 246 insertions, 125 deletions
diff --git a/gcc/ada/debug.adb b/gcc/ada/debug.adb index ffd8d5f95be..97277d61de4 100644 --- a/gcc/ada/debug.adb +++ b/gcc/ada/debug.adb @@ -135,7 +135,6 @@ package body Debug is -- d.O Dump internal SCO tables -- d.P Previous (non-optimized) handling of length comparisons -- d.Q Previous (incomplete) style check for binary operators - -- ??? need to add doc for above switch -- d.R Restrictions in ali files in positional form -- d.S Force Optimize_Alignment (Space) -- d.T Force Optimize_Alignment (Time) @@ -821,82 +820,143 @@ package body Debug is -------------------- procedure Set_Debug_Flag (C : Character; Val : Boolean := True) is - subtype Dig is Character range '1' .. '9'; + subtype Dig is Character range '1' .. '9'; subtype LLet is Character range 'a' .. 'z'; subtype ULet is Character range 'A' .. 'Z'; begin if C in Dig then case Dig (C) is - when '1' => Debug_Flag_1 := Val; - when '2' => Debug_Flag_2 := Val; - when '3' => Debug_Flag_3 := Val; - when '4' => Debug_Flag_4 := Val; - when '5' => Debug_Flag_5 := Val; - when '6' => Debug_Flag_6 := Val; - when '7' => Debug_Flag_7 := Val; - when '8' => Debug_Flag_8 := Val; - when '9' => Debug_Flag_9 := Val; + when '1' => + Debug_Flag_1 := Val; + when '2' => + Debug_Flag_2 := Val; + when '3' => + Debug_Flag_3 := Val; + when '4' => + Debug_Flag_4 := Val; + when '5' => + Debug_Flag_5 := Val; + when '6' => + Debug_Flag_6 := Val; + when '7' => + Debug_Flag_7 := Val; + when '8' => + Debug_Flag_8 := Val; + when '9' => + Debug_Flag_9 := Val; end case; elsif C in ULet then case ULet (C) is - when 'A' => Debug_Flag_AA := Val; - when 'B' => Debug_Flag_BB := Val; - when 'C' => Debug_Flag_CC := Val; - when 'D' => Debug_Flag_DD := Val; - when 'E' => Debug_Flag_EE := Val; - when 'F' => Debug_Flag_FF := Val; - when 'G' => Debug_Flag_GG := Val; - when 'H' => Debug_Flag_HH := Val; - when 'I' => Debug_Flag_II := Val; - when 'J' => Debug_Flag_JJ := Val; - when 'K' => Debug_Flag_KK := Val; - when 'L' => Debug_Flag_LL := Val; - when 'M' => Debug_Flag_MM := Val; - when 'N' => Debug_Flag_NN := Val; - when 'O' => Debug_Flag_OO := Val; - when 'P' => Debug_Flag_PP := Val; - when 'Q' => Debug_Flag_QQ := Val; - when 'R' => Debug_Flag_RR := Val; - when 'S' => Debug_Flag_SS := Val; - when 'T' => Debug_Flag_TT := Val; - when 'U' => Debug_Flag_UU := Val; - when 'V' => Debug_Flag_VV := Val; - when 'W' => Debug_Flag_WW := Val; - when 'X' => Debug_Flag_XX := Val; - when 'Y' => Debug_Flag_YY := Val; - when 'Z' => Debug_Flag_ZZ := Val; + when 'A' => + Debug_Flag_AA := Val; + when 'B' => + Debug_Flag_BB := Val; + when 'C' => + Debug_Flag_CC := Val; + when 'D' => + Debug_Flag_DD := Val; + when 'E' => + Debug_Flag_EE := Val; + when 'F' => + Debug_Flag_FF := Val; + when 'G' => + Debug_Flag_GG := Val; + when 'H' => + Debug_Flag_HH := Val; + when 'I' => + Debug_Flag_II := Val; + when 'J' => + Debug_Flag_JJ := Val; + when 'K' => + Debug_Flag_KK := Val; + when 'L' => + Debug_Flag_LL := Val; + when 'M' => + Debug_Flag_MM := Val; + when 'N' => + Debug_Flag_NN := Val; + when 'O' => + Debug_Flag_OO := Val; + when 'P' => + Debug_Flag_PP := Val; + when 'Q' => + Debug_Flag_QQ := Val; + when 'R' => + Debug_Flag_RR := Val; + when 'S' => + Debug_Flag_SS := Val; + when 'T' => + Debug_Flag_TT := Val; + when 'U' => + Debug_Flag_UU := Val; + when 'V' => + Debug_Flag_VV := Val; + when 'W' => + Debug_Flag_WW := Val; + when 'X' => + Debug_Flag_XX := Val; + when 'Y' => + Debug_Flag_YY := Val; + when 'Z' => + Debug_Flag_ZZ := Val; end case; else case LLet (C) is - when 'a' => Debug_Flag_A := Val; - when 'b' => Debug_Flag_B := Val; - when 'c' => Debug_Flag_C := Val; - when 'd' => Debug_Flag_D := Val; - when 'e' => Debug_Flag_E := Val; - when 'f' => Debug_Flag_F := Val; - when 'g' => Debug_Flag_G := Val; - when 'h' => Debug_Flag_H := Val; - when 'i' => Debug_Flag_I := Val; - when 'j' => Debug_Flag_J := Val; - when 'k' => Debug_Flag_K := Val; - when 'l' => Debug_Flag_L := Val; - when 'm' => Debug_Flag_M := Val; - when 'n' => Debug_Flag_N := Val; - when 'o' => Debug_Flag_O := Val; - when 'p' => Debug_Flag_P := Val; - when 'q' => Debug_Flag_Q := Val; - when 'r' => Debug_Flag_R := Val; - when 's' => Debug_Flag_S := Val; - when 't' => Debug_Flag_T := Val; - when 'u' => Debug_Flag_U := Val; - when 'v' => Debug_Flag_V := Val; - when 'w' => Debug_Flag_W := Val; - when 'x' => Debug_Flag_X := Val; - when 'y' => Debug_Flag_Y := Val; - when 'z' => Debug_Flag_Z := Val; + when 'a' => + Debug_Flag_A := Val; + when 'b' => + Debug_Flag_B := Val; + when 'c' => + Debug_Flag_C := Val; + when 'd' => + Debug_Flag_D := Val; + when 'e' => + Debug_Flag_E := Val; + when 'f' => + Debug_Flag_F := Val; + when 'g' => + Debug_Flag_G := Val; + when 'h' => + Debug_Flag_H := Val; + when 'i' => + Debug_Flag_I := Val; + when 'j' => + Debug_Flag_J := Val; + when 'k' => + Debug_Flag_K := Val; + when 'l' => + Debug_Flag_L := Val; + when 'm' => + Debug_Flag_M := Val; + when 'n' => + Debug_Flag_N := Val; + when 'o' => + Debug_Flag_O := Val; + when 'p' => + Debug_Flag_P := Val; + when 'q' => + Debug_Flag_Q := Val; + when 'r' => + Debug_Flag_R := Val; + when 's' => + Debug_Flag_S := Val; + when 't' => + Debug_Flag_T := Val; + when 'u' => + Debug_Flag_U := Val; + when 'v' => + Debug_Flag_V := Val; + when 'w' => + Debug_Flag_W := Val; + when 'x' => + Debug_Flag_X := Val; + when 'y' => + Debug_Flag_Y := Val; + when 'z' => + Debug_Flag_Z := Val; end case; end if; end Set_Debug_Flag; @@ -906,82 +966,143 @@ package body Debug is --------------------------- procedure Set_Dotted_Debug_Flag (C : Character; Val : Boolean := True) is - subtype Dig is Character range '1' .. '9'; + subtype Dig is Character range '1' .. '9'; subtype LLet is Character range 'a' .. 'z'; subtype ULet is Character range 'A' .. 'Z'; begin if C in Dig then case Dig (C) is - when '1' => Debug_Flag_Dot_1 := Val; - when '2' => Debug_Flag_Dot_2 := Val; - when '3' => Debug_Flag_Dot_3 := Val; - when '4' => Debug_Flag_Dot_4 := Val; - when '5' => Debug_Flag_Dot_5 := Val; - when '6' => Debug_Flag_Dot_6 := Val; - when '7' => Debug_Flag_Dot_7 := Val; - when '8' => Debug_Flag_Dot_8 := Val; - when '9' => Debug_Flag_Dot_9 := Val; + when '1' => + Debug_Flag_Dot_1 := Val; + when '2' => + Debug_Flag_Dot_2 := Val; + when '3' => + Debug_Flag_Dot_3 := Val; + when '4' => + Debug_Flag_Dot_4 := Val; + when '5' => + Debug_Flag_Dot_5 := Val; + when '6' => + Debug_Flag_Dot_6 := Val; + when '7' => + Debug_Flag_Dot_7 := Val; + when '8' => + Debug_Flag_Dot_8 := Val; + when '9' => + Debug_Flag_Dot_9 := Val; end case; elsif C in ULet then case ULet (C) is - when 'A' => Debug_Flag_Dot_AA := Val; - when 'B' => Debug_Flag_Dot_BB := Val; - when 'C' => Debug_Flag_Dot_CC := Val; - when 'D' => Debug_Flag_Dot_DD := Val; - when 'E' => Debug_Flag_Dot_EE := Val; - when 'F' => Debug_Flag_Dot_FF := Val; - when 'G' => Debug_Flag_Dot_GG := Val; - when 'H' => Debug_Flag_Dot_HH := Val; - when 'I' => Debug_Flag_Dot_II := Val; - when 'J' => Debug_Flag_Dot_JJ := Val; - when 'K' => Debug_Flag_Dot_KK := Val; - when 'L' => Debug_Flag_Dot_LL := Val; - when 'M' => Debug_Flag_Dot_MM := Val; - when 'N' => Debug_Flag_Dot_NN := Val; - when 'O' => Debug_Flag_Dot_OO := Val; - when 'P' => Debug_Flag_Dot_PP := Val; - when 'Q' => Debug_Flag_Dot_QQ := Val; - when 'R' => Debug_Flag_Dot_RR := Val; - when 'S' => Debug_Flag_Dot_SS := Val; - when 'T' => Debug_Flag_Dot_TT := Val; - when 'U' => Debug_Flag_Dot_UU := Val; - when 'V' => Debug_Flag_Dot_VV := Val; - when 'W' => Debug_Flag_Dot_WW := Val; - when 'X' => Debug_Flag_Dot_XX := Val; - when 'Y' => Debug_Flag_Dot_YY := Val; - when 'Z' => Debug_Flag_Dot_ZZ := Val; + when 'A' => + Debug_Flag_Dot_AA := Val; + when 'B' => + Debug_Flag_Dot_BB := Val; + when 'C' => + Debug_Flag_Dot_CC := Val; + when 'D' => + Debug_Flag_Dot_DD := Val; + when 'E' => + Debug_Flag_Dot_EE := Val; + when 'F' => + Debug_Flag_Dot_FF := Val; + when 'G' => + Debug_Flag_Dot_GG := Val; + when 'H' => + Debug_Flag_Dot_HH := Val; + when 'I' => + Debug_Flag_Dot_II := Val; + when 'J' => + Debug_Flag_Dot_JJ := Val; + when 'K' => + Debug_Flag_Dot_KK := Val; + when 'L' => + Debug_Flag_Dot_LL := Val; + when 'M' => + Debug_Flag_Dot_MM := Val; + when 'N' => + Debug_Flag_Dot_NN := Val; + when 'O' => + Debug_Flag_Dot_OO := Val; + when 'P' => + Debug_Flag_Dot_PP := Val; + when 'Q' => + Debug_Flag_Dot_QQ := Val; + when 'R' => + Debug_Flag_Dot_RR := Val; + when 'S' => + Debug_Flag_Dot_SS := Val; + when 'T' => + Debug_Flag_Dot_TT := Val; + when 'U' => + Debug_Flag_Dot_UU := Val; + when 'V' => + Debug_Flag_Dot_VV := Val; + when 'W' => + Debug_Flag_Dot_WW := Val; + when 'X' => + Debug_Flag_Dot_XX := Val; + when 'Y' => + Debug_Flag_Dot_YY := Val; + when 'Z' => + Debug_Flag_Dot_ZZ := Val; end case; else case LLet (C) is - when 'a' => Debug_Flag_Dot_A := Val; - when 'b' => Debug_Flag_Dot_B := Val; - when 'c' => Debug_Flag_Dot_C := Val; - when 'd' => Debug_Flag_Dot_D := Val; - when 'e' => Debug_Flag_Dot_E := Val; - when 'f' => Debug_Flag_Dot_F := Val; - when 'g' => Debug_Flag_Dot_G := Val; - when 'h' => Debug_Flag_Dot_H := Val; - when 'i' => Debug_Flag_Dot_I := Val; - when 'j' => Debug_Flag_Dot_J := Val; - when 'k' => Debug_Flag_Dot_K := Val; - when 'l' => Debug_Flag_Dot_L := Val; - when 'm' => Debug_Flag_Dot_M := Val; - when 'n' => Debug_Flag_Dot_N := Val; - when 'o' => Debug_Flag_Dot_O := Val; - when 'p' => Debug_Flag_Dot_P := Val; - when 'q' => Debug_Flag_Dot_Q := Val; - when 'r' => Debug_Flag_Dot_R := Val; - when 's' => Debug_Flag_Dot_S := Val; - when 't' => Debug_Flag_Dot_T := Val; - when 'u' => Debug_Flag_Dot_U := Val; - when 'v' => Debug_Flag_Dot_V := Val; - when 'w' => Debug_Flag_Dot_W := Val; - when 'x' => Debug_Flag_Dot_X := Val; - when 'y' => Debug_Flag_Dot_Y := Val; - when 'z' => Debug_Flag_Dot_Z := Val; + when 'a' => + Debug_Flag_Dot_A := Val; + when 'b' => + Debug_Flag_Dot_B := Val; + when 'c' => + Debug_Flag_Dot_C := Val; + when 'd' => + Debug_Flag_Dot_D := Val; + when 'e' => + Debug_Flag_Dot_E := Val; + when 'f' => + Debug_Flag_Dot_F := Val; + when 'g' => + Debug_Flag_Dot_G := Val; + when 'h' => + Debug_Flag_Dot_H := Val; + when 'i' => + Debug_Flag_Dot_I := Val; + when 'j' => + Debug_Flag_Dot_J := Val; + when 'k' => + Debug_Flag_Dot_K := Val; + when 'l' => + Debug_Flag_Dot_L := Val; + when 'm' => + Debug_Flag_Dot_M := Val; + when 'n' => + Debug_Flag_Dot_N := Val; + when 'o' => + Debug_Flag_Dot_O := Val; + when 'p' => + Debug_Flag_Dot_P := Val; + when 'q' => + Debug_Flag_Dot_Q := Val; + when 'r' => + Debug_Flag_Dot_R := Val; + when 's' => + Debug_Flag_Dot_S := Val; + when 't' => + Debug_Flag_Dot_T := Val; + when 'u' => + Debug_Flag_Dot_U := Val; + when 'v' => + Debug_Flag_Dot_V := Val; + when 'w' => + Debug_Flag_Dot_W := Val; + when 'x' => + Debug_Flag_Dot_X := Val; + when 'y' => + Debug_Flag_Dot_Y := Val; + when 'z' => + Debug_Flag_Dot_Z := Val; end case; end if; end Set_Dotted_Debug_Flag; |