1. 20 May, 2013 13 commits
    • re PR fortran/48858 (Incorrect error for same binding label on two generic interface specifics) · 77f8682b
      2013-05-20  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/48858
              PR fortran/55465
              * decl.c (add_global_entry): Add sym_name.
              * parse.c (add_global_procedure): Ditto.
              * resolve.c (resolve_bind_c_derived_types): Handle multiple decl for
              a procedure.
              (resolve_global_procedure): Handle gsym->ns pointing to a module.
              * trans-decl.c (gfc_get_extern_function_decl): Ditto.
      
      2013-05-20  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/48858
              PR fortran/55465
              * gfortran.dg/binding_label_tests_10_main.f03: Update dg-error.
              * gfortran.dg/binding_label_tests_11_main.f03: Ditto.
              * gfortran.dg/binding_label_tests_13_main.f03: Ditto.
              * gfortran.dg/binding_label_tests_3.f03: Ditto.
              * gfortran.dg/binding_label_tests_4.f03: Ditto.
              * gfortran.dg/binding_label_tests_5.f03: Ditto.
              * gfortran.dg/binding_label_tests_6.f03: Ditto.
              * gfortran.dg/binding_label_tests_7.f03: Ditto.
              * gfortran.dg/binding_label_tests_8.f03: Ditto.
              * gfortran.dg/c_loc_tests_12.f03: Fix test case.
              * gfortran.dg/binding_label_tests_24.f90: New.
              * gfortran.dg/binding_label_tests_25.f90: New.
      
      From-SVN: r199120
      Tobias Burnus committed
    • re PR fortran/48858 (Incorrect error for same binding label on two generic interface specifics) · f11de7c5
      2013-05-20  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/48858
              * decl.c (add_global_entry): Use nonbinding name
              only for F2003 or if no binding label exists.
              (gfc_match_entry): Update calls.
              * parse.c (gfc_global_used): Improve error message.
              (add_global_procedure): Use nonbinding name
              only for F2003 or if no binding label exists.
              (gfc_parse_file): Update call.
              * resolve.c (resolve_global_procedure): Use binding
              name when available.
              * trans-decl.c (gfc_get_extern_function_decl): Ditto.
      
      2013-05-20  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/48858
              * gfortran.dg/binding_label_tests_17.f90: New.
              * gfortran.dg/binding_label_tests_18.f90: New.
              * gfortran.dg/binding_label_tests_19.f90: New.
              * gfortran.dg/binding_label_tests_20.f90: New.
              * gfortran.dg/binding_label_tests_21.f90: New.
              * gfortran.dg/binding_label_tests_22.f90: New.
              * gfortran.dg/binding_label_tests_23.f90: New.
      
      From-SVN: r199119
      Tobias Burnus committed
    • re PR fortran/48858 (Incorrect error for same binding label on two generic interface specifics) · 878cdb7b
      2013-05-20  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/48858
              * decl.c (gfc_match_bind_c_stmt): Add gfc_notify_std.
              * match.c (gfc_match_common): Don't add commons to gsym.
              * resolve.c (resolve_common_blocks): Add to gsym and
              add checks.
              (resolve_bind_c_comms): Remove.
              (resolve_types): Remove call to the latter.
              * trans-common.c (gfc_common_ns): Remove static var.
              (gfc_map_of_all_commons): Add static var.
              (build_common_decl): Correctly handle binding label.
      
      2013-05-20  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/48858
              * gfortran.dg/test_common_binding_labels.f03: Update dg-error.
              * gfortran.dg/test_common_binding_labels_2_main.f03: Ditto.
              * gfortran.dg/test_common_binding_labels_3_main.f03: Ditto.
              * gfortran.dg/common_18.f90: New.
              * gfortran.dg/common_19.f90: New.
              * gfortran.dg/common_20.f90: New.
              * gfortran.dg/common_21.f90: New.
      
      From-SVN: r199118
      Tobias Burnus committed
    • re PR c++/12288 (unintelligible error message for constructor declaration with misspelled type) · 9bbc9565
      /cp
      2013-05-20  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/12288
      	* parser.c (cp_parser_parameter_declaration): Check return value
      	of cp_parser_parse_and_diagnose_invalid_type_name.
      
      /testsuite
      2013-05-20  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/12288
      	* g++.dg/parse/error52.C: New.
      	* g++.dg/parse/error3.C: Adjust.
      	* g++.dg/parse/error36.C: Likewise.
      
      From-SVN: r199115
      Paolo Carlini committed
    • re PR c++/57319 (bogus "defaulted move assignment for ... calls a non-trivial… · 32bfcf80
      re PR c++/57319 (bogus "defaulted move assignment for ... calls a non-trivial move assignment operator for virtual base ...")
      
      	PR c++/57319
      	* class.c (vbase_has_user_provided_move_assign): New.
      	* method.c (synthesized_method_walk): Check it.
      	* cp-tree.h: Declare it.
      
      From-SVN: r199114
      Jason Merrill committed
    • re PR c++/57325 (ICE in strip_typedefs, at cp/tree.c:1306) · 9f0bdc93
      	PR c++/57325
      	* tree.c (build_cplus_array_type): Copy layout info if element
      	type is complete.
      
      From-SVN: r199113
      Jason Merrill committed
    • re PR tree-optimization/56547 ([SH] missed opportunity for fmac with -ffast-math) · 14c2ec26
      	PR target/56547
      	* config/sh/sh.md (fmasf4): Remove empty constraints strings.
      	(*fmasf4, *fmasf4_media): New insns.
      
      	PR target/56547
      	* gcc.target/sh/pr56547-1.c: New.
      	* gcc.target/sh/pr56547-2.c: New.
      
      From-SVN: r199110
      Oleg Endo committed
    • re PR c++/23608 (constant propagation (CCP) would improve -Wsign-compare) · 3c1247f0
      /cp
      2013-05-20  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/23608
      	* call.c (build_new_op_1): Propagate loc to cp_build_binary_op.
      
      /testsuite
      2013-05-20  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/23608
      	* g++.dg/warn/Wsign-compare-6.C: New.
      	* g++.dg/warn/Wdouble-promotion.C: Adjust.
      
      From-SVN: r199102
      Paolo Carlini committed
    • re PR c++/57317 (bogus and unsuppressible warning: 'YYY' has a base 'ZZZ' whose… · 8f1352c4
      re PR c++/57317 (bogus and unsuppressible warning: 'YYY' has a base 'ZZZ' whose type uses the anonymous namespace)
      
      	PR c++/57317
      	* decl2.c (determine_visibility): Use PRIMARY_TEMPLATE_P to decide
      	whether a template has its own args.
      
      From-SVN: r199101
      Jason Merrill committed
    • re PR c++/57327 ('derived' is an ambiguous base class of 'base' diagnostic is backwards) · a293ed6e
      /cp
      2013-05-20  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/57327
      	* pt.c (unify_no_common_base): Swap arg and parm arguments to inform.
      
      /testsuite
      2013-05-20  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/57327
      	* g++.dg/template/error50.C: New.
      
      From-SVN: r199097
      Paolo Carlini committed
    • re PR c++/10207 (Empty structure initialization fails under C++ (but works under C)) · de4317cc
      /cp
      2013-05-20  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/10207
      	* parser.c (cp_parser_postfix_expression): Use cp_parser_braced_list
      	instead of cp_parser_initializer_list for compound-literals.
      
      /testsuite
      2013-05-20  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/10207
      	* g++.dg/ext/complit13.C: New.
      
      From-SVN: r199096
      Paolo Carlini committed
    • re PR c++/57175 (NRVO and alignment) · 5657d966
      2013-05-20  Marc Glisse  <marc.glisse@inria.fr>
      
      	PR c++/57175
      gcc/cp/
      	* typeck.c (check_return_expr): Reverse the alignment comparison.
      
      gcc/testsuite/
      	* g++.dg/pr57175.C: New testcase.
      
      From-SVN: r199093
      Marc Glisse committed
    • Daily bump. · e82a3870
      From-SVN: r199090
      GCC Administrator committed
  2. 19 May, 2013 7 commits
    • tuple (get): Implement N3670. · b5a8fed6
      	* include/std/tuple (get): Implement N3670.
      	* include/std/utility (get): Likewise.
      	* testsuite/20_util/pair/get.cc: Move to ...
      	* testsuite/20_util/pair/astuple/get.cc: Here.
      	* testsuite/20_util/pair/astuple/astuple.cc: New.
      	* testsuite/20_util/pair/astuple/constexpr_get.cc: New.
      	* testsuite/20_util/pair/astuple/constexpr_get_by_type.cc: New.
      	* testsuite/20_util/pair/astuple/get_by_type.cc: New.
      	* testsuite/20_util/pair/astuple/get_by_type_neg.cc: New.
      	* testsuite/20_util/pair/astuple/get_neg.cc: New.
      	* testsuite/20_util/tuple/element_access/constexpr_get_by_type.cc: New.
      	* testsuite/20_util/tuple/element_access/get2_by_type.cc: New.
      	* testsuite/20_util/tuple/element_access/get_by_type.cc: New.
      
      From-SVN: r199082
      Jonathan Wakely committed
    • 2013-05-19 Paolo Carlini <paolo.carlini@oracle.com> · eeb71f0c
      	* Revert last commit.
      
      From-SVN: r199081
      Paolo Carlini committed
    • mips.h (BASE_INSN_LENGTH, [...]): New macros. · da734fa1
      gcc/
      	* config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
      	* config/mips/mips.c (mips_symbol_insns, mips_address_insns)
      	(mips_const_insns, mips_split_const_insns, mips_load_store_insns)
      	(mips_idiv_insns): Update the comments to say that the returned
      	instruction counts are in units of BASE_INSN_LENGTH.
      	(mips_adjust_insn_length): Multiply the mips_load_label_num_insns
      	by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
      	using 2 rather than 4 as the length of indirect MIPS16 and
      	microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
      	length of a NOP.  Don't divide MIPS16 lengths by 2.
      	(mips16_split_long_branches): Assume a branch is long if the
      	length is greater than 4 rather than 8.
      	* config/mips/mips.md (length): Give MIPS16 lengths directly,
      	rather than multiplying them by 2.  Multiply instruction counts
      	by BASE_INSN_LENGTH rather than 4.
      	(*jump_mips16, tls_get_tp_mips16_<mode>)
      	(*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
      
      From-SVN: r199080
      Richard Sandiford committed
    • * ChangeLog: Remove merge marker. · e2420687
      From-SVN: r199079
      Uros Bizjak committed
    • mips.md (extended_mips16): Remove branch case. · 13719e8b
      gcc/
      	* config/mips/mips.md (extended_mips16): Remove branch case.
      	(length): Remove duplicated extended_mips16 test.
      
      From-SVN: r199078
      Richard Sandiford committed
    • t-sde: Don't build 64-bit microMIPS multilibs. · c3850d14
      gcc/
      	* config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
      
      From-SVN: r199077
      Richard Sandiford committed
    • Daily bump. · b0a7990a
      From-SVN: r199075
      GCC Administrator committed
  3. 18 May, 2013 11 commits
  4. 17 May, 2013 9 commits
    • lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module weakrefs. · e01c7cca
      	* lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
      	weakrefs.
      	* cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
      	* cgraphunit.c (handle_alias_pairs): Store target of unresolved weakrefs.
      	(output_weakrefs): Update.
      
      From-SVN: r199041
      Jan Hubicka committed
    • lto-partition.c (privatize_symbol_name): Return true when privatizing happened. · 8ee05051
      	* lto-partition.c (privatize_symbol_name): Return true when
      	privatizing happened.
      	(rename_statics): Do not go into infinite loop when privatizing
      	is not needed.
      
      From-SVN: r199040
      Jan Hubicka committed
    • re PR middle-end/57276 (Waste work in cgraph_edge_brings_all_agg_vals_for_node()) · c3272a92
      2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
      	    Martin Jambor  <mjambor@suse.cz>
      
      	PR middle-end/57276
      	* ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
      	value that corresponds to the given aggval is found in values vector.
      
      
      Co-Authored-By: Martin Jambor <mjambor@suse.cz>
      
      From-SVN: r199035
      Po-Chun Chang committed
    • driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow, sse, sse2, sse3, ssse3… · 11c2aa39
      driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow, sse, sse2, sse3, ssse3 and sse4a flags to options.
      
      	* config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
      	sse, sse2, sse3, ssse3 and sse4a flags to options.
      
      From-SVN: r199034
      Uros Bizjak committed
    • gengtype-state.c: (s_expr_writer): New class, to handle prettifying of output… · abecc8c6
      gengtype-state.c: (s_expr_writer): New class, to handle prettifying of output layout of s-expressions.
      
      2013-05-17  David Malcolm  <dmalcolm@redhat.com>
      
      	* gengtype-state.c: (s_expr_writer): New class, to handle
      	prettifying of output layout of s-expressions.
      	(state_writer): New class, to write out gtype.state.
      	(state_written_type_count): Move this variable into member data of
      	state_writer.
      	(s_expr_writer::s_expr_writer): New code: constructor for new class
      	(state_writer::state_writer(): ditto
      	(s_expr_writer::write_new_line): New function
      	(s_expr_writer::write_any_indent): ditto
      	(s_expr_writer::begin_s_expr): ditto
      	(s_expr_writer::end_s_expr): ditto
      	(write_state_fileloc): convert to method of state_writer...
      	(state_writer:: write_state_fileloc): ...and use methods of
      	s_expr_writer to write indentation into the gtype.state output file
      	to visually represent the hierarchical structure of the list
      	structures
      	(write_state_fields): ditto, renaming to...
      	(state_writer::write_state_fields)
      	(write_state_a_string): ditto, renaming to...
      	(state_writer::write_state_a_string)
      	(write_state_string_option): ditto, renaming to...
      	(state_writer::write_state_string_option)
      	(write_state_type_option): ditto, renaming to...
      	(state_writer::write_state_type_option)
      	(write_state_nested_option): ditto, renaming to...
      	(state_writer::write_state_nested_option)
      	(write_state_option): ditto, renaming to...
      	(state_writer::write_state_option)
      	(write_state_options): ditto, renaming to...
      	(state_writer::write_state_options)
      	(write_state_lang_bitmap): ditto, renaming to...
      	(state_writer::write_state_lang_bitmap)
      	(write_state_version): ditto, renaming to...
      	(state_writer::write_state_version)
      	(write_state_scalar_type): ditto, renaming to...
      	(state_writer::write_state_scalar_type)
      	(write_state_string_type): ditto, renaming to...
      	(state_writer::write_state_string_type)
      	(write_state_undefined_type): ditto, renaming to...
      	(state_writer::write_state_undefined_type)
      	(write_state_struct_union_type): ditto, renaming to...
      	(state_writer::write_state_struct_union_type)
      	(write_state_struct_type): ditto, renaming to...
      	(state_writer::write_state_struct_type)
      	(write_state_user_struct_type): ditto, renaming to...
      	(state_writer::write_state_user_struct_type)
      	(write_state_lang_struct_type): ditto, renaming to...
      	(state_writer::write_state_lang_struct_type)
      	(write_state_param_struct_type): ditto, renaming to...
      	(state_writer::write_state_param_struct_type)
      	(write_state_pointer_type): ditto, renaming to...
      	(state_writer::write_state_pointer_type)
      	(write_state_array_type): ditto, renaming to...
      	(state_writer::write_state_array_type)
      	(write_state_gc_used): ditto, renaming to...
      	(state_writer::write_state_gc_used)
      	(write_state_common_type_content): ditto, renaming to...
      	(state_writer::write_state_common_type_content)
      	(write_state_type): ditto, renaming to...
      	(state_writer::write_state_type)
      	(write_state_pair_list): ditto, renaming to...
      	(state_writer::write_state_pair_list)
      	(write_state_pair): ditto, renaming to...
      	(state_writer::write_state_pair)
      	(write_state_typedefs): ditto, renaming to...
      	(state_writer::write_state_typedefs)
      	(write_state_structures): ditto, renaming to...
      	(state_writer::write_state_structures)
      	(write_state_param_structs): ditto, renaming to...
      	(state_writer::write_state_param_structs)
      	(write_state_variables): ditto, renaming to...
      	(state_writer::write_state_variables)
      	(write_state_srcdir): ditto, renaming to...
      	(state_writer::write_state_srcdir)
      	(write_state_files_list): ditto, renaming to...
      	(state_writer::write_state_files_list)
      	(write_state_languages): ditto, renaming to...
      	(state_writer::write_state_languages)
      	(write_state): create a state_writer instance and use it when
      	writing out the state file
      
      From-SVN: r199032
      David Malcolm committed
    • re PR rtl-optimization/57304 (Revision 198896 segfaults building cpu2000 benchmark 176.gcc) · 816a3f73
      	PR rtl-optimization/57304
      	* web.c (union_match_dups): Ensure that DF_REF_LOC exists before
      	accessing DF_REF_REAL_LOC.
      
      From-SVN: r199030
      Mike Stump committed
    • web.c (union_match_dups): Ensure that DF_REF_LOC exists before accessing DF_REF_REAL_LOC. · d6545f29
      	* web.c (union_match_dups): Ensure that DF_REF_LOC exists before
      	accessing DF_REF_REAL_LOC.
      
      From-SVN: r199029
      Mike Stump committed
    • MAINTAINERS (Write After Approval): Add myself. · 6db9ce91
      	* MAINTAINERS (Write After Approval): Add myself.
      
      From-SVN: r199022
      David Malcolm committed
    • re PR testsuite/57313 (gcc.dg/binop-xor3.c scan-tree-dump-times) · 0cf5320e
      2013-05-17  Marc Glisse  <marc.glisse@inria.fr>
      
      	PR testsuite/57313
      	* gcc.dg/binop-xor3.c: Restrict to platforms known to work (x86).
      
      From-SVN: r199020
      Marc Glisse committed