From eb87f0fd42a1c80fe8a4779a6822626ac6b68308 Mon Sep 17 00:00:00 2001 From: charlet Date: Tue, 17 Jul 2012 10:14:38 +0000 Subject: 2012-07-17 Tristan Gingold * gnat_rm.texi: Adjust previous change. 2012-07-17 Ed Schonberg * 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 * 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 * adaint.c: Minor reformatting. 2012-07-17 Pascal Obry * s-regexp.adb (Adjust): Fix access violation in Adjust. 2012-07-17 Ed Schonberg * freeze.adb (Freeze_Entity): Warn if an imported subprogram has pre/post conditions, because these will not be enforced. 2012-07-17 Eric Botcazou * 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 * 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 * switch-m.adb (Normalize_Compiler_Switches): Recognize new switches -gnatn1 and -gnatn2. 2012-07-17 Vincent Pucci * gnat_ugn.texi: GNAT dimensionality checking documentation updated with System.Dim.Mks modifications. 2012-07-17 Ed Schonberg * exp_ch3.adb: sloc of array init_proc is sloc of type declaration. 2012-07-17 Tristan Gingold * 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 * 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 * 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 --- gcc/ada/initialize.c | 57 +++------------------------------------------------- 1 file changed, 3 insertions(+), 54 deletions(-) (limited to 'gcc/ada/initialize.c') diff --git a/gcc/ada/initialize.c b/gcc/ada/initialize.c index 90f35a0a9b4..7e1141a9be7 100644 --- a/gcc/ada/initialize.c +++ b/gcc/ada/initialize.c @@ -6,7 +6,7 @@ * * * C Implementation File * * * - * Copyright (C) 1992-2011, Free Software Foundation, Inc. * + * Copyright (C) 1992-2012, Free Software Foundation, Inc. * * * * GNAT is free software; you can redistribute it and/or modify it under * * terms of the GNU General Public License as published by the Free Soft- * @@ -221,7 +221,8 @@ __gnat_initialize (void *eh ATTRIBUTE_UNUSED) FindClose (hDir); - free (dir); + if (dir != NULL) + free (dir); } } else @@ -280,58 +281,6 @@ void __gnat_initialize (void *eh) { __gnat_init_float (); - - /* On targets where we use the ZCX scheme, we need to register the frame - tables at load/startup time. - - For applications loaded as a set of "modules", the crtstuff objects - linked in (crtbegin.o/end.o) are tailored to provide this service - automatically, a-la C++ constructor fashion, triggered by the VxWorks - loader thanks to a special variable declaration in crtbegin.o (_ctors). - - Automatic de-registration is handled symmetrically, a-la C++ destructor - fashion (with a _dtors variable also in crtbegin.o) triggered by the - dynamic unloader. - - Note that since the tables shall be registered against a common - data structure, libgcc should be one of the modules (vs being partially - linked against all the others at build time) and shall be loaded first. - - For applications linked with the kernel, the scheme above would lead to - duplicated symbols because the VxWorks kernel build "munches" by default, - so we link against crtbeginT.o instead of crtbegin.o, which doesn't - include the special variables. We know which set of crt objects is used - thanks to a boolean indicator present in both sets (__module_has_ctors), - and directly call the appropriate function here in the not-automatic - case. We'll never unload that, so there is no de-registration to worry - about. - - For whole applications loaded as a single module, we may use one scheme - or the other, except for the mixed Ada/C++ case in which the first scheme - would fail for the same reason as in the linked-with-kernel situation. - - The crt set selection is controlled by command line options via GCC's - STARTFILE_SPEC in rs6000/vxworks.h. This is tightly synchronized with a - number of other GCC configuration and crtstuff changes, and we need to - ensure that those changes are there to activate this circuitry. */ - -#if (__GNUC__ >= 3) && (defined (_ARCH_PPC) || defined (__ppc)) - { - /* The scheme described above is only useful for the actual ZCX case, and - we don't want any reference to the crt provided symbols otherwise. We - may not link with any of the crt objects in the non-ZCX case, e.g. from - documented procedures instructing the use of -nostdlib, and references - to the ctors symbols here would just remain unsatisfied. - - We have no way to avoid those references in the right conditions in this - C module, because we have nothing like a IN_ZCX_RTS macro. This aspect - is then deferred to an Ada routine, which can do that based on a test - against a constant System flag value. */ - - extern void __gnat_vxw_setup_for_eh (void); - __gnat_vxw_setup_for_eh (); - } -#endif } #elif defined(_T_HPUX10) || (!defined(IN_RTS) && defined(_X_HPUX10)) -- cgit v1.2.1