1. 08 Mar, 2019 14 commits
    • re PR ipa/80000 (diagnostics: trailing spaces in "one definition rule ") · 4ee494c0
      	PR ipa/80000
      	* ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
      	from diagnostics.  Formatting fixes.
      
      	PR target/85665
      	* ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
      	warn_odr diagnostics.
      
      From-SVN: r269488
      Jakub Jelinek committed
    • re PR other/80058 (fix double spaces in string literals everywhere) · 0d7bac69
      	PR other/80058
      	* lra-constraints.c (process_alt_operands): Avoid one space before
      	" at the end of line and another after " on another line in a string
      	literal.
      	* attribs.c (handle_dll_attribute): Likewise.
      	* config/avr/avr-devices.c (avr_texinfo): Likewise.
      cp/
      	* parser.c (cp_parser_template_declaration_after_parameters): Avoid
      	one space before " at the end of line and another after " on another
      	line in a string literal.
      fortran/
      	* arith.c (gfc_complex2complex): Avoid two spaces in the middle of
      	diagnostics.
      	* resolve.c (resolve_allocate_expr): Likewise.
      
      From-SVN: r269487
      Jakub Jelinek committed
    • gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap warning_at or… · 723a52f9
      gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap warning_at or inform messages in G_() if there is no ?:.
      
      	* gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
      	warning_at or inform messages in G_() if there is no ?:.
      
      From-SVN: r269486
      Jakub Jelinek committed
    • re PR tree-optimization/89550 (Spurious array-bounds warning when using… · 1db01ff9
      re PR tree-optimization/89550 (Spurious array-bounds warning when using __PRETTY_FUNCTION__ as a string_view)
      
      	PR tree-optimization/89550
      	* builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
      	returned true.  Formatting fixes.
      	(expand_builtin_strnlen): Formatting fixes.
      	* tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
      	if warning_at returned true.
      	* tree-cfg.c (pass_warn_function_return::execute): Likewise.
      c-family/
      	* c-common.c (c_common_truthvalue_conversion): Only set
      	TREE_NO_WARNING if warning_at returned true.
      	* c-warn.c (overflow_warning, warn_logical_operator): Likewise.
      c/
      	* c-decl.c (finish_function): Only set TREE_NO_WARNING if warning_at
      	returned true.
      	(c_write_global_declarations_1): Only set TREE_NO_WARNING if pedwarn
      	or warning returned true.
      cp/
      	* semantics.c (maybe_convert_cond): Only set TREE_NO_WARNING if
      	warning_at returned true.
      	* decl2.c (c_parse_final_cleanups): Likewise.
      	* typeck.c (convert_for_assignment): Likewise.
      	* decl.c (finish_function): Likewise.
      
      From-SVN: r269485
      Jakub Jelinek committed
    • re PR target/89578 (5% runtime regression for 481.wrf at -Ofast -flto) · 94ec37a9
      2019-03-08  Richard Biener  <rguenther@suse.de>
      
      	PR middle-end/89578
      	* cfgloop.h (struct loop): Add owned_clique field.
      	* cfgloopmanip.c (copy_loop_info): Copy it.
      	* tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
      	cliques.
      	* tree-inline.c (copy_loops): Remap owned_clique.
      	* lto-streamer-in.c (input_cfg): Stream owned_clique.
      	* lto-streamer-out.c (output_cfg): Likewise.
      
      From-SVN: r269484
      Richard Biener committed
    • re PR c++/89585 (GCC 8.3: asm volatile no longer accepted at file scope) · 5d1504d4
      	PR c++/89585
      	* parser.c (cp_parser_asm_definition): Just warn instead of error
      	on volatile qualifier outside of function body.
      
      	* g++.dg/asm-qual-3.C: Adjust expected diagnostics for toplevel
      	asm volatile.
      
      From-SVN: r269483
      Jakub Jelinek committed
    • re PR c++/89599 (C-style function-pointer-to-void* cast is handled inconsistently) · ed3ea9f2
      	PR c++/89599
      	* constexpr.c (potential_constant_expression_1): Reject
      	REINTERPRET_CAST_P NOP_EXPRs.
      
      	* g++.dg/ubsan/vptr-4.C: Adjust expected diagnostics.
      	* g++.dg/parse/array-size2.C: Likewise.
      	* g++.dg/cpp0x/constexpr-89599.C: New test.
      
      From-SVN: r269482
      Jakub Jelinek committed
    • re PR c++/89622 (G++ prints notes, but no warning or error) · 560a46a5
      	PR c++/89622
      	* call.c (joust): Call print_z_candidate only if pedwarn returned
      	true.
      
      	* g++.dg/warn/pr89622.C: New test.
      
      From-SVN: r269481
      Jakub Jelinek committed
    • re PR target/80190 (darwin: untranslateable placeholder "non-ASCII character") · 1d28bbdf
      	PR target/80190
      	* config/darwin.c: Include intl.h.
      	(darwin_build_constant_cfstring): Improve i18n of diagnostics by not
      	composing the message out of two separate parts.
      
      From-SVN: r269480
      Jakub Jelinek committed
    • re PR libstdc++/89477 (Incorrect CTAD deduction guides for set and multiset) · c0cb38c2
      2019-03-08  François Dumont  <fdumont@gcc.gnu.org>
      
      	PR libstdc++/89477
      	* include/debug/map.h (map): Use _RequireNotAllocator to constrain
      	parameters in deduction guides.
      	* include/debug/multimap.h (multimap): Likewise.
      	* include/debug/set.h (multimap): Likewise.
      	* include/debug/multiset.h (multimap): Likewise.
      	* include/debug/unordered_map (unordered_map): Likewise.
      	(unordered_multimap): Likewise.
      	* include/debug/unordered_set (unordered_set): Likewise.
      	(unordered_multiset): Likewise.
      
      From-SVN: r269479
      François Dumont committed
    • re PR libstdc++/89608 (Undetected iterator invalidations on unordered containers in debug mode) · 20a4550c
      2019-03-08  François Dumont  <fdumont@gcc.gnu.org>
      
      	PR libstdc++/89608
      	* include/debug/unordered_map (unordered_map<>::_M_check_rehashed):
      	Invalidate all iterators in case of rehash.
      	(unordered_multimap<>::_M_check_rehashed): Likewise.
      	* include/debug/unordered_set
      	(unordered_set<>::_M_check_rehashed): Likewise.
      	(unordered_multiset<>::_M_check_rehashed): Likewise.
      	* testsuite/23_containers/unordered_set/debug/89608_neg.cc: New.
      
      From-SVN: r269478
      François Dumont committed
    • PR c++/88123 - lambda and using-directive. · bddee796
      For named function calls in a template, the result of unqualified lookup is
      safed in CALL_EXPR_FN.  But for operator expressions, no unqualified lookup
      is performed until we know whether the operands have class type.  So when we
      see in a lambda a use of an operator that might be overloaded, we need to do
      that lookup then and save it away somewhere.  One possibility would be in
      the expression, but we can't really add extra conditional operands to
      standard tree codes.  I mostly implemented another approach using a new
      WITH_LOOKUP_EXPR code, but teaching everywhere how to handle a new tree code
      is always complicated.  Then it occurred to me that we could associate the
      lookups with the function, which is both simpler and smaller.  So this patch
      stores any operator bindings needed by a lambda function in an internal
      attribute on the lambda call operator.
      
      	* name-lookup.c (op_unqualified_lookup)
      	(maybe_save_operator_binding, discard_operator_bindings)
      	(push_operator_bindings): New.
      	* typeck.c (build_x_binary_op, build_x_unary_op): Call
      	maybe_save_operator_binding.
      	* decl.c (start_preparsed_function): Call push_operator_bindings.
      	* tree.c (cp_free_lang_data): Call discard_operator_bindings.
      
      From-SVN: r269477
      Jason Merrill committed
    • Daily bump. · 1ce59b6c
      From-SVN: r269476
      GCC Administrator committed
    • * sv.po: Update. · 479d3a60
      From-SVN: r269473
      Joseph Myers committed
  2. 07 Mar, 2019 22 commits
  3. 06 Mar, 2019 4 commits