1. 09 Jan, 2012 10 commits
  2. 08 Jan, 2012 9 commits
  3. 07 Jan, 2012 4 commits
  4. 06 Jan, 2012 17 commits
    • DR 686 PR c++/47450 · b2218da7
      	DR 686
      	PR c++/47450
      	* parser.c (cp_parser_new_expression): Set
      	type_definition_forbidden_message.
      
      From-SVN: r182975
      Jason Merrill committed
    • re PR target/47333 (g++.dg/lto/20091219 FAILs on Solaris 2 with SUN as) · 0850f694
      	PR target/47333
      	* cgraphunit.c (cgraph_optimize): Call output_weakrefs
      	before emitting functions.
      
      From-SVN: r182974
      Jakub Jelinek committed
    • re PR gcov-profile/50127 (g++.dg/tree-prof/partition2.C FAILs on several targets) · b71d7f85
      	PR gcov-profile/50127
      	* bb-reorder.c (partition_hot_cold_basic_blocks): Call
      	clear_aux_for_blocks.
      
      From-SVN: r182973
      Jakub Jelinek committed
    • re PR testsuite/51655 (FAIL: c-c++-common/tm/memcpy-1.c (test for excess errors)) · 4ee2f830
      PR testsuite/51655
              * c-c++-common/tm/memcpy-1.c: Declare memcpy instead of
              including <string.h>.
      
      From-SVN: r182972
      Patrick Marlier committed
    • re PR c++/6057 (expression mangling doesn't work for operator new) · 4b6aaa99
      	PR c++/6057
      	PR c++/48051
      	PR c++/50855
      	PR c++/51322
      gcc/cp/
      	* mangle.c (write_expression): Support NEW_EXPR, DELETE_EXPR,
      	THROW_EXPR, CONSTRUCTOR, OVERLOAD.  Fix PREINCREMENT_EXPR and
      	PREDECREMENT_EXPR.
      	(write_template_arg): Fix mangling of class-scope functions and
      	argument packs.
      	(mangle_decl): Update suggested -fabi-version argument.
      	* operators.def: Add DOTSTAR_EXPR, REINTERPRET_CAST_EXPR,
      	DYNAMIC_CAST_EXPR; correct CONST_CAST_EXPR, STATIC_CAST_EXPR.
      	* tree.c (dependent_name): No longer static.
      	* cp-tree.h: Declare it.
      	* pt.c (unify): Defer handling of unconverted functions.
      include/
      	* demangle.h (enum demangle_component_type): Add
      	DEMANGLE_COMPONENT_INITIALIZER_LIST, DEMANGLE_COMPONENT_NULLARY.
      libiberty/
      	* cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_NULLARY and
      	DEMANGLE_COMPONENT_INITIALIZER_LIST.
      	(d_make_comp): Likewise.  Allow null right arg for
      	DEMANGLE_COMPONENT_TRINARY_ARG2.
      	(cplus_demangle_operators): Adjust new/delete; add .*, :: and throw.
      	(d_template_args, d_template_arg): Handle 'J' for argument packs.
      	(d_exprlist): Add terminator parm.
      	(d_expression, d_print_comp): Handle initializer lists, nullary
      	expressions, prefix/suffix operators, and new.
      	(d_print_subexpr): Avoid parens around DEMANGLE_COMPONENT_QUAL_NAME
      	and DEMANGLE_COMPONENT_INITIALIZER_LIST.
      	* testsuite/demangle-expected: Add tests.
      
      From-SVN: r182970
      Jason Merrill committed
    • cp-demangle.c (cplus_demangle_type): decltype, pack expansion and vector are substitutable. · 49f2da1a
      	* cp-demangle.c (cplus_demangle_type): decltype, pack expansion
      	and vector are substitutable.
      	(cplus_demangle_operators): Sort.
      
      From-SVN: r182969
      Jason Merrill committed
    • mangle.c (mangle_decl): Don't generate mangling aliases for maybe-in-charge [cd]tors. · 1be3db36
      	* mangle.c (mangle_decl): Don't generate mangling aliases
      	for maybe-in-charge [cd]tors.
      
      From-SVN: r182968
      Jason Merrill committed
    • * error.c (dump_expr): Print type of CONSTRUCTOR. · 11a36a27
      From-SVN: r182967
      Jason Merrill committed
    • correct comment · 45896127
      From-SVN: r182965
      Jason Merrill committed
    • re PR debug/51746 (Segfault in cselib_preserved_value_p) · 7483eef8
      PR debug/51746
      * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
      
      From-SVN: r182963
      Alexandre Oliva committed
    • re PR lto/51774 (FAIL: gcc.dg/lto/trans-mem-*… · 09228fef
      re PR lto/51774 (FAIL: gcc.dg/lto/trans-mem-* c_lto_trans-mem-1_0.o-c_lto_trans-mem-1_1.o link, -flto -fgnu-tm)
      
      	PR lto/51774
      	* lto-lang.c (handle_returns_twice_attribute): New function.
      	(lto_attribute_table): Add returns_twice attribute.
      
      From-SVN: r182959
      Jakub Jelinek committed
    • [multiple changes] · 4913e24c
      2012-01-06  Robert Dewar  <dewar@adacore.com>
      
      	* a-wichha.ads, a-wichun.ads, a-zchhan.ads, a-zchuni.ads,
      	s-utf_32.ads: Add pragma Pure
      	* s-utf_32.adb: Suppress warnings on non-static constants (now
      	that this is Pure).
      
      2012-01-06  Bob Duff  <duff@adacore.com>
      
      	* s-rpc.ads (Read, Write): Add overriding indicators.
      
      2012-01-06  Robert Dewar  <dewar@adacore.com>
      
      	* gnat_rm.texi: Add documentation for conventions
      	Ada_Pass_By_Copy and Ada_Pass_By_Reference.
      
      2012-01-06  Gary Dismukes  <dismukes@adacore.com>
      
      	* a-tienio.adb (Put): Add exception message on
      	raise statements. Remove unneeded blocks and object declarations.
      
      2012-01-06  Robert Dewar  <dewar@adacore.com>
      
      	* sem_prag.adb: Minor reformatting.
      
      2012-01-06  Ed Schonberg  <schonberg@adacore.com>
      
      	* sinfo.ads, sinfo.adb (Has_Prefixed_Call): New flag to indicate
      	that a selected component within a generic unit has been resolved
      	as a prefixed call with local references.
      	* sem_ch3.adb (Is_Visible_Component): In an instance body a selected
      	component is always visible.
      	* sem_ch4.adb (Analyze_Selected_Component): If the node is a
      	prefixed call in an instance, do not look for visible components
      	of the type.
      	* sem_ch12.adb (Reset_Entity): If a selected component has resolved
      	to a prefixed call, mark the node accordingly when prefix and
      	selector are local references.
      
      From-SVN: r182954
      Arnaud Charlet committed
    • c-decl.c (ext_block): Moved up. · 86d71fca
      	* c-decl.c (ext_block): Moved up.
      	(collect_all_refs, for_each_global_decl): Take ext_block into account.
      
      From-SVN: r182953
      Arnaud Charlet committed
    • t-ia64 (LIB1ASMFUNCS): Move backward compatibility thunks... · 1ab3568b
      2012-01-06  Tristan Gingold  <gingold@adacore.com>
      
      	* config/ia64/t-ia64 (LIB1ASMFUNCS): Move backward
      	compatibility thunks...
      	(CUSTOM_CRTSTUFF, crtbegin.o, crtend.o)
      	(crtbeginS.o, crtendS.o): ... and these to ...
      	* config/ia64/t-ia64-elf: ... this new file.
      	* config.host (ia64*-*-elf*, ia64*-*-freebsd*, ia64*-*-linux*)
      	(ia64*-*-hpux*): Add ia64/t-ia64-elf in tmake_file.
      
      From-SVN: r182952
      Tristan Gingold committed
    • 2012-01-06 Tobias Burnus <burnus@net-b.de> · 5d81ddd0
              * trans-openmp.c (gfc_omp_clause_dtor,
              * gfc_trans_omp_array_reduction):
              Update call to gfc_trans_dealloc_allocated.
              * trans.c (gfc_allocate_using_malloc): Fix spacing.
              (gfc_allocate_allocatable): For gfc_allocate_using_lib, jump to
              label_finish when an error occurs.
              (gfc_deallocate_with_status): Call caf_deregister for -fcoarray=lib.
              * trans.h (gfc_allocate_allocatable,
              * gfc_deallocate_with_status):
              Update prototype.
              (gfor_fndecl_caf_deregister): New tree symbol.
              * trans-expr.c (gfc_conv_procedure_call): Update
              gfc_deallocate_with_status and gfc_trans_dealloc_allocated calls.
              * trans-array.c (gfc_array_allocate,
              * gfc_trans_dealloc_allocated,
              structure_alloc_comps, gfc_trans_deferred_array): Ditto.
              (gfc_array_deallocate): Handle coarrays with -fcoarray=lib.
              * trans-array.h (gfc_array_deallocate, gfc_array_allocate,
              gfc_trans_dealloc_allocated): Update prototypes.
              * trans-stmt.c (gfc_trans_sync): Fix indentation.
              (gfc_trans_allocate): Fix errmsg padding and label handling.
              (gfc_trans_deallocate): Ditto and handle -fcoarray=lib.
              * expr.c (gfc_is_coarray): Fix algorithm for BT_CLASS.
              * libgfortran.h (GFC_STAT_STOPPED_IMAGE): Use large value
              to avoid other stats accidentally matching this one.
              * trans-decl.c (gfor_fndecl_caf_deregister): New global var.
              (gfc_build_builtin_function_decls): Fix prototype decl of caf_register
              and add decl for caf_deregister.
              (gfc_trans_deferred_vars): Handle CAF vars with -fcoarrays=lib.
              * trans-intrinsic.c (conv_intrinsic_move_alloc): Update call to
              gfc_deallocate_with_status.
      
      2012-01-06  Tobias Burnus <burnus@net-b.de>
      
              * caf/single.c (_gfortran_caf_register,
              * _gfortran_caf_deregister):
              Fix token handling.
              * caf/mpi.c  (_gfortran_caf_register, _gfortran_caf_deregister):
              * Ditto.
              * caf/libcaf.h (STAT_STOPPED_IMAGE): Sync with libgfortran.h.
              (_gfortran_caf_register, _gfortran_caf_deregister): Update prototype.
      
      2012-01-06  Tobias Burnus <burnus@net-b.de>
      
              * gfortran.dg/deallocate_stat_2.f90: New.
              * coarray/allocate_errgmsg.f90: New.
              * gfortran.dg/coarray_lib_alloc_1.f90: New.
              * gfortran.dg/coarray_lib_alloc_2.f90: New.
              * coarray/subobject_1.f90: Fix for num_images > 1.
              * gfortran.dg/deallocate_stat.f90: Update due to changed
              stat= handling.
      
      From-SVN: r182951
      Tobias Burnus committed
    • headmerge-2.c: Adjust scan pattern. · af0aec67
      2012-01-06  Andrew Stubbs  <ams@codesourcery.com>
      
      	* gcc.target/arm/headmerge-2.c: Adjust scan pattern.
      
      From-SVN: r182950
      Andrew Stubbs committed