summaryrefslogtreecommitdiffstats
path: root/gcc/ada/init.c
Commit message (Collapse)AuthorAgeFilesLines
...
* 2011-08-02 Javier Miranda <miranda@adacore.com>charlet2011-08-021-13/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * sem_ch6.adb (Can_Override_Operator): New function. (Verify_Overriding_Indicator): Add missing code to check overriding indicator in operators. Fixes regression. (Check_Overriding_Indicator): Minor reformating after replacing the code that evaluates if the subprogram can override an operator by invocations to the above new function. * einfo.adb (Write_Field26_Name): Add missing code to ensure that, following the documentation in einfo.ads, this field is not shown as attribute "Static_Initialization" on non-dispatching functions. 2011-08-02 Jose Ruiz <ruiz@adacore.com> * sem_res.adb (Resolve_Call): A call to Ada.Real_Time.Timing_Events.Set_Handler violates restriction No_Relative_Delay (AI-0211) only when it sets a relative timing event, i.e., when the second parameter is of type Time_Span. 2011-08-02 Vincent Celier <celier@adacore.com> * make.adb (Gnatmake): use <library dir>/lib<library name>.a to link with an archive instead of -L<library dir> -l<library name>. 2011-08-02 Ed Schonberg <schonberg@adacore.com> * sem_ch8.adb (Analyze_Use_Type): If the clause is being re-analyzed, mark the base types In_Use in addition to making the operations use_visible. 2011-08-02 Ed Falis <falis@adacore.com> * init.c: add and setup __gnat_signal_mask for the exception signals * s-inmaop-vxworks.adb: new file. * s-intman-vxworks.adb: remove unnecessary initializations and simplify remaining * s-intman-vxworks.ads: remove unnecessary variable * s-taprop-vxworks.adb: simplify signal initialization git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177092 138bc75d-0d04-0410-961f-82ee72b054a4
* * init.c (__gnat_error_handler): Cast reason to int.ro2011-07-281-2/+10
| | | | | | | (__gnat_install_handler): Explain sa_sigaction use. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176870 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-07-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>ro2011-07-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> gcc: PR bootstrap/49794 * configure.ac: Test AM_ICONV with CXX. * configure: Regenerate. * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST. gcc/ada: PR bootstrap/49794 * init.c [sun && __SVR4 && !__vxworks] (__gnat_install_handler): Assign to act.sa_sigaction. * tracebak.c [USE_GENERIC_UNWINDER] (__gnat_backtrace): Cast current->return_address to char * before arithmetic. libcpp: PR bootstrap/49794 * configure.ac: Test AM_ICONV with CXX. * configure: Regenerate. * system.h (HAVE_DESIGNATED_INITIALIZERS): Never define for C++. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176620 138bc75d-0d04-0410-961f-82ee72b054a4
* * init.c [sgi] (__gnat_error_handler): Update sigaction(2) citation.ro2011-07-221-8/+23
| | | | | | | | | Correct argument types. Extract code from reason. (__gnat_install_handler): Assign to act.sa_sigaction. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176619 138bc75d-0d04-0410-961f-82ee72b054a4
* * prefix.h: Wrap up in extern "C" block.ebotcazou2011-07-121-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ada/ * adadecode.c: Wrap up in extern "C" block. * adadecode.h: Likewise. * adaint.c: Likewise. Remove 'const' keyword. * adaint.h: Likewise. * argv.c: Likewise. * atree.h: Likewise. * cio.c: Likewise. * cstreams.c: Likewise. * env.c: Likewise. * exit.c: Likewise. * fe.h: Likewise. * final.c: Likewise. * init.c: Likewise. * initialize.c: Likewise. * link.c: Likewise. * namet.h: Likewise. * nlists.h: Likewise. * raise.c: Likewise. * raise.h: Likewise. * repinfo.h: Likewise. * seh_init.c: Likewise. * targext.c: Likewise. * tracebak.c: Likewise. * uintp.h: Likewise. * urealp.h: Likewise. * xeinfo.adb: Wrap up generated C code in extern "C" block. * xsinfo.adb: Likewise. * xsnamest.adb: Likewise. * gcc-interface/gadaint.h: Wrap up in extern "C" block. * gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block. * gcc-interface/misc.c: Likewise. * gcc-interface/Make-lang.in (GCC_LINK): Use LINKER. (GNAT1_C_OBJS): Remove ada/b_gnat1.o. List ada/seh_init.o and ada/targext.o here... (GNAT_ADA_OBJS): ...and not here. (GNAT1_ADA_OBJS): Add ada/b_gnat1.o. (GNATBIND_OBJS): Reorder. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176210 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix typos in gcc/ada.rwild2010-12-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gcc/ada/: * projects.texi: Fix typos. * gnat_rm.texi: Likewise. * gnat_ugn.texi: Likewise. * sem_util.adb: Fix typo in variable, typos in comments. * a-btgbso.adb: Fix typos in comments. * a-cbdlli.adb, a-cbhase.ads, a-cdlili.adb, a-cobove.adb, a-coinve.adb, a-convec.adb, a-direct.ads, a-strunb-shared.adb, a-strunb-shared.ads, a-stuten.ads, a-stwiun-shared.adb, a-stwiun-shared.ads, a-stzunb-shared.adb, a-stzunb-shared.ads, a-suenco.adb, a-suenst.adb, a-suewst.adb, a-suezst.adb, ali.ads, aspects.ads, atree.ads, binde.adb, bindgen.adb, checks.adb, checks.ads, einfo.ads, err_vars.ads, errout.adb, errout.ads, exp_aggr.adb, exp_attr.adb, exp_cg.adb, exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_dbug.ads, exp_disp.adb, exp_fixd.ads, freeze.adb, g-altive.ads, g-comlin.ads, g-excact.ads, g-mbdira.adb, g-sechas.ads, g-sehash.ads, g-sha1.ads, g-sha224.ads, g-sha256.ads, g-sha384.ads, g-sha512.ads, g-shsh32.ads, g-shsh64.ads, g-socket.adb, g-socket.ads, g-sothco.ads, gcc-interface/decl.c, gcc-interface/trans.c, gcc-interface/utils2.c, gnat1drv.adb, init.c, inline.adb, link.c, locales.c, make.adb, mingw32.h, namet.ads, osint.adb, par-ch12.adb, par-ch13.adb, par-ch3.adb, par-ch4.adb, par-prag.adb, par.adb, par_sco.adb, prepcomp.adb, prj-conf.ads, prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-tree.ads, prj-util.ads, prj.adb, prj.ads, s-auxdec-vms-alpha.adb, s-auxdec-vms_64.ads, s-oscons-tmplt.c, s-osinte-vxworks.ads, s-osprim-mingw.adb, s-regexp.adb, s-stusta.adb, s-taprop-mingw.adb, s-taprop-solaris.adb, scn.adb, scos.ads, sem.adb, sem_aggr.adb, sem_attr.adb, sem_aux.adb, sem_aux.ads, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads, sem_ch3.adb, sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_disp.adb, sem_disp.ads, sem_eval.adb, sem_intr.adb, sem_prag.adb, sem_res.adb, sem_scil.adb, sem_util.ads, sem_warn.adb, sem_warn.ads, sinfo.ads, socket.c, styleg.adb, switch.ads, sysdep.c, tb-alvxw.c, xoscons.adb: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168082 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-10-19 Tristan Gingold <gingold@adacore.com>charlet2010-10-191-15/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * init.c: On Alpha/VMS, only adjust PC for HPARITH. 2010-10-19 Tristan Gingold <gingold@adacore.com> * sem_attr.adb (Eval_Attribute): Handle Attribute_Ref, which can be evaluated on VMS. 2010-10-19 Ed Schonberg <schonberg@adacore.com> * sem_ch12.adb (Check_Generic_Child_Unit): Handle properly the case of an instantiation of a renaming of the implicit generic child that appears within an instance of its parent. 2010-10-19 Thomas Quinot <quinot@adacore.com> * exp_ch9.adb: Minor reformatting. * einfo.adb, einfo.ads, atree.adb, atree.ads, exp_dist.adb, atree.h: (Referenced_Object): Remove unused entity attribute. (Direct_Primitive_Operations): Move to Elist10, this is set for all tagged types, including synchronous ones, so can't use field15 which is used as Storage_Size_Variable for task types and Entry_Bodies_Array for protected types. (Add_RACW_Primitive_Declarations_And_Bodies): Remove bogus guard against Concurrent_Types (we must handle the case of a RACW designating a class-wide private synchronous type). Use Direct_Primitive_Operations, not Primitive_Operations, since we really want the former. 2010-10-19 Bob Duff <duff@adacore.com> * sem_ch8.adb (Pop_Scope): Change "return;" to "raise Program_Error;". 2010-10-19 Javier Miranda <miranda@adacore.com> * exp_ch4.adb (Expand_Set_Membership.Make_Cond): Add missing support for N_Range nodes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165689 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-10-18 Jose Ruiz <ruiz@adacore.com>charlet2010-10-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * exp_ch9.adb (Expand_N_Task_Type_Declaration): Add field corresponding to the affinity when expanding the task declaration. (Make_Task_Create_Call): Add the affinity parameter to the call to create task. * sem_prag.adb (Analyze_Pragma): Add the analysis for pragma CPU, taking into account the case when it applies to a subprogram (only for main and with static expression) or to a task. * par_prag.adb:(Prag): Make pragma CPU a valid one. * snames.ads-tmpl (Name_uCPU, Name_CPU): Add these new name identifiers used by the expander for handling the affinity parameter when creating a task. (Pragma_Id): Add Pragma_CPU as a valid one. * rtsfind.ads (RTU_Id): Make System_Multiprocessors accesible. (RE_Id, RE_Unit_Table): Make the entities RE_CPU_Range and RE_Unspecified_CPU visible. * sinfo.ads, sinfo.adb (Has_Pragma_CPU, Set_Has_Pragma_CPU): Add these two subprograms to set/get the flag indicating whether there is a pragma CPU which applies to the entity. * lib.ads, lib.adb (Unit_Record, Default_Main_CPU, Main_CPU, Set_Main_CPU): Add the field Main_CPU to Unit_Record to store the value of the affinity associated to the main subprogram (if any). Default_Main_CPU is used when no affinity is set. Subprograms Set_Main_CPU and Main_CPU are added to set/get the affinity of the main subprogram. * ali.ads, ali.adb (ALIs_Record): Add field Main_CPU to contain the value of the affinity of the main subprogram. (Scan_ALI): Get the affinity of the main subprogram (encoded as C=XX in the M line). * lib-writ.ads, lib-writ.adb (M_Parameters): Encode the affinity of the main subprogram in the M (main) line using C=XX. * lib-load.adb (Create_Dummy_Package_Unit, Load_Main_Source, Load_Unit): Add new field Main_CPU. * bindgen.adb (Gen_Adainit_Ada, Gen_Adainit_C): Add the code to pass the affinity of the main subprogram to the run time. * s-taskin.ads (Common_ATCB): Add the field Base_CPU to store the affinity. (Unspecified_CPU): Add this constant to identify the case when no affinity is set for tasks. * s-taskin.adb (Initialize_ATCB): Store the value coming from pragma CPU in the common part of the ATCB. (Initialize): Store the value coming from pragma CPU (for the environment task) in the common part of the ATCB. * s-tassta.ads, s-tassta.adb (Create_Task): Add the affinity specified by pragma CPU to the ATCB. * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add the affinity specified by pragma CPU to the ATCB. * s-tporft.adb (Register_Foreign_Thread): Add the new affinity parameter to the call to Initialize_ATCB. * s-taprop-linux.adb (Create_Task): Change the attributes of the thread to include the task affinity before creation. Additionally, the affinity selected with Task_Info is also enforced changing the attributes at task creation time, instead of changing it after creation. (Initialize): Change the affinity of the environment task if required by a pragma CPU. * s-osinte-linux.ads (pthread_setaffinity_np): Instead of using a wrapper to check whether the function is available or not, use a weak symbol. (pthread_attr_setaffinity_np): Add the import of this function which is used to change the affinity in the attributes used to create a thread. * adaint.c (__gnat_pthread_attr_setaffinity_np): Remove this wrapper. It was used to check whether the pthread function was available or not, but the use of a weak symbol handles this situation in a cleaner way. * s-taprop-mingw.adb (Create_Task, Initialize): Change the affinity of tasks (including the environment task) if required by a pragma CPU. * s-taprop-solaris.adb (Enter_Task): Change the affinity of tasks (including the environment task) if required by a pragma CPU. * s-taprop-vxworks.adb (Create_Task, Initialize): Change the affinity of tasks (including the environment task) if required by a pragma CPU. * init.c (__gl_main_cpu): Make this value visible to the run time. It will pass the affinity of the environment task. 2010-10-18 Javier Miranda <miranda@adacore.com> * einfo.adb (Direct_Primitive_Operations): Complete assertion. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165625 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-10-18 Tristan Gingold <gingold@adacore.com>charlet2010-10-181-49/+166
| | | | | | | | | | | | | | | | | | | | * init.c: Add __gnat_set_stack_guard_page and __gnat_set_stack_limit. Implement stack limitation on VMS. Minor reformatting. 2010-10-18 Vincent Celier <celier@adacore.com> * prj.adb (Is_Compilable): Do not modify Source.Compilable until the source record has been initialized. 2010-10-18 Robert Dewar <dewar@adacore.com> * einfo.adb: Minor code reorganization (Primitive_Operations is a synthesized attribute routine and was in the wrong place). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165620 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-10-18 Tristan Gingold <gingold@adacore.com>charlet2010-10-181-49/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | * init.c: Indentation, and minor changes to more closely follow GNU style rules. Make more variable statics. 2010-10-18 Vincent Celier <celier@adacore.com> * prj.adb (Is_Compilable): On first call for a source, cache value in component Compilable. * prj.ads (Source_Data): New component Compilable, to cache the value returned by function Is_Compilable. 2010-10-18 Vincent Celier <celier@adacore.com> * prj-attr.adb: New project level attribute Ignore_Source_Sub_Dirs. * prj-nmsc.adb (Expand_Subdirectory_Pattern): New string list parameter Ignore. (Recursive_Find_Dirs): Do not consider subdirectories listed in Ignore. (Get_Directories): Call Find_Source_Dirs with the string list indicated by attribute Ignore_Source_Sub_Dirs. * snames.ads-tmpl: New standard name Ignore_Source_Sub_Dirs. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165619 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-06-23 Robert Dewar <dewar@adacore.com>charlet2010-06-231-7/+14
| | | | | | | | | | | | | | | | | | | | | | * sem_ch6.adb: Minor reformatting. 2010-06-23 Doug Rupp <rupp@adacore.com> * bindusg.adb (Display): Write -Hnn line. * bindgen.adb (Gen_Adainit_Ada): Write Heap_Size to binder file as necessary. * init.c (__gl_heap_size): Rename from __gl_no_malloc_64 and change valid values to 32 and 64. (GNAT$NO_MALLOC_64): Recognize TRUE, 1, FALSE, and 0 in addition to ENABLE, DISABLE as valid settings. * switch-b.adb (Scan_Binder_Switches): Process -Hnn switch. * opt.ads (Heap_Size): New global variable. * gcc-interface/utils2.c (maybe_wrap_malloc): Remove mostly redundant TARGET_MALLOC64 check. Fix comment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161243 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-06-22 Ed Schonberg <schonberg@adacore.com>charlet2010-06-221-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cstand.adb: Add tree nodes for pragma Pack on string types. 2010-06-22 Javier Miranda <miranda@adacore.com> * einfo.ads, einfo.adb (Last_Formal): New synthesized attribute. * exp_util.adb (Find_Prim_Op): Use new attribute to locate the last formal of a primitive. * exp_disp.adb (Is_Predefined_Dispatching_Operation, Is_Predefined_Dispatching_Alias): Use new attribute to locate the last formal of a primitive. * exp_cg.adb (Is_Predefined_Dispatching_Operation): Use new attribute to obtain the last formal of a primitive. 2010-06-22 Geert Bosch <bosch@adacore.com> * sysdep.c, init.c, adaint.c, cstreams.c: Remove conditional code depending on __EMX__ or MSDOS being defined. * i-cstrea.ads, gnat_rm.texi: Remove mentions of OS/2, DOS and Xenix. * a-excpol-abort.adb: Update comment indicating users of the file. * xref_lib.adb, sfn_scan.adb: Remove mention of OS/2, replace NT by Windows. * env.c: Remove empty conditional for MSDOS. * s-stchop.adb, g-dirope.ads, s-fileio.adb, osint.ads: Remove mention of OS/2 in comment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161205 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-06-14 Robert Dewar <dewar@adacore.com>charlet2010-06-141-138/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * a-convec.adb, sem_prag.adb, checks.adb: Minor reformatting 2010-06-14 Eric Botcazou <ebotcazou@adacore.com> * init.c: Code clean up. 2010-06-14 Ed Schonberg <schonberg@adacore.com> * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address): Do not insert address clause in table for later validation if type of entity is generic, to prevent possible spurious errors. * sem_ch8.adb: Code clean up. 2010-06-14 Ben Brosgol <brosgol@adacore.com> * gnat_ugn.texi: Expanded @ovar macro inline to solve problem with texi2pdf and texi2html. Document how to change scheduling properties on HP-UX. 2010-06-14 Thomas Quinot <quinot@adacore.com> * g-socket.ads: Remove misleading comments. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160711 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-06-14 Pascal Obry <obry@adacore.com>charlet2010-06-141-3/+3
| | | | | | | | | | | | | | * prj-proc.adb: Fix copy of object directory for extending projects. 2010-06-14 Jose Ruiz <ruiz@adacore.com> * init.c (__gnat_alternate_stack): Define this space for PowerPC linux (__gnat_install_handler, PowerPC linux): Activate the alternative signal stack. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160708 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-01-25 Bob Duff <duff@adacore.com>charlet2010-01-251-24/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * sem_aggr.adb (Resolve_Array_Aggregate): Check for the case where this is an internally-generated positional aggregate, and the bounds are already correctly set. We don't want to overwrite those bounds with bounds determined by context. 2010-01-25 Robert Dewar <dewar@adacore.com> * g-sercom.ads, gnatcmd.adb, gnatlink.adb, a-ststio.adb, exp_ch6.adb, exp_ch9.adb, g-sechas.ads: Minor reformatting. 2010-01-25 Thomas Quinot <quinot@adacore.com> * s-commun.adb (Last_Index): Count must be converted to SEO (a signed integer type) before subtracting 1, otherwise the computation may wrap (because size_t is modular) and cause the conversion to fail. 2010-01-25 Ed Falis <falis@adacore.com> * sysdep.c, init.c: Adapt to support full run-time on VxWorks MILS. 2010-01-25 Vincent Celier <celier@adacore.com> * prj-attr.adb: New attribute Run_Path_Origin_Required * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process new attribute Run_Path_Origin_Required. * prj.ads (Project_Configuration): New component Run_Path_Origin_Supported. * snames.ads-tmpl: New standard name Run_Path_Origin_Required git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156215 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-11-30 Thomas Quinot <quinot@adacore.com>charlet2009-11-301-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | * put_scos.adb (Put_SCOs): Do not generate a SCO unit header for a unit that has no SCOs. * scos.ads: Minor reformatting 2009-11-30 Ed Schonberg <schonberg@adacore.com> * sem_prag.adb: Second unanalyzed parameter of Annotate is optional. 2009-11-30 Eric Botcazou <ebotcazou@adacore.com> * init.c (__gnat_adjust_context_for_raise, Linux version): Add guard for null PC saved in the context. 2009-11-30 Hristian Kirtchev <kirtchev@adacore.com> * a-calend.adb (Day_Of_Week): Rewritten. The routine determines the number of days from the Ada Epoch to the input date while ensuring that both dates are in the same time zone. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154801 138bc75d-0d04-0410-961f-82ee72b054a4
* * config/sparc/linux-unwind.h (sparc64_fallback_frame_state): Tidy.ebotcazou2009-11-121-2/+1
| | | | | | | | | | Do not schedule an %sp restore. Compensate for RETURN_ADDR_OFFSET. (sparc_fallback_frame_state): Tidy. Compensate for RETURN_ADDR_OFFSET. ada/ * init.c (GNU/Linux Section): Enable for all architectures. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154132 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-10-28 Robert Dewar <dewar@adacore.com>charlet2009-10-281-4/+6
| | | | | | | | | | | | | * exp_attr.adb, exp_ch9.adb, prj-nmsc.adb, tbuild.adb, ali.adb, types.ads: Minor reformatting 2009-10-28 Tristan Gingold <gingold@adacore.com> * init.c: Fix __gnat_error_handler for Darwin10 (Snow Leopard) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153658 138bc75d-0d04-0410-961f-82ee72b054a4
* libada/ebotcazou2009-10-241-2/+4
| | | | | | | | | | | | | | | | | | | | * Makefile.in (GNATLIBCFLAGS_FOR_C): New variable. (LIBADA_FLAGS_TO_PASS): Add GNATLIBCFLAGS_FOR_C. * configure.ac: Include config/unwind_ipinfo.m4. Check for _Unwind_GetIPInfo. * configure: Regenerate. gcc/ada/ * init.c (__gnat_adjust_context_for_raise): Mention _Unwind_GetIPInfo. * gcc-interface/Makefile.in (GNATLIBCFLAGS_FOR_C): Add HAVE_GETIPINFO. Pass GNATLIBCFLAGS_FOR_C to recursive invocations. gcc/testsuite/ * gnat.dg/null_pointer_deref1.adb: New test. * gnat.dg/null_pointer_deref2.adb: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153525 138bc75d-0d04-0410-961f-82ee72b054a4
* * env.c [__alpha__ && __osf__] (_BSD): Define.ro2009-09-211-1/+1
| | | | | | | | * init.c [__alpha__ && __osf__] (__gnat_error_handler): Cast msg to const char *. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151938 138bc75d-0d04-0410-961f-82ee72b054a4
* * init.c (__gnat_error_handler, AIX): Add ATTRIBUTE_UNUSED on sihainque2009-09-021-1/+3
| | | | | | | | and uc arguments. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151329 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-07-22 Eric Botcazou <ebotcazou@adacore.com>charlet2009-07-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * exp_aggr.adb (Gen_Loop): Do not qualify the bounds of the range if they are already of the base type of the index. 2009-07-22 Brett Porter <porter@adacore.com> * sysdep.c, init.c: Fix typo: _SPE_ should have been __SPE__. 2009-07-22 Robert Dewar <dewar@adacore.com> * vms_data.ads: Add entry for SCO_OUTPUT (-gnateS) * gnat_ugn.texi: Add documentation for -gnateS switch * ug_words: Add entry for -gnateS /SCO_OUTPUT * gcc-interface/Make-lang.in: Update dependenciest.3 * get_scos.adb, get_scos.ads, gnat1drv.adb, par_sco.adb, par_sco.ads, put_scos.adb, put_scos.ads, scos.adb, scos.ads: Initial complete information for SCO input/output. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149945 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-07-22 Brett Porter <porter@adacore.com>charlet2009-07-221-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | * init.c (__gnat_init_float): For SPE, set bits in SPEFSCR instead of FPSCR. * sysdep.c (__gnat_get_task_options): Set task option enabling SPE. 2009-07-22 Gary Dismukes <dismukes@adacore.com> * exp_ch5.adb, sem_util.adb, sem_attr.adb, exp_dbug.ads, exp_ch2.adb, exp_tss.ads, exp_ch4.adb, sem_ch4.adb: Correct spelling error. Minor reformatting. * sem_res.adb (Resolve_Explicit_Dereference): Reword one comment that used poor terminology. 2009-07-22 Robert Dewar <dewar@adacore.com> * freeze.adb, sem_ch3.adb, sem_prag.adb: Minor reformatting * sem_eval.adb, exp_tss.adb: Minor comment update. * stylesw.adb: Code clean up. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149932 138bc75d-0d04-0410-961f-82ee72b054a4
* PR ada/40608fxcoudert2009-07-041-1/+2
| | | | | | | | * init.c (APPLE): Include <mach/mach_init.h>. (__gnat_is_stack_guard, APPLE): Add ATTRIBUTE_UNUSED marker. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149238 138bc75d-0d04-0410-961f-82ee72b054a4
* PR ada/40609danglin2009-07-011-1/+3
| | | | | | | | | init.c (__gnat_error_handler): Add ATTRIBUTE_UNUSED to ucontext argument. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149146 138bc75d-0d04-0410-961f-82ee72b054a4
* * init.c (__gnat_error_handler, Solaris): Add ATTRIBUTE_UNUSED marker.ebotcazou2009-07-011-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149135 138bc75d-0d04-0410-961f-82ee72b054a4
* * init.c (__gnat_set_globals): Add prototype.ebotcazou2009-06-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | * adaint.c (__gnat_binder_supports_auto_init): Likewise. (__gnat_sals_init_using_constructors): Likewise. * gcc-interface/utils.c (gnat_pushlevel): Likewise. (get_block_jmpbuf_decl): Likewise. (gnat_poplevel): Likewise. (merge_sizes): Rename local variable. (copy_type): Likewise. (build_vms_descriptor32): Likewise. (build_vms_descriptor): Likewise. (convert_vms_descriptor64): Likewise. (convert_vms_descriptor32): Likewise. (convert_to_fat_pointer): Likewise. (maybe_unconstrained_array): Likewise. (def_fn_type): Use promoted type with va_arg. * gcc-interface/decl.c (gnat_to_gnu_entity): Add declaration. (substitute_in_type): Rename local variable. * gcc-interface/Make-lang.in (ada-warn): Use STRICT_WARN. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149007 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-24 Robert Dewar <dewar@adacore.com>charlet2009-06-241-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * prj-nmsc.adb, prj-nmsc.ads, prj-proc.adb, prj.adb: Minor reformatting * a-strsea.adb (Count): Avoid local copy on stack, speed up unmapped case. (Index): Ditto. 2009-06-24 Ed Schonberg <schonberg@adacore.com> * sem_ch4.adb (Analyze_One_Call): Check that at least one actual is present when checking whether a call may be interpreted as an indexing of the result of a call. * exp_ch9.adb (Expand_N_Subprogram_Declaration): Place the generated body for a null procedure on the freeze actions for the procedure, so that it will be analyzed at the proper place without premature freezing of actuals. * sem_ch3.adb (Check_Completion): Code cleanup. Do not diagnose a null procedure without a body, if previous errors have disabled expansion. 2009-06-24 Doug Rupp <rupp@adacore.com> * init.c [VMS] Resignal C$_SIGKILL 2009-06-24 Ed Falis <falis@adacore.com> * s-vxwext.adb, s-vxwext-kernel.adb: Add s-vxwext body for VxWorks 5 Define ERROR in body for VxWorks 6 kernel 2009-06-24 Pascal Obry <obry@adacore.com> * g-socket.adb, g-socket.ads: Fix possible unexpected constraint error in [Send/Receive]_Socket. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148905 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-05-06 Robert Dewar <dewar@adacore.com>charlet2009-05-061-1/+1
| | | | | | | | | | | | | | | | * s-fileio.adb: Minor comment update * sem_ch8.adb: Minor reformatting * exp_ch3.adb: Update comments. 2009-05-06 Tristan Gingold <gingold@adacore.com> * init.c, s-osinte-darwin.ads: Reduce alternate stack size git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147167 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-04-20 Robert Dewar <dewar@adacore.com>charlet2009-04-201-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * sinfo.ads: Minor comment fixes * exp_disp.adb: Minor reformatting * gnat1drv.adb: Minor reformatting * output.adb: Minor reformatting * s-vxwext-kernel.ads: Minor reformatting * sem.ads: Minor reformatting * sem.adb: Minor reformatting * sem_elim.adb: Minor reformatting * uname.ads: Minor reformatting 2009-04-20 Eric Botcazou <ebotcazou@adacore.com> * init.c (__gnat_adjust_context_for_raise): On x86{-64}/Linux, add a small dope of 4 words to the adjustment to the stack pointer. 2009-04-20 Thomas Quinot <quinot@adacore.com> * xoscons.adb: generate C header s-oscons.h in addition to s-oscons.ads. * socket.c: On VMS, use s-oscons.h. * sem_ch3.adb: Minor reformatting * exp_ch9.adb: Minor reformatting git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146401 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-04-17 Gary Dismukes <dismukes@adacore.com>charlet2009-04-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * par-ch6.adb (P_Subprogram): Overriding indicators should be allowed on protected subprogram bodies, so exclude the case where Pf_Flags is Pf_Decl_Pbod from the error check. * par-ch9.adb (P_Protected_Operation_Items): Permit overriding indicators on subprograms in protected bodies, and proceed with parsing the subprogram. * sem_ch6.adb (Verify_Overriding_Indicator): Exclude protected subprograms from the check for primitiveness on subprograms with overriding indicators. (Check_Overriding_Indicator): Include protected subprograms in the style check for missing overriding indicators. 2009-04-17 Tristan Gingold <gingold@adacore.com> * init.c: Fix stack checking for x86 Darwin. 2009-04-17 Vincent Celier <celier@adacore.com> * prj-attr.adb: New project level attribute Object_File_Suffix (<language>). * prj-nmsc.adb (Add_Source): Use the object file suffix to get the object file name (Process_Compiler): Process attribute Object_File_Suffix * prj.adb (Object_Name): Use suffix Object_File_Suffix instead of platform suffix, when specified. * prj.ads (Language_Config): New component Object_File_Suffix, defaulted to No_Name. (Object_Name): New parameter Object_File_Suffix, defaulted to No_Name * snames.ads-tmpl: New standard name Object_File_Suffix git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146228 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-04-17 Pascal Obry <obry@adacore.com>charlet2009-04-171-2/+1
| | | | | | | | | | | | | | | | | | * adaint.h, argv.c (__gnat_init_args): New routine used to initialize command line arguments. * bindgen.adb: Call __gnat_init_args instead of simple assignments of argc, argv and envp parameters. * init.c: Fix minor typo and style fix. 2009-04-17 Nicolas Setton <setton@adacore.com> * link.c: Add darwin section git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146224 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-04-16 Tristan Gingold <gingold@adacore.com>charlet2009-04-161-3/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | * init.c: Detect real stack overflow on Darwin. * system-darwin-x86.ads: Use stack probing on darwin x86. 2009-04-16 Ed Schonberg <schonberg@adacore.com> * sem_attr.adb (Analyze_Attribute, case 'Address): It is illegal to take the address of an intrinsic subprogram. 2009-04-16 Vincent Celier <celier@adacore.com> * g-trasym-unimplemented.ads, g-trasym-unimplemented.adb: New file. * g-trasym.ads: Update comments. 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com> * tracebak.c (STOP_FRAME): Verify validity of the current address before dereferencing. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146182 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-04-16 Tristan Gingold <gingold@adacore.com>charlet2009-04-161-7/+3
| | | | | | | | | | * s-intman-susv3.adb: New file. * init.c, s-osinte-darwin.ads: Fix stack checking in tasking mode git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146179 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-04-16 Ed Schonberg <schonberg@adacore.com>charlet2009-04-161-3/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * sprint.adb (Write_Itype): If the itype is an array subtype, preserve the original location of the index expressions and the index subtypes, to prevent spurious out-of-scope references in gigi. 2009-04-16 Tristan Gingold <gingold@adacore.com> * init.c, s-osinte-darwin.ads, system-darwin-x86_64.ads: Add support for stack checking on darwin. 2009-04-16 Vincent Celier <celier@adacore.com> * prj-attr.adb: New attribute Runtime_Source_Dir * prj-nmsc.adb (Process_Project_Level_Array_Attributes): Process attribute Runtime_Source_Dir. (Check_Naming_Schemes): Give default values to out parameters to avoid invalid data. * prj.ads (Language_Config): New component Runtime_Source_Dir * snames.ads-tmpl: New standard name Runtime_Source_Dir git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146177 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-04-16 Quentin Ochem <ochem@adacore.com>charlet2009-04-161-1/+1
| | | | | | | | | | | | | | | | | | | | | * sinput-p.adb (Clear_Source_File_Table): Use Sinput.Initialize instead of Source.Init. 2009-04-16 Eric Botcazou <ebotcazou@adacore.com> * a-convec.ads (Is_Empty): Mark inline. 2009-04-16 Nicolas Roche <roche@adacore.com> * init.c (__gnat_init_float): Initialize FPU on x86_64 windows 2009-04-16 Thomas Quinot <quinot@adacore.com> * prepcomp.adb: Minor reformatting git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146170 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-04-15 Ed Schonberg <schonberg@adacore.com>charlet2009-04-151-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * sem_ch8.adb (Use_One_Type): If both clauses appear on the same unit, the second is redundant, regardless of scopes. 2009-04-15 Vincent Celier <celier@adacore.com> * prj-nmsc.adb (Get_Directories): Check for sources before checking the object directory as when there are no sources, they may not be any object directory. * make.adb (Gnatmake): Do not attempt to get the path name of the exec directory, when there are no exec directory. 2009-04-15 Ed Schonberg <schonberg@adacore.com> * sem_type.adb (Remove_Conversions): In order to resolve spurious ambiguities, refine removal of universal interpretations from complex expressions with literal arguments, when some numeric operators have been declared abstract. 2009-04-15 Ed Falis <falis@adacore.com> * init.c: Map SIGSEGV to Storage_Error for all targets for uniformity and backward compatibility for targets using probing for stack overflow 2009-04-15 Ed Schonberg <schonberg@adacore.com> * sem_prag.adb (Analyze_Pragma, case 'Obsolescent): Pragma is legal after any declaration, including renaming declarations. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146091 138bc75d-0d04-0410-961f-82ee72b054a4
* Complete previous change.charlet2009-04-101-3/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@145921 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-04-10 Ed Falis <falis@adacore.com>charlet2009-04-101-6/+19
| | | | | | | | | | * init.c: Change VxWorks 6 stack overflow checking for kernel apps. * system-vxworks-ppc.ads, system-vxworks-x86.ads: Update header. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@145920 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-04-10 Robert Dewar <dewar@adacore.com>charlet2009-04-101-19/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * mlib-tgt-specific-xi.adb: Minor reformatting 2009-04-10 Bob Duff <duff@adacore.com> * einfo.ads: Minor comment fixes 2009-04-10 Vincent Celier <celier@adacore.com> * snames.ads-tmpl: Remove names that are no longer used in the Project Manager. Mark specifically those that are used only in gprbuild 2009-04-10 Eric Botcazou <ebotcazou@adacore.com> * init.c: Adjust EH support code on Alpha/Tru64. 2009-04-10 Bob Duff <duff@adacore.com> * sem_ch6.adb (Process_PPCs): Add a call to the _Postconditions procedure on every path that could return implicitly (not via a return statement) from a procedure. 2009-04-10 Ed Schonberg <schonberg@adacore.com> * exp_ch9.adb (Build_Master_Entity): An extended return statement is a valid scope for a task declarations and therefore for a master id. 2009-04-10 Robert Dewar <dewar@adacore.com> * sem_aux.adb: Minor reformatting 2009-04-10 Vincent Celier <celier@adacore.com> * scn.adb (Obsolescent_Check_Flag): New Boolean flag, initialized to True. (Obsolescent_Check): Do nothing if Obsolescent_Check_Flag is False (Set_Obsolescent_Check): New procedure to change the value of Obsolescent_Check_Flag. * scn.ads (Set_Obsolescent_Check): New procedure to control Obsolescent_Check. * sinput-l.adb (Load_File): Do not check for pragma Restrictions on obsolescent features while preprocessing. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@145901 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-04-10 Tristan Gingold <gingold@adacore.com>charlet2009-04-101-0/+70
| | | | | | | | * init.c: Install signal handler on Darwin. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@145888 138bc75d-0d04-0410-961f-82ee72b054a4
* Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception.jakub2009-04-091-12/+11
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@145841 138bc75d-0d04-0410-961f-82ee72b054a4
* 2008-08-22 Doug Rupp <rupp@adacore.com>charlet2008-08-221-1/+81
| | | | | | | | | | | | | | * bindgen.adb [VMS] (Gen_Adainit_Ada, Gen_Adainit_C): Import and call __gnat_set_features. * init.c (__gnat_set_features): New function. (__gnat_features_set): New tracking variable. (__gl_no_malloc_64): New feature global variable git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139456 138bc75d-0d04-0410-961f-82ee72b054a4
* 2008-08-22 Eric Botcazou <ebotcazou@adacore.com>charlet2008-08-221-29/+1
| | | | | | | | | | * init.c: adjust EH support code on Alpha/Tru64 as well. * raise-gcc.c: Add back a couple of comments. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139446 138bc75d-0d04-0410-961f-82ee72b054a4
* 2008-08-22 Eric Botcazou <ebotcazou@adacore.com>charlet2008-08-221-126/+13
| | | | | | | | | | | | | | | * init.c (__gnat_adjust_context_for_raise): Delete for AIX, HP-UX, Solaris, FreeBSD, VxWorks and PowerPC/Linux. For x86{-64}/Linux, do not adjust the PC anymore. (__gnat_error_handler): Do not call __gnat_adjust_context_for_raise on AIX, HP-UX, Solaris, FreeBSD and VxWorks. * raise-gcc.c (get_call_site_action_for): Use _Unwind_GetIPInfo instead of _Unwind_GetIP. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139441 138bc75d-0d04-0410-961f-82ee72b054a4
* 2008-08-05 Jose Ruiz <ruiz@adacore.com>charlet2008-08-051-0/+24
| | | | | | | | | | | | | | | | * init.c (__gnat_install_handler for linux): If we are building the Xenomai run time then we need to do two additional things: avoid memory swapping and transform the Linux environment task into a native Xenomai task. * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for xenomai run time): Use interface to Xenomai native skin and avoid linux-specific way of setting CPU affinity. (EH_MECHANISM for the xenomai run time): Use sjlj exception mechanism. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138684 138bc75d-0d04-0410-961f-82ee72b054a4
* 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>charlet2008-07-311-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bindgen.adb Comment reformatting. Update the list of run-time globals. (Gen_Adainit_Ada): Add the declaration, import and value set for configuration flag Canonical_Streams. (Gen_Adainit_C): Add the declaration and initial value of external symbol __gl_canonical_streams. * init.c: Update the list of global values computed by the binder. * opt.ads: Add flag Canonical_Streams. * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of semantically handled pragmas. * sem_prag.adb: Add an entry into enumeration type Sig_Flags. (Analyze_Pragma): Add case for pragma Canonical_Streams. * snames.adb: Add character value for name Canonical_Streams. * snames.ads: Add Name_Canonical_Streams to the list of configuration pragmas. Add Pragma_Canonical_Streams to enumeration type Pragma_Id. * snames.h: Add a definition for Pragma_Canonical_Streams. * s-ststop.adb: Add a flag and import to seize the value of external symbol __gl_canonical_streams. Update comment and initial value of constant Use_Block_IO. * gnat_rm.texi: Add section of pragma Canonical_Streams. * gnat_ugn.texi: Add pragma Canonical_Streams to the list of configuration pragmas. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138407 138bc75d-0d04-0410-961f-82ee72b054a4
* 2008-05-20 Tristan Gingold <gingold@adacore.com>charlet2008-05-201-1/+5
| | | | | | | | | | | | * init.c: Enable stack probing on ppc-linux. * tracebak.c: Add symbolic traceback for ppc-linux. * system-linux-ppc.ads: Enable stack probing on ppc-linux. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@135630 138bc75d-0d04-0410-961f-82ee72b054a4
* 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>charlet2008-04-081-123/+261
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Arnaud Charlet <charlet@adacore.com> * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed. s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads, s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux. * s-osinte-lynxos-3.ads, (Alternate_Stack): Remove when not needed. Simplify declaration otherwise. (Alternate_Stack_Size): New constant. s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of 'Unrestricted_Access. * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads, s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads, s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads, s-osinte-solaris.ads, s-osinte-vms.ads (SA_ONSTACK): New constant. (stack_t): New record type. (sigaltstack): New imported function. (Alternate_Stack): New imported variable. (Alternate_Stack_Size): New constant. * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True. * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads, s-taspri-hpux-dce.ads (Task_Address): New subtype of System.Address (Task_Address_Size): New constant size of System.Address (Alternate_Stack_Size): New constant. * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete. (Enter_Task): Do not notify stack to System.Stack_Checking.Operations. Establish the alternate stack if the platform makes use of n alternate signal stack for stack overflows. (Create_Task): Take into account the alternate stack in the stack size. (Initialize): Save the address of the alternate stack into the ATCB for the environment task. (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads). * s-parame.adb (Minimum_Stack_Size): Increase value to 16K to * system-linux-x86.ads: (Stack_Check_Probes): Set to True. * s-intman-posix.adb: (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an alternate signal stack for stack overflows. * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and x86-64, adjust the saved value of the stack pointer if the signal was raised by a stack checking probe. (HP-UX section): Use global __gnat_alternate_stack as signal handler stack and only for SIGSEGV. (Linux section): Likewise on x86 and x86-64. [VxWorks section] (__gnat_map_signal): Now static. (__gnat_error_handler): Not static any more. (__gnat_adjust_context_for_raise): New function. Signal context adjustment for PPC && !VTHREADS && !RTP, as required by the zcx propagation circuitry. (__gnat_error_handler): Second argument of a sigaction handler is a pointer, not an int, and is unused. Adjust signal context before mapping to exception. Install signal handlers for LynxOS case. * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack. (Task_Id): Set size to Task_Address_Size (To_Task_id): Unchecked convert from Task_Address vice System.Address (To_Address): Unchecked convert to Task_Address vice System.Address * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its address into the ATCB if the platform makes use of an alternate signal stack for stack overflows. (Free_Task): Add call to Finalize_Attributes_Link. Add argument Relative_Deadline to pass the value specified for the task. This is not yet used for any target. * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass the value specified for the task. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@134004 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/ada/rwild2008-03-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * g-table.adb, g-tasloc.adb, g-traceb.ads, g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c, gnatbind.adb, gnatchop.adb, gnatcmd.adb, gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb, gprep.adb, i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads, i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb, layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads, lib.adb, link.c, live.ads, make.adb, makegpr.adb, makeutl.adb, math_lib.adb, mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads, misc.c, mlib-prj.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads, namet.adb, namet.h, nlists.adb, nlists.ads, nlists.h, opt.ads, osint-b.ads, osint-c.adb, osint-c.ads, osint.adb, osint.ads, output.ads, par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb, par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads, prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pp.adb, prj-proc.adb, prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133770 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud