1. 27 Jan, 2012 15 commits
    • re PR fortran/48705 ([OOP] ALLOCATE with non-trivial SOURCE) · 4daa71b0
      2012-01-27  Paul Thomas  <pault@gcc.gnu.org>
      	    Tobias Burnus <burnus@gcc.gnu.org>
      
      	PR fortran/48705
      	PR fortran/51870
      	PR fortran/51943
      	PR fortran/51946
      	* trans-array.c (gfc_array_init_size): Add two extra arguments
      	to convey the dynamic element size of a calls object and to
      	return the number of elements that have been allocated.
      	(gfc_array_allocate): Add the same arguments and use them to
      	call gfc_array_init_size.  Before the allocation dereference
      	the data pointer, if necessary. Set the allocated array to zero
      	if the class element size or expr3 are non-null.
      	* trans-expr.c (gfc_conv_class_to_class): Give this function
      	global scope.
      	(get_class_array_ref): New function.
      	(gfc_copy_class_to_class): New function.
      	* trans-array.h : Update prototype for gfc_array_allocate.
      	* trans-stmt.c (gfc_trans_allocate): For non-variable class
      	STATUS expressions extract the class object and the dynamic
      	element size. Use the latter to call gfc_array_allocate and
      	the former for setting the vptr and, via
      	gfc_copy_class_to_clasfc_cs, to copy to the allocated data.
      	* trans.h : Prototypes for gfc_get_class_array_ref,
      	gfc_copy_class_to_class and gfc_conv_class_to_class.
        
      
      2012-01-27  Paul Thomas  <pault@gcc.gnu.org>
      	    Tobias Burnus <burnus@gcc.gnu.org>
      
      	PR fortran/48705
      	* gfortran.dg/class_allocate_11.f03: New.
      
      	PR fortran/51870
      	PR fortran/51943
      	PR fortran/51946
      	* gfortran.dg/class_allocate_7.f03: New.
      	* gfortran.dg/class_allocate_8.f03: New.
      	* gfortran.dg/class_allocate_9.f03: New.
      	* gfortran.dg/class_allocate_10.f03: New.
      
      
      Co-Authored-By: Tobias Burnus <burnus@gcc.gnu.org>
      
      From-SVN: r183613
      Paul Thomas committed
    • decl.c (gnat_to_gnu_entity): Do not set an alignment on fields of the RETURN… · 46c91e45
      decl.c (gnat_to_gnu_entity): Do not set an alignment on fields of the RETURN type built for the CICO mechanism.
      
      	* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set
      	an alignment on fields of the RETURN type built for the CICO mechanism.
      
      From-SVN: r183611
      Eric Botcazou committed
    • trans.c (gnat_to_gnu): Avoid making a SAVE_EXPR for a call to a function that… · 16934bbf
      trans.c (gnat_to_gnu): Avoid making a SAVE_EXPR for a call to a function that returns an unconstrained...
      
      	* gcc-interface/trans.c (gnat_to_gnu): Avoid making a SAVE_EXPR for
      	a call to a function that returns an unconstrained type with default
      	discriminant.  Similarly, avoid doing the conversion to the nominal
      
      From-SVN: r183610
      Eric Botcazou committed
    • ada-tree.h (DECL_ALIASED_P): New flag. · 5f2e59d4
      	* gcc-interface/ada-tree.h (DECL_ALIASED_P): New flag.
      	* gcc-interface/decl.c (is_variable_size): Rename to...
      	(type_has_variable_size): ...this.
      	(adjust_packed): Adjust to above renaming.
      	(gnat_to_gnu_field): Set DECL_ALIASED_P on the field.
      	(field_is_artificial): New predicate.
      	(field_is_aliased): Likewise.
      	(field_has_self_size): Likewise.
      	(field_has_variable_size): Likewise.
      	(components_to_record): Record information for the final layout during
      	the first pass on fields.
      	If there is an aliased field placed after a field whose length depends
      	on discriminants, put all the fields of the latter sort, last.
      
      From-SVN: r183609
      Eric Botcazou committed
    • re PR debug/52001 (Huge compile-time regression with var-tracking) · ae25db45
      	PR debug/52001
      	* var-tracking.c (reverse_op): Don't add any reverse operation
      	if V already has any constant locations.
      
      From-SVN: r183608
      Jakub Jelinek committed
    • gigi.h (get_minimal_subprog_decl): Declare. · 1228a6a6
      	* gcc-interface/gigi.h (get_minimal_subprog_decl): Declare.
      	* gcc-interface/decl.c (get_minimal_subprog_decl): New function.
      	* gcc-interface/trans.c (Attribute_to_gnu): Use it for the prefix of an
      	Access-like attribute in a dispatch table if the subprogram is public.
      
      From-SVN: r183607
      Eric Botcazou committed
    • gigi.h (create_label_decl): Adjust. · 88a94e2b
      	* gcc-interface/gigi.h (create_label_decl): Adjust.
      	* gcc-interface/utils.c (create_label_decl): Add GNAT_NODE parameter
      	and invoke gnat_pushdecl on it.  Remove obsolete settings.
      	* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Label>: Adjust call to
      	create_label_decl.
      	* gcc-interface/trans.c (gnat_to_gnu) <N_Null): Likewise.  Ignore the
      	label for debugging purposes.
      
      From-SVN: r183606
      Eric Botcazou committed
    • decl.c (gnat_to_gnu_entity): For an aliased object with an unconstrained nominal subtype and if... · 6b318bf2
      	* gcc-interface/decl.c (gnat_to_gnu_entity) <object>: For an aliased
      	object with an unconstrained nominal subtype and if optimization isn't
      	enabled, create a special VAR_DECL for debugging purposes.
      
      From-SVN: r183605
      Eric Botcazou committed
    • stack_usage1.adb: New test. · a7635800
      	* gnat.dg/stack_usage1.adb: New test.
      	* gnat.dg/stack_usage1_pkg.ad[sb]: New helper.
      
      	* gcc.dg/pr44194-1.c: Remove superfluous include directive.
      	* gcc.dg/pr44194-2.c: Likewise.
      
      From-SVN: r183604
      Eric Botcazou committed
    • invoke.texi: Correct usage of "command line" (noun) vs "command-line" (adjective) throughout. · cb485fff
      2012-01-27  Sandra Loosemore  <sandra@codesourcery.com>
      
      	gcc/
      	* doc/invoke.texi: Correct usage of "command line" (noun)
      	vs "command-line" (adjective) throughout.
      
      From-SVN: r183603
      Sandra Loosemore committed
    • invoke.texi (Language Independent Options): Move -Wcoverage-mismatch blurb from here.... · e3bd34b8
      2012-01-27  Sandra Loosemore  <sandra@codesourcery.com>
      
      	gcc/
      	* doc/invoke.texi (Language Independent Options): Move
      	-Wcoverage-mismatch blurb from here....
      	(Warning Options): ...to here.
      
      From-SVN: r183602
      Sandra Loosemore committed
    • rs6000.c (rs6000_option_override_internal): Set rs6000_always_hint to false for 476. · b7c0a0d4
      	* config/rs6000/rs6000.c (rs6000_option_override_internal):
      	Set rs6000_always_hint to false for 476.
      
      From-SVN: r183601
      Peter Bergner committed
    • configure.ac (GLIBCXX_ENABLE_DEBUG_FLAGS): Use -gdwarf-4 -g3 -O0. · 56378d0e
      2012-01-27  Benjamin Kosnik  <bkoz@redhat.com>
      	    Matthias Klose  <doko@ubuntu.com>
      
      	* configure.ac (GLIBCXX_ENABLE_DEBUG_FLAGS): Use -gdwarf-4 -g3 -O0.
      	* configure.in: Regenerated.
      	* src/Makefile.am (all-once, install-data-once): New rules.
      	(all-local, install-data-local): Use them.
      	(build-debug, install-debug): Tweak.
      	* src/Makefile.in: Regenerate.
      
      Co-Authored-By: Matthias Klose <doko@ubuntu.com>
      
      From-SVN: r183599
      Benjamin Kosnik committed
    • Daily bump. · 7031e9dc
      From-SVN: r183598
      GCC Administrator committed
    • re PR c++/51370 (ICE with invalid template parameter) · 6c1e7aa9
      /cp
      2012-01-26  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/51370
      	* error.c (dump_decl, [TEMPLATE_ID_EXPR]): Handle error_mark_node
      	as TREE_OPERAND (t, 1).
      
      /testsuite
      2012-01-26  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/51370
      	* g++.dg/template/crash112.C: New.
      
      From-SVN: r183593
      Paolo Carlini committed
  2. 26 Jan, 2012 22 commits
  3. 25 Jan, 2012 3 commits