s-stausa.adb (Initialize): Updated result initialization, and initialization of envir...
authorQuentin Ochem <ochem@adacore.com>
Tue, 27 May 2008 10:13:53 +0000 (12:13 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Tue, 27 May 2008 10:13:53 +0000 (12:13 +0200)
commita494036c8e2c67c7938f7c4cf34651c3aa1737e2
treefc5f4ca746fe0933f6141488a778144c76c36a5a
parentce2798e8554e195b32f8c0034756dcaa558a12a3
s-stausa.adb (Initialize): Updated result initialization, and initialization of environment stack.

2008-05-27  Quentin Ochem  <ochem@adacore.com>

* s-stausa.adb (Initialize): Updated result initialization, and
initialization of environment stack.
(Fill_Stack): Improved computation of the pattern zone, taking into
account already filled at the calling point.
(Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
Measure and Overflow_Guard.
(Report_Result): Fixed computation of the result using new fields of
Stack_Analyzer.

* s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
params by more explicit Stack_Size / Max_Pattern_Size params.
(Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
Added Stack_Used_When_Filling field.
(Task_Result): Replaced Measure / Overflow_Guard by more explicit
Min_Measure and Max_Measure fields.

* s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.

From-SVN: r135999
gcc/ada/s-stausa.adb
gcc/ada/s-stausa.ads
gcc/ada/s-tassta.adb