aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/s-stausa.adb
AgeCommit message (Collapse)AuthorFilesLines
2010-10-18sinfo.ads, sinfo.adb: Change Has_Pragma_CPU to Flag14 (Flag10 is standard ↵Robert Dewar1-7/+13
field). 2010-10-18 Robert Dewar <dewar@adacore.com> * sinfo.ads, sinfo.adb: Change Has_Pragma_CPU to Flag14 (Flag10 is standard field). 2010-10-18 Robert Dewar <dewar@adacore.com> * s-stausa.adb, s-taprop-linux.adb, s-taprop-mingw.adb, s-tassta.ads: Minor reformatting. 2010-10-18 Robert Dewar <dewar@adacore.com> * exp_strm.adb (Build_Elementary_Input_Call): Check No_Default_Stream_Attributes. (Build_Elementary_Write_Call): Check No_Default_Stream_Attributes * s-rident.ads: Add restriction No_Default_Stream_Attributes Put restriction No_Allocators_After_Elaboration in alpha order From-SVN: r165626
2010-10-18[multiple changes]Arnaud Charlet1-46/+83
2010-10-18 Vincent Celier <celier@adacore.com> * prj.ads (Source_Data): New Boolean flag In_The_Queue. 2010-10-18 Tristan Gingold <gingold@adacore.com> * s-stausa.ads: Add the Top parameter to Initialize_Analyzer. * s-stausa.adb: Use the top parameter. In Fill_Stack, use the stack top if known. * s-tassta.adb (Task_Wrapper): Call Initialize_Analyzer after Enter_Task so that Pri_Stack_Info.Limit can be set and used. 2010-10-18 Robert Dewar <dewar@adacore.com> * einfo.ads: Minor reformatting. * sem_res.adb (Resolve_Allocator): Add test for violating No_Anonymous_Allocators. From-SVN: r165624
2009-11-30[multiple changes]Arnaud Charlet1-11/+9
2009-11-30 Robert Dewar <dewar@adacore.com> * osint.ads, prj.adb, prj.ads: Minor reformatting * s-stchop.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb, s-taprop-linux.adb, s-taprop-solaris.adb, s-strxdr.adb, s-taprop-irix.adb, s-osinte-hpux-dce.adb, s-osinte-tru64.adb, s-taenca.adb, s-taprop-hpux-dce.adb, s-stausa.adb, s-taprop-posix.adb: Minor code reorganization (use conditional expressions). 2009-11-30 Bob Duff <duff@adacore.com> * g-sttsne-locking.adb (Copy_Service_Entry): Complete previous change. From-SVN: r154779
2009-04-29[multiple changes]Arnaud Charlet1-17/+20
2009-04-29 Ed Schonberg <schonberg@adacore.com> * sem_elim.adb (Check_Eliminated): Handle new improved eliminate information: no need for full scope check. (Eliminate_Error): Do not emit error in a generic context. 2009-04-29 Ed Falis <falis@adacore.com> * adaint.c (__gnat_rmdir): return error code if VTHREADS is defined. VxWorks 653 POS does not support rmdir. 2009-04-29 Matteo Bordin <bordin@adacore.com> * s-stausa.adb, s-stausa.ads: Get_Usage_Range: changing the way results are printed. From-SVN: r146943
2009-04-29[multiple changes]Arnaud Charlet1-28/+31
2009-04-29 Arnaud Charlet <charlet@adacore.com> * s-taskin.adb (Initialize): Remove pragma Warnings Off and remove unused assignment. 2009-04-29 Thomas Quinot <quinot@adacore.com> * make.adb: Minor reformatting. Minor code reorganization throughout. 2009-04-29 Matteo Bordin <bordin@adacore.com> * s-stausa.ads: Changed visibility of type Task_Result: moved to public part to give application visibility over it. This is for future improvement and to build a public API on top of it. Changed record components name of type Task_Result to reflect the new way of reporting. * s-stausa.adb: Actual_Size_Str changed to reflect the new way of reporting Stack usage. * gnat_ugn.texi: Update doc of stack usage report. * g-tastus.ads, s-stusta.ads, s-stusta.adb: New files. * Makefile.rtl: Add new run-time files. From-SVN: r146942
2009-04-09Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception.Jakub Jelinek1-14/+12
From-SVN: r145841
2008-08-06s-stausa.adb (Fill_Stack): Fixed pragma assert and top pattern mark in the ↵Quentin Ochem1-5/+13
case of an empty pattern size. 2008-08-06 Quentin Ochem <ochem@adacore.com> * s-stausa.adb (Fill_Stack): Fixed pragma assert and top pattern mark in the case of an empty pattern size. (Compute_Result): Do not do any computation in the case of an empty pattern size. (Report_Result): Fixed computation of the overflow guard. From-SVN: r138771
2008-07-312008-07-31 Quentin Ochem <ochem@adacore.com>Quentin Ochem1-18/+40
* s-stausa.ad? (Fill_Stack): Stack_Used_When_Filling is now stored anymore - just used internally. Added handling of very small tasks - when the theoretical size is already full at the point of the call. (Report_Result): Fixed result computation, Stack_Used_When_Filling does not need to be added to the result. From-SVN: r138405
2008-06-03Makefile.in (common_tools): Fix typos in $(exeext) extension.Ralf Wildenhues1-1/+1
gcc/ada/ * Makefile.in (common_tools): Fix typos in $(exeext) extension. * gnat_ugn.texi (Style Checking) (Adding the Results of Compiler Checks to gnatcheck Output) (Example of Binder Output File): Fix typos. * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb, exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads, s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb, s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb, sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads, sinfo.ads, utils.c: Fix typos in comments. * sem_ch6.adb, vms_data.ads: Fix typos in strings. From-SVN: r136329
2008-05-27makeutl.adb: Minor reformattingRobert Dewar1-19/+23
2008-05-27 Robert Dewar <dewar@adacore.com> * makeutl.adb: Minor reformatting * prj-nmsc.adb: Minor reformatting * s-stausa.adb: Minor reformatting * s-stausa.ads: Minor reformatting * sem_ch6.adb: Minor reformatting From-SVN: r136005
2008-05-27s-stausa.adb (Initialize): Updated result initialization, and initialization ↵Quentin Ochem1-47/+59
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
2008-04-13s-secsta.adb, [...]: Fix comment typos.Ralf Wildenhues1-2/+2
gcc/ada/ * s-secsta.adb, s-sequio.ads, s-shasto.ads, s-soflin.ads, s-stalib.ads, s-stausa.adb, s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb, s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb, s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads, s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb, s-tposen.ads, s-traceb-hpux.adb, s-traces.ads, s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads, s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads, scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads: Fix comment typos. From-SVN: r134241
2007-12-13s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant with ↵Olivier Hainque1-96/+186
Stack_Grows_Down in System.Parameters. 2007-12-06 Olivier Hainque <hainque@adacore.com> * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant with Stack_Grows_Down in System.Parameters. Rename Array_Address into Stack_Overlay_Address and document that we are using an internal abstraction. (Byte_Size, Unsigned_32_Size): Remove, now useless. (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used consistently throughout the various implementation pieces. * s-stausa.adb (Stack_Slots): New type, abstraction for the stack overlay we are using to fill the stack area with patterns. (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots. (Push_Index_Step_For, Pop_Index_Step_For): Likewise. (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction. From-SVN: r130863
2007-08-14s-intman-irix.adb, [...]: Minor reformattingRobert Dewar1-1/+3
2007-08-14 Robert Dewar <dewar@adacore.com> * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads, s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb, s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb, s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb, s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads, s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads, s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb, exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads, s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb, s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads, a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads, g-altcon.adb: Minor reformatting ada-tree.h: Delete empty line. ali.ads: Minor reformatting Clarification of comments. Minor spelling correction * exp_dbug.adb: Add Warnings Off to suppress new warning * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode formal * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old value * a-textio.adb (Write): Remove an unnecessary IN OUT mode from * a-textio.ads: Reorder the standard input/output/error declarations for consistency. * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call * par-ch2.adb: Recognize RM specially in errout Change 'R'M to RM in all error messages * scng.adb: Recognize RM specially in errout * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology. * s-direio.adb: Add missing routine header box. * sem_attr.ads: Add ??? comments * sem_eval.adb: Recognize RM specially in errout Change 'R'M to RM in all error messages * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes * s-tasinf.ads: Fix minor comment typo. * a-cihama.adb: Minor comment addition * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode formal * s-tasinf-tru64.ads: Fix minor comment typo. * itypes.ads: Comment update. * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed anymore. * argv.c: Added protection against null gnat_argv and gnat_envp. * bcheck.adb (Check_Consistency): Use correct markup character ({) in warning message when Tolerate_Consistency_Errors is True. * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for Any_Id, as this subprogram is only applicable to *type* entities (it sets RM_Size). Instead initialize just Esize and Alignment. From-SVN: r127440
2007-06-06s-stausa.ads, [...] (Initialize_Analyzer): Added parameter "Overflow_Guard".Quentin Ochem1-92/+256
2007-04-20 Quentin Ochem <ochem@adacore.com> * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter "Overflow_Guard". (Stack_Analyzer): Added field "Overflow_Guard" (Task_Result): Added field "Overflow_Guard". (Index_Str): New constant. (Task_Name_Str): New constant. (Actual_Size_Str): New constant. (Pattern_Array_Element_Size): New constant. (Get_Usage_Range): New subprogram. (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len. Now align the output. Added comments. (Initialize): Added value for Overflow_Guard. (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant. Update the value of the overflow guard according to the actual beginning of the pattern array. (Initialize_Analyzer): Added parameter Overflow_Guard. Take this parameter into accound when computing the max size. (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant. (Report_Result): Removed extra useless procedure. Updated call to Output_Result. Moved full computation of the Task_Result here. From-SVN: r125465
2006-02-15s-stausa.adb (Initialize_Analyzer): fixed error in assignment of task name.Quentin Ochem1-3/+3
2006-02-13 Quentin Ochem <ochem@adacore.com> * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of task name. From-SVN: r111100
2005-12-09Provide first full implementation.Arnaud Charlet1-19/+253
From-SVN: r108310
2005-07-04New file.Arnaud Charlet1-0/+96
From-SVN: r101569