1. 25 Mar, 2015 15 commits
  2. 24 Mar, 2015 25 commits
    • IPA ICF: enhance hash value calculated in TU · 69f6b1f4
      	* ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
      	* ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
      	(sem_item::add_type): New function.
      	(sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
      	(sem_function::compare_polymorphic_p): Do not consider indirect calls.
      	(sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
      	(sem_function::equals_wpa): Fix typo.
      	* ipa-icf.h (sem_item::add_type): New function.
      	(symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
      	order.
      
      
      Co-Authored-By: Martin Liska <mliska@suse.cz>
      
      From-SVN: r221645
      Jan Hubicka committed
    • re PR go/65417 (debug/elf: lacks support for PPC relocations) · e93870c1
      	PR go/65417
      debug/elf: support reading debug info from 32-bit PPC objects
      
      This is a backport of http://golang.org/7590 from the master
      Go library.
      
      From-SVN: r221644
      Ian Lance Taylor committed
    • re PR go/65462 (Use of 'go get' with gccgo is not finding dependencies correctly) · ab24432b
      	PR go/65462
      cmd: Fix dependencies for 'go get' with gccgo
      
      Problem described in GCC BZ 65462.
      Generate the list of the standard GO package names based on what was built into libgo in the libgo Makefile.
      Change the var name from reqPkgSrc to reqStdPkgSrc to clarify it only affects standard GO packages.
      Skip the attempted loading of a package only if it is a standard GO package and the flag is set indicating its source is not required to be available.
      This requires a corresponding change to gotools to build and link in the new file containing the list of standard GO package names that was generated by the libgo Makefile.
      
      gotools/:
      	PR go/65462
      	* Makefile.am (go_cmd_go_files): Add $(libgodir)/zstdpkglist.go.
      	* Makefile.in: Rebuild.
      
      From-SVN: r221643
      Ian Lance Taylor committed
    • re PR c++/65046 (-Wabi-tag doesn't warn about variables or function return types) · a9f0423f
      	PR c++/65046
      	* cp-tree.h (NAMESPACE_IS_INLINE): Remove.
      	* parser.c (cp_parser_namespace_definition): Don't set it.
      	* name-lookup.c (handle_namespace_attrs): Check
      	DECL_NAMESPACE_ASSOCIATIONS instead.
      
      From-SVN: r221642
      Jason Merrill committed
    • re PR c++/65498 (ICE in cxx_eval_call_expression when using __func__ inside dependent context) · 4b7c558d
      	PR c++/65498
      	* pt.c (get_mostly_instantiated_function_type): Just return the
      	type of the partially instantiated template in DECL_TI_TEMPLATE.
      
      From-SVN: r221641
      Jason Merrill committed
    • re PR c++/58923 (g++ does not use provided conversion function for implicit… · e5bca5f6
      re PR c++/58923 (g++ does not use provided conversion function for implicit conversion to another type)
      
      2015-03-24  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/58923
      	* g++.dg/other/virtual3.C: New.
      
      From-SVN: r221640
      Paolo Carlini committed
    • * fr.po: Update. · 88db3715
      From-SVN: r221638
      Joseph Myers committed
    • re PR c++/60130 (Sorry, unimplemented: mangling argument_pack_select) · 5cb9e089
      2015-03-24  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/60130
      	* g++.dg/cpp0x/vt-60130.C: New.
      
      From-SVN: r221637
      Paolo Carlini committed
    • re PR c++/61971 (array subscript is above array bounds [-Werror=array-bounds]) · 0dc47aa3
      2015-03-24  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/61971
      	* g++.dg/warn/Warray-bounds-7.C: New.
      
      From-SVN: r221636
      Paolo Carlini committed
    • re PR libstdc++/33394 (Add test case for Thread race segfault in… · 9ccd0dba
      re PR libstdc++/33394 (Add test case for Thread race segfault in std::string::append with -O and -s)
      
      	PR libstdc++/33394
      	* testsuite/21_strings/basic_string/pthread33394.cc: Add test.
      
      # Auto-generated commit message above this line, original below.
      	PR libstdc++/33394
      	* testsuite/21_strings/basic_string/pthread33394.cc: Add test.
      
      From-SVN: r221635
      Jonathan Wakely committed
    • [multiple changes] · eaed2a2c
      2015-03-24  Gary Dismukes  <dismukes@adacore.com>
      
      	* sem_ch3.adb: Minor typo fix (missing paren).
      
      2015-03-24  Robert Dewar  <dewar@adacore.com>
      
      	* sinfo.ads: Update comment.
      
      2015-03-24  Robert Dewar  <dewar@adacore.com>
      
      	* exp_attr.adb: Add entry for typ'Deref.
      	* sem_attr.adb (Deref): New GNAT attribute.
      	* sem_attr.ads: Add entry for new GNAT attribute Deref.
      	* snames.ads-tmpl: Add entries for new attribute Deref.
      
      From-SVN: r221630
      Arnaud Charlet committed
    • [multiple changes] · 5f6061af
      2015-03-24  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch13.adb (Rep_Item_Too_Early): allow pragma Convention
      	on generic type.
      
      2015-03-24  Gary Dismukes  <dismukes@adacore.com>
      
      	* inline.adb: Minor typo fix.
      
      From-SVN: r221629
      Arnaud Charlet committed
    • building_executable_programs_with_gnat.rst, [...]: Doc improvements. · a62638a3
      	* doc/gnat_ugn/building_executable_programs_with_gnat.rst,
      	doc/gnat_ugn/gnat_utility_programs.rst
      	doc/gnat_rm/implementation_defined_attributes.rst
      	doc/gnat_rm/implementation_defined_pragmas.rst
      	doc/gnat_rm/representation_clauses_and_pragmas.rst
      	doc/gnat_rm/about_this_guide.rst
      	doc/gnat_rm/implementation_of_ada_2012_features.rst: Doc improvements.
      	* gnat_rm.texi, gnat_ugn.texi: Regenerate.
      
      From-SVN: r221628
      Arnaud Charlet committed
    • re PR fortran/55901 ([OOP] type is (character(len=*)) misinterpreted as array) · a2581005
      2015-03-24  Andre Vehreschild  <vehre@gmx.de>
      
      	PR fortran/55901
      	* trans-expr.c (gfc_conv_structure): Fixed indendation.
      	Using integer_zero_node now instead of explicitly
      	constructing a integer constant zero node.
      	(gfc_conv_derived_to_class): Add handling of _len component,
      	i.e., when the rhs has a string_length then assign that to
      	class' _len, else assign 0.
      	(gfc_conv_intrinsic_to_class): Likewise.
      
      From-SVN: r221627
      Andre Vehreschild committed
    • re PR c++/60067 (bogus error default template arguments may not be used in function templates) · 29ec68cb
      2015-03-24  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/60067
      	* g++.dg/template/defarg18.C: New.
      
      From-SVN: r221626
      Paolo Carlini committed
    • re PR c++/60067 (bogus error default template arguments may not be used in function templates) · 4c5744b4
      2015-03-24  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/60067
      	* g++.dg/template/defarg18.C: New.
      
      From-SVN: r221625
      Paolo Carlini committed
    • re PR c++/59988 (Failing to specialize template class) · a75225d6
      2015-03-24  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/59988
      	* g++.dg/cpp0x/vt-59988.C: New.
      
      From-SVN: r221624
      Paolo Carlini committed
    • re PR c++/59988 (Failing to specialize template class) · cca38f29
      2015-03-24  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/59988
      	* g++.dg/cpp0x/vt-59988.C: New.
      
      From-SVN: r221623
      Paolo Carlini committed
    • re PR tree-optimization/65533 (252.eon in SPEC CPU 2000 failed to build) · e72baed7
      	PR tree-optimization/65533
      	* tree-vect-slp.c (vect_build_slp_tree): Before re-trying
      	with swapped operands, call vect_free_slp_tree on
      	SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
      	vector.
      
      	* gcc.dg/pr65533.c: New test.
      
      From-SVN: r221622
      Jakub Jelinek committed
    • re PR fortran/64787 (Invalid code on sourced allocation of class(*) character string) · 34d9d749
      gcc/fortran/ChangeLog
      
      2015-03-24  Andre Vehreschild  <vehre@gmx.de>
      
      	PR fortran/64787
      	PR fortran/57456
      	PR fortran/63230
      	* class.c (gfc_add_component_ref):  Free no longer needed
      	ref-chains to prevent memory loss.
      	(find_intrinsic_vtab): For deferred length char arrays or
      	unlimited polymorphic objects, store the size in bytes of one
      	character in the size component of the vtab.
      	* gfortran.h: Added gfc_add_len_component () define.
      	* trans-array.c (gfc_trans_create_temp_array): Switched to new
      	function name for getting a class' vtab's field.
      	(build_class_array_ref): Likewise.
      	(gfc_array_init_size): Using the size information from allocate
      	more consequently now, i.e., the typespec of the entity to
      	allocate is no longer needed.  This is to address the last open
      	comment in PR fortran/57456.
      	(gfc_array_allocate): Likewise.
      	(structure_alloc_comps): gfc_copy_class_to_class () needs to
      	know whether the class is unlimited polymorphic.
      	* trans-array.h: Changed interface of gfc_array_allocate () to
      	reflect the no longer needed typespec.
      	* trans-expr.c (gfc_find_and_cut_at_last_class_ref): New.
      	(gfc_reset_len): New.
      	(gfc_get_class_array_ref): Switch to new function name for
      	getting a class' vtab's field.
      	(gfc_copy_class_to_class):  Added flag to know whether the class
      	to copy is unlimited polymorphic.  Adding _len dependent code
      	then, which calls ->vptr->copy () with four arguments adding
      	the length information ->vptr->copy(from, to, from_len, to_cap).
      	(gfc_conv_procedure_call): Switch to new function name for
      	getting a class' vtab's field.
      	(alloc_scalar_allocatable_for_assignment): Use the string_length
      	as computed by gfc_conv_expr and not the statically backend_decl
      	which may be incorrect when ref-ing.
      	(gfc_trans_assignment_1): Use the string_length variable and
      	not the rse.string_length.  The former has been computed more
      	generally.
      	* trans-intrinsic.c (gfc_conv_intrinsic_sizeof): Switch to new
      	function name for getting a class' vtab's field.
      	(gfc_conv_intrinsic_storage_size): Likewise.
      	(gfc_conv_intrinsic_transfer): Likewise.
      	* trans-stmt.c (gfc_trans_allocate): Restructured to evaluate
      	source=expr3 only once before the loop over the objects to
      	allocate, when the objects are not arrays. Doing correct _len
      	initialization and calling of vptr->copy () fixing PR 64787.
      	(gfc_trans_deallocate): Reseting _len to 0, preventing future
      	errors.
      	* trans.c (gfc_build_array_ref): Switch to new function name
      	for getting a class' vtab's field.
      	(gfc_add_comp_finalizer_call): Likewise.
      	* trans.h: Define the prototypes for the gfc_class_vtab_*_get ()
      	and gfc_vptr_*_get () functions.
      	Added gfc_find_and_cut_at_last_class_ref () and
      	gfc_reset_len () routine prototype.  Added flag to
      	gfc_copy_class_to_class () prototype to signal an unlimited
      	polymorphic entity to copy.
      
      gcc/testsuite/ChangeLog
      
      2015-03-24  Andre Vehreschild  <vehre@gmx.de>
      
      	* gfortran.dg/allocate_alloc_opt_13.f90: Added tests for
      	source= and mold= expressions functionality.
      	* gfortran.dg/allocate_class_4.f90: New test.
      	* gfortran.dg/unlimited_polymorphic_20.f90: Added test whether
      	copying an unlimited polymorhpic object containing a char array
      	to another unlimited polymorphic object respects the _len
      	component.
      	* gfortran.dg/unlimited_polymorphic_22.f90: Extended to check
      	whether deferred length char array allocate works, unlimited
      	polymorphic object allocation from a string works and if
      	allocating an array of deferred length strings works.
      	* gfortran.dg/unlimited_polymorphic_24.f03: New test.
      
      From-SVN: r221621
      Andre Vehreschild committed
    • re PR c++/65513 (gcc stops with "internal compiler error") · a9272fd0
      2015-03-24  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/65513
      	* g++.dg/cpp0x/constexpr-array11.C: New.
      
      From-SVN: r221620
      Paolo Carlini committed
    • re PR middle-end/65517 (ICE: in get_loop_body, at cfgloop.c:856) · bdb37448
      2015-03-24  Richard Biener  <rguenther@suse.de>
      
      	PR middle-end/65517
      	* tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
      	for fixup if necessary.
      
      	* gcc.dg/torture/pr65517.c: New testcase.
      
      From-SVN: r221619
      Richard Biener committed
    • coindexed_1.f90: Moved from gfortran.dg/coarray/coindexed_3.f90; added dg-options. · f9addac7
      2015-03-24  Tobias Burnus  <burnus@net-b.de>
      
              * gfortran.dg/coindexed_1.f90: Moved from
              gfortran.dg/coarray/coindexed_3.f90; added dg-options.
      
      From-SVN: r221618
      Tobias Burnus committed
    • gfortran.texi (_gfortran_caf_sync_memory): Improve wording. · f7a35a83
      2015-03-24  Iain Sandoe  <iain@codesourcery.com>
                  Tobias Burnus  <burnus@net-b.de>
      
              * gfortran.texi (_gfortran_caf_sync_memory): Improve wording.
      
      
      Co-Authored-By: Tobias Burnus <burnus@net-b.de>
      
      From-SVN: r221615
      Iain Sandoe committed
    • extend.texi (Function Attributes): Add @cindex entries for all attributes and… · 0c0f9f31
      extend.texi (Function Attributes): Add @cindex entries for all attributes and regularize their format.
      
      2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
      
      	gcc/
      	* doc/extend.texi (Function Attributes): Add @cindex entries
      	for all attributes and regularize their format.  Delete text
      	about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
      	information about "eightbit_data", "tiny_data", and "model"
      	variable attributes to the Variable Attributes section.  Fix
      	some obvious typos and copy-editing issues.
      	(Variable Attributes, Type Attributes): Likewise add/fix
      	@cindex entries for all attributes.
      
      From-SVN: r221614
      Sandra Loosemore committed