summaryrefslogtreecommitdiffstats
path: root/gcc/ada/initialize.c
Commit message (Collapse)AuthorAgeFilesLines
* 2013-02-06 Rainer Emrich <rainer@emrich-ebersheim.de>ktietz2013-02-061-3/+3
| | | | | | | | | | | | | | | | | | | PR target/52123 * adaint.c (__gnat_check_OWNER_ACL): Cast from pointer via SECURITY_DESCRIPTOR * (__gnat_set_OWNER_ACL): Cast from DWORD to ACCESS_MODE (__gnat_portable_spawn): Fix cast to char* const* (add_handle): Cast from pointer via void ** (add_handle): Cast from pointer via int * (__gnat_locate_exec_on_path): Cast from pointer via TCHAR * (__gnat_locate_exec_on_path): Cast from pointer via char * * initialize.c (append_arg): Cast from pointer via LPWSTR (__gnat_initialize): Cast from pointer via LPWSTR * seh_init.c (__gnat_map_SEH): Cast from pointer via FARPROC git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195803 138bc75d-0d04-0410-961f-82ee72b054a4
* * adaint.c: Move directive around.ebotcazou2012-12-211-4/+4
| | | | | | | | | | | | | | | | * argv.c: Likewise. * cio.c: Likewise. * cstreams.c: Likewise. * env.c: Likewise. * exit.c: Likewise. * init.c: Likewise. * initialize.c: Likewise. * raise.c: Likewise. * seh_init.c: Likewise. * targext.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194660 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-07-17 Tristan Gingold <gingold@adacore.com>charlet2012-07-171-54/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnat_rm.texi: Adjust previous change. 2012-07-17 Ed Schonberg <schonberg@adacore.com> * sem_prag.adb (Process_Import_Or_Interface): If the pragma comes from an aspect, it applies to the corresponding entity without further check. 2012-07-17 Olivier Hainque <hainque@adacore.com> * initialize.c (__gnat_initialize for VxWorks): Remove section with call to __gnat_vxw_setup_for_eh. * system-vxworks-ppc.ads: Add -auto-register to -crtbe, relying on the VxWorks constructor mechanism for network loaded modules by default. 2012-07-17 Tristan Gingold <gingold@adacore.com> * adaint.c: Minor reformatting. 2012-07-17 Pascal Obry <obry@adacore.com> * s-regexp.adb (Adjust): Fix access violation in Adjust. 2012-07-17 Ed Schonberg <schonberg@adacore.com> * freeze.adb (Freeze_Entity): Warn if an imported subprogram has pre/post conditions, because these will not be enforced. 2012-07-17 Eric Botcazou <ebotcazou@adacore.com> * exp_ch7.adb (Process_Transient_Objects): Put all the finalization blocks and the final raise statement into a wrapper block. 2012-07-17 Vincent Pucci <pucci@adacore.com> * s-atopri.adb (Lock_Free_Try_Write_X): Atomic_Compare_Exchange_X replaced by Sync_Compare_And_Swap_X. (Lock_Free_Try_Write_64): Removed. * s-atopri.ads (Sync_Compare_And_Swap_X): Replaces previous routine Atomic_Compare_Exchange_X. (Lock_Free_Read_64): Renaming of Atomic_Load_64. (Lock_Free_Try_Write_64): Renaming of Sync_Compare_And_Swap_64. 2012-07-17 Vincent Celier <celier@adacore.com> * switch-m.adb (Normalize_Compiler_Switches): Recognize new switches -gnatn1 and -gnatn2. 2012-07-17 Vincent Pucci <pucci@adacore.com> * gnat_ugn.texi: GNAT dimensionality checking documentation updated with System.Dim.Mks modifications. 2012-07-17 Ed Schonberg <schonberg@adacore.com> * exp_ch3.adb: sloc of array init_proc is sloc of type declaration. 2012-07-17 Tristan Gingold <gingold@adacore.com> * raise-gcc.c (get_call_site_action_for): Remove useless init expression for p. (get_action_description_for): Do not overwrite action->kind. 2012-07-17 Hristian Kirtchev <kirtchev@adacore.com> * exp_attr.adb (Expand_N_Attribute_Reference): Add local variables Attr and Conversion_Added. Add local constant Typ. Retrieve the original attribute after the arithmetic check machinery has modified the node. Add a conversion to the target type when the prefix of attribute Max_Size_In_Storage_Elements is a controlled type. 2012-07-17 Gary Dismukes <dismukes@adacore.com> * exp_ch6.adb (Expand_Inlined_Call): For each actual parameter of mode 'out' or 'in out' that denotes an entity, reset Last_Assignment on the entity so that any assignments to the corresponding formal in the inlining will not trigger spurious warnings about overwriting assignments. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@189569 138bc75d-0d04-0410-961f-82ee72b054a4
* * prefix.h: Wrap up in extern "C" block.ebotcazou2011-07-121-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* remove useless if-before-free testsmeyering2011-04-201-2/+1
| | | | | | | | | | | Change "if (E) free (E);" to "free (E);" everywhere except in the libgo/, intl/, zlib/ and classpath/ directories. Also transform equivalent variants like "if (E != NULL) free (E);" and allow an extra cast on the argument to free. Otherwise, the tested and freed "E" expressions must be identical, modulo white space. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172785 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-06-14 Olivier Hainque <hainque@adacore.com>charlet2010-06-141-7/+4
| | | | | | | | * initialize.c (VxWorks section): Update comments. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160712 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-07-13 Vasiliy Fofanov <fofanov@adacore.com>charlet2009-07-131-6/+0
| | | | | | | | | | | | | | | | | | | | * mingw32.h: Make it explicit that we need XP or later. * initialize.c: Remove useless extern symbol declaration. * adaint.h: Ditto, also expose __gnat_win32_remove_handle to allow code reuse in expect.c. * adaint.c: Changes throughout the Windows section to redesign storage of the child process list and the process identification. * expect.c (__gnat_kill, __gnat_waitpid): Simplify, cleanup, use pids for interfacing, fix errors. (__gnat_expect_portable_execvp): use function in adaint.c git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149573 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-05-06 Robert Dewar <dewar@adacore.com>charlet2009-05-061-19/+62
| | | | | | | | | | | | | | | * sem_ch13.adb: Minor comment additions * osint.adb: Minor reformatting 2009-05-06 Pascal Obry <obry@adacore.com> * initialize.c: On Windows, keep full pathname to expanded command line patterns. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147150 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-04-29 Pascal Obry <obry@adacore.com>charlet2009-04-291-5/+20
| | | | | | | | * initialize.c: Do not expand quoted arguments. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146941 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-04-20 Robert Dewar <dewar@adacore.com>charlet2009-04-201-5/+7
| | | | | | | | | | | | | | | | | | | | * s-conca5.adb, s-conca5.ads, s-conca7.adb, s-conca7.ads, s-conca9.adb, s-conca9.ads, rtsfind.ads, s-conca2.adb, s-conca2.ads, s-conca4.adb, s-conca4.ads, s-conca6.adb, s-conca6.ads, s-conca8.adb, s-conca8.ads, s-conca3.adb, s-conca3.ads (Str_Concat_Bounds_x): New functions. * exp_ch4.adb (Expand_Concatenate): Minor code reorganization 2009-04-20 Pascal Obry <obry@adacore.com> * initialize.c (__gnat_initialize): Add braces to kill warning. * adaint.c: Minor reformatting, untabify, remove trailing spaces. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146379 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-04-17 Pascal Obry <obry@adacore.com>charlet2009-04-171-1/+1
| | | | | | | | | | | | | | | | | | * initialize.c: Fix test for reallocating the arguments array. 2009-04-17 Geert Bosch <bosch@adacore.com> * exp_fixd.adb (Expand_Convert_Float_To_Fixed): Have float to fixed conversion truncate only for decimal fixed point types. 2009-04-17 Jerome Lambourg <lambourg@adacore.com> * g-comlin.adb (Initialize_Scan_Option): Make sure the sections are reinitialized. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146261 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-04-17 Robert Dewar <dewar@adacore.com>charlet2009-04-171-25/+4
| | | | | | | | | | | | | * exp_ch5.adb (Expand_Assign_Array): Do not set Forwards_OK and Backwards_OK if either operand has an address clause. 2009-04-17 Pascal Obry <obry@adacore.com> * initialize.c: Code clean up, use realloc. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146259 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-04-17 Pascal Obry <obry@adacore.com>charlet2009-04-171-11/+93
| | | | | | | | | | | | * initialize.c: Do not get Unicode command line if Unicode support not activated. Add support for wildcard expansion for Unicode parameters on Win32. * mingw32.h: Add missing macros when Unicode support not activated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146258 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-04-17 Nicolas Roche <roche@adacore.com>charlet2009-04-171-4/+4
| | | | | | | | | | | | | | | | | | | * initialize.c (__gnat_initialize): remove MAX_PATH limitation on each argument length. 2009-04-17 Gary Dismukes <dismukes@adacore.com> * sem_elim.adb (Eliminate_Error_Msg): Minor change to error message to cover both calls and attribute references ("call" => "reference"). 2009-04-17 Ed Schonberg <schonberg@adacore.com> * sem_ch3.adb (Analyze_Subtype_Declaration): A subtype of an access type for which Storage_Size is set to 0 is legal in a pure unit. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146237 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>charlet2009-04-171-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * exp_ch4.adb (Expand_Concatenation): Do not use calls at -Os. 2009-04-17 Pascal Obry <obry@adacore.com> * mingw32.h: Add S2WSC and WS2SC macros to convert to/from CurrentCodePage. * adaint.h: Encoding_Unspecified is now defined. Corresponds to the value when no encoding form paramter is set on Text_IO services. * adaint.c: CurrentCodePage new variable on Windows. Use new macros S2WSC and WS2SC instead of the UTF-8 oriented ones. * mkdir.c: Use new macros S2WSC and WS2SC instead of the UTF-8 oriented ones. * initialize.c: Initialize CurrentCodePage depending on GNAT_CODE_PAGE environment variable value. Default is UTF-8. * s-crtl.ads: Filename_Encoding add Unspecified in the enumeration type. fopen and freopen encoding parameter is now set to Unspecified. The default value is in this case UTF-8 (as it was before) but use the new macros that convert to/from the code page set at runtime (CurrentCodePage). * s-fileio.adb: When no encoding specified use Unspecified value. 2009-04-17 Ed Schonberg <schonberg@adacore.com> * atree.adb, atree.ads: Remove dead code. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146235 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-04-17 Pascal Obry <obry@adacore.com>charlet2009-04-171-0/+32
| | | | | | | | | | | | | | | | | | | | | * initialize.c: Set gnat_argv with UTF-8 encoded strings on Windows. * adaint.h, argv.c, bindgen.adb: Reverted to previous version. 2009-04-17 Robert Dewar <dewar@adacore.com> * a-except.adb, a-except-2005.adb: Add PE_Address_Of_Intrinsic * sem_attr.adb (Analyze_Attribute, case Address): Use PE_Address_Of_Intrinsic. * types.ads: Add PE_Address_Of_Intrinsic * types.h: Add PE_Address_Of_Intrinsic git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146226 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 Pascal Obry <obry@adacore.com>charlet2008-08-221-6/+0
| | | | | | | | | * initialize.c, adaint.c: Use Lock_Task and Unlock_Task for non-blocking spawn. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139476 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix copyright notice.charlet2008-08-201-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139296 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
* 2008-01-03 Tero Koskinen <tero.koskinen@iki.fi>sam2008-01-031-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | gcc/ada/ PR ada/34647 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp() on OpenBSD as is done on other BSD systems. PR ada/34645 * sysdep.c (__gnat_ttyname, getc_immediate_nowait, getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate I/O. PR ada/34644 * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing clearenv(). PR ada/34646 * init.c (__gnat_error_handler, __gnat_install_handler, __gnat_init_float): Define for OpenBSD. * initialize.c (__gnat_initialize): Define for OpenBSD. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131301 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-12-06 Jose Ruiz <ruiz@adacore.com>charlet2007-12-131-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | * adaint.h: (__gnat_plist_init): Not defined for RTX. * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for RTX systems. * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb. (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB, EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS, GNATLIB_SHARED for RTX run time): Use the versions required by RTX. * mingw32.h: Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported. * sysdep.c (winflush_function for RTX): Procedure that does nothing since we only have problems with Windows 95/98, which are not supported by RTX. (__gnat_ttyname): Return the empty string on Nucleus, just as done on vxworks. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130816 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/ada/sam2007-11-141-2/+1
| | | | | | | | | | * adaint.c init.c initialize.c link.c: Remove system-specific sections of non-supported Interix target. * s-osinte-interix.ads: Removed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130175 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-04-20 Olivier Hainque <hainque@adacore.com>charlet2007-06-061-22/+23
| | | | | | | | | | * initialize.c (__gnat_initialize for vxworks): Update documentation on the ZCX support, using different sets of crtstuff objects than with GCC 3.4. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125429 138bc75d-0d04-0410-961f-82ee72b054a4
* Resync.charlet2006-10-311-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118333 138bc75d-0d04-0410-961f-82ee72b054a4
* * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,kazu2006-05-281-1/+1
| | | | | | | | | | | sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c, trans.c, utils.c: Fix comment typos. Follow spelling conventions. * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling conventions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114171 138bc75d-0d04-0410-961f-82ee72b054a4
* PR target/25926danglin2006-02-041-0/+14
| | | | | | | | | | | * ada/initialize.c (__gnat_initialize): Provide HP-UX 10 host and target implementation that calls __main. * pa/x-ada (X_ADA_CFLAGS): Define _X_HPUX10 on HP-UX 10. * pa/t-pa (TARGET_LIBGCC2_CFLAGS): Define _T_HPUX10 on HP-UX 10. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110580 138bc75d-0d04-0410-961f-82ee72b054a4
* * decl.c, init.c, initialize.c: Fix comment typos.kazu2005-07-291-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102556 138bc75d-0d04-0410-961f-82ee72b054a4
* Update FSF addresskcook2005-07-011-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101492 138bc75d-0d04-0410-961f-82ee72b054a4
* 2005-06-10 Doug Rupp <rupp@adacore.com>charlet2005-06-161-0/+187
Arnaud Charlet <charlet@adacore.com> Olivier Hainque <hainque@adacore.com> Jose Ruiz <ruiz@adacore.com> * Make-lang.in: Add initialize.o when needed. Remove obsolete references to RT_FLAGS. Add missing dependencies for sdefault.o * initialize.c: New file. * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS. [VMS] cond_signal_table: Fix problem in declaration. [VMS] __gnat_error_handler: rewrite. Move all __gnat_initialize() routines to initialize.c Specialize the former "hpux" section to "hppa hpux", as this is what the section really is here for and we now have other hpux ports that need different contents. (__gnat_adjust_context_for_raise) i386-linux: First version of this function for this target. Adjust PC by one in the machine context. This adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but it is more reliable to do that in the signal handler itself. (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction flags, so that the handler is passed the context structure to adjust prior to the raise. (__gnat_error_handler) i386-linux: Adjust the signature to match what a SA_SIGINFO sigaction should look like. Call __gnat_adjust_context_for_raise before actually raising. Cleanup unused Machine_State_Operations stuff. Add conditional code so that the x86_64 is also supported. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101047 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud