1. 06 Aug, 2015 4 commits
  2. 05 Aug, 2015 2 commits
  3. 04 Aug, 2015 2 commits
  4. 02 Aug, 2015 2 commits
    • Refactor entry point to -Wmisleading-indentation · 992118a1
      gcc/c-family/ChangeLog:
      
      	* c-indentation.h (struct token_indent_info): Define.
      	(get_token_indent_info): Define.
      	(warn_for_misleading_information): Declare.
      	* c-common.h (warn_for_misleading_information): Remove.
      	* c-identation.c (warn_for_misleading_indentation):
      	Change declaration to take three token_indent_infos.  Adjust
      	accordingly.
      	* c-identation.c (should_warn_for_misleading_indentation):
      	Likewise.  Bail out early if the body is a compound statement.
      	(guard_tinfo_to_string): Define.
      
      gcc/c/ChangeLog:
      
      	* c-parser.c (c_parser_if_body): Take token_indent_info
      	argument. Call warn_for_misleading_indentation even when the
      	body is a semicolon.  Extract token_indent_infos corresponding
      	to the guard, body and next tokens.  Adjust call to
      	warn_for_misleading_indentation accordingly.
      	(c_parser_else_body): Likewise.
      	(c_parser_if_statement): Likewise.
      	(c_parser_while_statement): Likewise.
      	(c_parser_for_statement): Likewise.
      
      gcc/cp/ChangeLog:
      
      	* parser.c (cp_parser_selection_statement): Move handling of
      	semicolon body to ...
      	(cp_parser_implicitly_scoped_statement): .. here.  Call
      	warn_for_misleading_indentation even when the body is a
      	semicolon.  Extract token_indent_infos corresponding to the
      	guard, body and next tokens.  Adjust call to
      	warn_for_misleading_indentation accordingly.  Take
      	token_indent_info argument.
      	(cp_parser_already_scoped_statement): Likewise.
      	(cp_parser_selection_statement, cp_parser_iteration_statement):
      	Extract a token_indent_info corresponding to the guard token.
      
      From-SVN: r226477
      Patrick Palka committed
    • re PR bootstrap/66521 (xgcc: cc1plus segfaults when compiling… · b0cca5ec
      re PR bootstrap/66521 (xgcc: cc1plus segfaults when compiling libstdc++-v3/src/c++11/ostream-inst.cc)
      
      Fix PR 66521
      
      libvtv/ChangeLog
      
      2015-08-01  Caroline Tice  <cmtice@google.com>
      
              PR 66521
              * Makefile.am: Update to match latest tree.
              * Makefile.in: Regenerate.
              * testsuite/lib/libvtv: Brought up to date.
              * vtv_malloc.cc (VTV_DEBUG): Update function call to match renamed
              function (old bug!).
              * vtv_rts.cc (debug_functions, debug_init, debug_verify_vtable): Update
              initializations to work correctly with VTV_DEBUG defined.
      
      gcc/ChangeLog:
      
      2015-08-01  Caroline Tice  <cmtice@google.com>
      
              PR 66521
              * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
              global variables.
              (vtbl_find_mangled_name):  New function.
              (vtbl_register_mangled_name):  New function.
              (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
              mangled name in mangled name vectors.
              (find_or_create_vtbl_map_node):  Ditto.
              (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
              update recursion_depth on function entry; pass it to every recursive
              call; automatically exit if depth > 25 (give up looking at that point).
              (verify_bb_vtables):  Initialize recursion_depth and pass it to
              var_is_used_for_virtual_call_p.
              * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
              global variable decls.
              (vtbl_register_mangled_name): New extern function decl.
      
      gcc/cp/ChangeLog:
      2015-08-01  Caroline Tice  <cmtice@google.com>
      
              PR 66521
              * mangle.c : Add vtable-verify.h to include files.
              (get_mangled_vtable_map_var_name):  If the DECL_ASSEMBLER_NAME
              is "<anon>" get the real mangled name for the class instead, and
              also store the real mangled name in a vector for use later.
      
      From-SVN: r226471
      Caroline Tice committed
  5. 31 Jul, 2015 1 commit
  6. 30 Jul, 2015 2 commits
    • class.c (check_for_override): Use DECL_SOURCE_LOCATION and "%qD" in warning_at… · 15827d12
      class.c (check_for_override): Use DECL_SOURCE_LOCATION and "%qD" in warning_at instead of "%q+D" in warning.
      
      2015-07-30  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* class.c (check_for_override): Use DECL_SOURCE_LOCATION and "%qD"
      	in warning_at instead of "%q+D" in warning.
      	(warn_hidden): Likewise but use location_of.
      	(finish_struct_anon_r): Likewise use DECL_SOURCE_LOCATION in permerror.
      	(check_bitfield_decl, check_field_decls): Likewise in warning_at.
      	(check_field_decls): Likewise for permerror.
      	(explain_non_literal_class): Likewise for inform.
      	(check_bases_and_members, layout_class_type): Likewise for warning_at.
      	(note_name_declared_in_class): Use location_of in permerror.
      	* name-lookup.c (diagnose_name_conflict): Use location_of in inform.
      	(pushdecl_maybe_friend_1): Use DECL_SOURCE_LOCATION in pedwarn,
      	inform, and warning_at.
      	(check_for_out_of_scope_variable): Likewise for warning_at and
      	permerror.
      
      From-SVN: r226394
      Paolo Carlini committed
    • DR 1558 PR c++/67021 · 4fdfdd4f
      	DR 1558
      	PR c++/67021
      	* pt.c (tsubst_decl) [TYPE_DECL]: Clear TYPE_DEPENDENT_P_VALID.
      
      From-SVN: r226381
      Jason Merrill committed
  7. 28 Jul, 2015 1 commit
    • call.c (build_op_delete_call, [...]): Use Use DECL_SOURCE_LOCATION and "%qD" in… · 4b1cbcee
      call.c (build_op_delete_call, [...]): Use Use DECL_SOURCE_LOCATION and "%qD" in inform and pedwarn instead of "%q+D".
      
      2015-07-28  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* call.c (build_op_delete_call, convert_like_real, build_over_call):
      	Use Use DECL_SOURCE_LOCATION and "%qD" in inform and pedwarn instead
      	of "%q+D".
      	* constexpr.c (explain_invalid_constexpr_fn): Likewise.
      	* decl.c (duplicate_decls): Likewise for warning/warning_at.
      	* except.c (maybe_noexcept_warning): Likewise.
      	* friend.c (make_friend_class): Likewise for inform.
      	* mangle.c (mangle_decl): Likewise for warning/warning_at.
      	* method.c (process_subob_fn, walk_field_subobs,
      	maybe_explain_implicit_delete): Likewise for inform.
      	* parser.c (cp_parser_lambda_introducer): Likewise.
      	* pt.c (check_specialization_namespace,
      	maybe_process_partial_specialization): Likewise for permerror.
      	(redeclare_class_template): Likewise for inform_n.
      	(coerce_template_parms, tsubst_copy_and_build): Likewise for inform.
      	* search.c (check_final_overrider): Likewise.
      	* semantics.c (process_outer_var_ref): Likewise.
      
      From-SVN: r226308
      Paolo Carlini committed
  8. 27 Jul, 2015 2 commits
  9. 26 Jul, 2015 2 commits
    • Fix PR c++/18969 (invalid return statement diagnosed too late) · 11f2c78a
      gcc/cp/ChangeLog:
      
      	PR c++/18969
      	* typeck.c (check_return_expr): Also do the basic return-value
      	validity checking if processing_template_decl and yet types are
      	not dependent.  Remove obsolete code.
      
      gcc/testsuite/ChangeLog:
      
      	PR c++/18969
      	* g++.dg/template/pr18969.C: New test.
      	* g++.dg/template/pr18969-2.C: New test.
      	* g++.old-deja/g++.jason/overload.C: Remove return value in
      	template function returning void.
      
      From-SVN: r226236
      Patrick Palka committed
    • decl.c (poplevel): Use Use DECL_SOURCE_LOCATION and "%qD" in warning_at instead… · af718670
      decl.c (poplevel): Use Use DECL_SOURCE_LOCATION and "%qD" in warning_at instead of "%q+D" in warning.
      
      2015-07-26  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* decl.c (poplevel): Use Use DECL_SOURCE_LOCATION and "%qD"
      	in warning_at instead of "%q+D" in warning.
      	(warn_extern_redeclared_static): Likewise for inform.
      	(check_redeclaration_no_default_args): Likewise for permerror.
      	(duplicate_decls): Likewise.
      	(check_previous_goto_1): Likewise for inform.
      	(check_goto, start_decl, check_for_uninitialized_const_var,
      	start_preparsed_function, finish_function§): Likewise.
      	* decl2.c (build_anon_union_vars, c_parse_final_cleanups): Likewise.
      	* init.c (sort_mem_initializers): Likewise.
      	* typeck.c (convert_for_initialization): Likewise for inform.
      	(maybe_warn_about_returning_address_of_local): Likewise.
      	* typeck2.c (abstract_virtuals_error_sfinae): Likewise for inform.
      	(cxx_incomplete_type_diagnostic): Likewise for emit_diagnostic.
      
      From-SVN: r226234
      Paolo Carlini committed
  10. 25 Jul, 2015 3 commits
  11. 24 Jul, 2015 1 commit
  12. 23 Jul, 2015 2 commits
  13. 21 Jul, 2015 1 commit
  14. 20 Jul, 2015 1 commit
    • re PR c++/55095 (Wshift-overflow) · 451b5e48
      	PR c++/55095
      	* c-common.c (c_fully_fold_internal): Warn about left shift overflows.
      	Use EXPR_LOC_OR_LOC.
      	(maybe_warn_shift_overflow): New function.
      	* c-common.h (maybe_warn_shift_overflow): Declare.
      	* c-opts.c (c_common_post_options): Set warn_shift_overflow.
      	* c.opt (Wshift-overflow): New option.
      
      	* c-typeck.c (digest_init): Pass OPT_Wpedantic to pedwarn_init.
      	(build_binary_op): Warn about left shift overflows.
      
      	* typeck.c (cp_build_binary_op): Warn about left shift overflows.
      
      	* doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
      
      	* c-c++-common/Wshift-overflow-1.c: New test.
      	* c-c++-common/Wshift-overflow-2.c: New test.
      	* c-c++-common/Wshift-overflow-3.c: New test.
      	* c-c++-common/Wshift-overflow-4.c: New test.
      	* c-c++-common/Wshift-overflow-5.c: New test.
      	* g++.dg/cpp1y/left-shift-1.C: New test.
      	* gcc.dg/c90-left-shift-2.c: New test.
      	* gcc.dg/c90-left-shift-3.c: New test.
      	* gcc.dg/c99-left-shift-2.c: New test.
      	* gcc.dg/c99-left-shift-3.c: New test.
      	* gcc.dg/pr40501.c: Use -Wno-shift-overflow.
      	* gcc.c-torture/execute/pr40386.c: Likewise.
      	* gcc.dg/vect/pr33373.c: Likewise.
      	* gcc.dg/vect/vect-shift-2-big-array.c: Likewise.
      	* gcc.dg/vect/vect-shift-2.c: Likewise.
      
      Co-Authored-By: Richard Sandiford <richard.sandiford@arm.com>
      
      From-SVN: r225998
      Marek Polacek committed
  15. 15 Jul, 2015 2 commits
  16. 14 Jul, 2015 3 commits
  17. 13 Jul, 2015 2 commits
  18. 10 Jul, 2015 6 commits
  19. 09 Jul, 2015 1 commit