1. 03 Aug, 2015 20 commits
  2. 02 Aug, 2015 7 commits
    • c.opt (-Wframe-address): New warning option. · 8423e57c
      gcc/ChangeLog
      2015-07-28  Martin Sebor  <msebor@redhat.com>
      
          * c-family/c.opt (-Wframe-address): New warning option.
          * doc/invoke.texi (Wframe-address): Document it.
          * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
          Clarify possible effects of calling the functions with non-zero
          arguments and mention -Wframe-address.
          * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
      
      gcc/testsuite/ChangeLog
      2015-07-28  Martin Sebor  <msebor@redhat.com>
      
          * g++.dg/Wframe-address-in-Wall.C: New test.
          * g++.dg/Wframe-address.C: New test.
          * g++.dg/Wno-frame-address.C: New test.
          * gcc.dg/Wframe-address-in-Wall.c: New test.
          * gcc.dg/Wframe-address.c: New test.
          * gcc.dg/Wno-frame-address.c: New test.
      
      From-SVN: r226480
      Martin Sebor committed
    • Improve -Wmisleading-indentation heuristics · 8ebca419
      gcc/c-family/ChangeLog:
      
      	* c-indentation.c (should_warn_for_misleading_indentation):
      	Improve heuristics.
      
      gcc/testsuite/ChangeLog:
      
      	* c-c++-common/Wmisleading-indentation.c: Add more tests.
      
      From-SVN: r226479
      Patrick Palka committed
    • Remove is_first_nonwhitespace_on_line(), instead improve get_visual_column() · 1a1e101f
      gcc/c-family/ChangeLog:
      
      	* c-indentation.c (get_visual_column): Add parameter first_nws,
      	use it.  Update comment documenting the function.
      	(is_first_nonwhitespace_on_line): Remove.
      	(should_warn_for_misleading_indentation): Replace usage of
      	of is_first_nonwhitespace_on_line with get_visual_column.
      
      From-SVN: r226478
      Patrick Palka committed
    • 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
    • arm.md (*arm_smin_cmp): New pattern. · fea8f6c6
      2015-08-01  Michael Collison  <michael.collison@linaro.org
      	    Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
      
      	* gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
      	(*arm_umin_cmp): Likewise.
      
      	* gcc.target/arm/mincmp.c: New test.
      
      From-SVN: r226476
      Michael Collison 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
    • Daily bump. · 68e3e6a2
      From-SVN: r226468
      GCC Administrator committed
  3. 01 Aug, 2015 3 commits
    • re PR fortran/67091 ([OOP] Bad result for type-bound procedures returning… · 28ed8364
      re PR fortran/67091 ([OOP] Bad result for type-bound procedures returning pointers to the intrinsic function ASSOCIATED)
      
      2015-08-01  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/67091
      	* trans-intrinsic.c (gfc_conv_associated): Add the pre and post
      	blocks for the second argument to se.
      
      2015-08-01  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/67091
      	* gfortran.dg/associated_target_6.f03: New test
      
      From-SVN: r226464
      Paul Thomas committed
    • Allow non-overflow ops in reductions · 805134b9
      2015-08-01  Tom de Vries  <tom@codesourcery.com>
      
      	* tree.c (operation_can_overflow, operation_no_trapping_overflow): New
      	function.
      	* tree.h (operation_can_overflow, operation_no_trapping_overflow):
      	Declare.
      	* tree-vect-loop.c (vect_is_simple_reduction_1): Use
      	operation_no_trapping_overflow.  Allow non-overflow operations.
      	* graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
      	operations.
      
      	* gcc.dg/autopar/reduc-2char.c (init_arrays): Mark with attribute
      	optimize ("-ftree-parallelize-loops=0").
      	Add successful scans for 2 detected reductions.	 Add xfail scans for 3
      	detected reductions.
      	* gcc.dg/autopar/reduc-2short.c: Same.
      	* gcc.dg/autopar/reduc-8.c (init_arrays): Mark with attribute
      	optimize ("-ftree-parallelize-loops=0").  Add successful scans for 2
      	detected reductions.
      	* gcc.dg/vect/trapv-vect-reduc-4.c: Update scan to match vectorized min
      	and max reductions.
      
      From-SVN: r226463
      Tom de Vries committed
    • Daily bump. · faf4ac32
      From-SVN: r226462
      GCC Administrator committed
  4. 31 Jul, 2015 10 commits