OSDN Git Service

gcc/ada/
[pf3gnuchains/gcc-fork.git] / gcc / ada / ChangeLog
index bcbb51c..7b7383c 100644 (file)
@@ -1,7 +1,149 @@
+2007-11-28  Samuel Tardieu  <sam@rfc1149.net>
+
+       PR ada/15803
+       * par-ch3.adb (P_Variant_Part): Signal an error when anything other
+       than an identifier is used after "case" in a variant_part.
+
+       PR ada/17317
+       * par-ch4.adb (Is_Parameterless_Attribute): New map.
+       (P_Name, Scan_Apostrophe block): Parse left parenthesis following
+       attribute name or not depending on the new map.
+
+       * sem-attr.adb (Analyze_Attribute): Parameterless attributes
+       returning a string or a type will not be called with improper
+       arguments.
+
+       * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
+
+       * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
+
+2007-11-26  Andreas Krebbel  <krebbel1@de.ibm.com>
+
+        PR 34081/C++
+        * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
+        Pass 'false' for the new allocate_struct_function parameter.
+        * utils.c (build_function_stub): Likewise.
+
+2007-11-25  Richard Guenther  <rguenther@suse.de>
+
+       utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
+       (gnat_poplevel): Likewise.
+
+2007-11-25  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
+       strict alignment, no alignment clause and a known static size, cap
+       the type alignment to the greatest power of 2 factor of the size.
+       (gnat_to_gnu_field): If the field has a component clause, is aliased
+       or of a type with strict alignment, require that its size be equal to
+       that of the type.
+       (validate_size): Use the type size as the minimum size for a type with
+       strict alignment.
+
+2007-11-23  Samuel Tardieu  <sam@rfc1149.net>
+
+       * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
+       s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
+       s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
+       Use 'Access instead of 'Unchecked_Access in second and third
+       arguments of pthread_sigmask.
+
+2007-11-23  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * decl.c (ceil_alignment): New function.
+       (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
+       (make_packable_type): Likewise.
+
+2007-11-22  Olivier Hainque  <hainque@adacore.com>
+
+       * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
+       to fit in 80 columns.
+
+2007-11-21  Aurelien Jarno <aurelien@aurel32.net>
+
+       * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
+       * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
+
+2007-11-19  Eric Botcazou  <ebotcazou@adacore.com>
+
+       PR ada/34098
+       * misc.c (gnat_adjust_rli): Delete.
+       (gnat_init): Do not initialize the translation code here.
+       Do not call set_lang_adjust_rli.
+       * trans.c (init_code_table): Make static.
+       (gnat_init_stmt_group): Delete.
+       (gigi): Initialize the translation code entirely here.
+       Emit debug info for the common types here instead of...
+       * utils.c (gnat_init_decl_processing): ...here.
+       * gigi.h (init_code_table): Delete.
+       (gnat_init_stmt_group): Likewise.
+
+2007-11-16  Olivier Hainque  <hainque@adacore.com>
+
+       * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
+       retrieving an allocator return value from a super-aligned address from
+       here to ...
+       * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
+       expect a super-aligned address for a fat or thin pointer.
+       
+2007-11-14  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * trans.c (call_to_gnu): Always set the source location on the call
+       expression.  If the function returns-by-target, also set it on the
+       address expression.
+
+2007-11-14  Samuel Tardieu  <sam@rfc1149.net>
+
+       * adaint.c, init.c, initialize.c, link.c: Remove system-specific
+       sections of non-supported Interix target.
+
+       * s-osinte-interix.ads: Removed.
+
+       * i-cstrin.ads (chars_ptr): Make it a C convention type.
+
+2007-11-13  Samuel Tardieu  <sam@rfc1149.net>
+
+       * a-tasatt.adb: Add a comment at the beginning of the package
+       explaining why in general 'Unchecked_Access must be used instead
+       of 'Access.
+
+       * sem_prag.adb (Process_Convention): Move the test for the
+       entity on which the Convention pragma applies down to also
+       forbid pragma Convention on enumeration literals reached
+       through renamings.
+
+2007-11-10  Samuel Tardieu  <sam@rfc1149.net>
+
+       * a-tasatt.adb: Revert previous change for this file as it will
+       generate an error when this package is instantiated from a
+       local context.
+
 2007-11-07  Samuel Tardieu  <sam@rfc1149.net>
 
        * a-tasatt.adb: Type Wrapper should be declared in comment instead
        of already declared type Node_Access.
+       Use 'Access instead of 'Unchecked_Access when applicable. Local
+       lifetime is the one of the package.
+       (Set_Value): W is allocated on the heap.
+
+       * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
+       applicable.
+       (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
+       access type.
+       (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
+       access type.
+
+       * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
+       applicable.
+       (elaboration code): Timer_Queue lifetime is the one of the
+       package.
+
+       * tracebak.c (i386 alternative): Remove useless comparaison
+       which is always false; LOWEST_ADDRESS is 0 and is never greater
+       than an unsigned integer.
+
+       * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
+       embedded check for "Ada_Version >= Ada_05".
 
 2007-11-07  Olivier Hainque  <hainque@adacore.com>