1. 09 May, 2015 4 commits
  2. 08 May, 2015 1 commit
  3. 07 May, 2015 2 commits
    • re PR c/65179 (Introduce new C warning: -Wshift-negative-value) · 0173bd2a
      	PR c/65179
      	* c-common.c (c_fully_fold_internal): Warn when left shifting a
      	negative value.
      	* c.opt (Wshift-negative-value): New option.
      	* c-opts.c (c_common_post_options): Set warn_shift_negative_value
      	when -Wextra and C99/C++11 mode.
      
      	* c-typeck.c (build_binary_op): Warn when left shifting a negative
      	value.
      
      	* typeck.c (cp_build_binary_op): Warn when left shifting a negative
      	value.
      
      	* doc/invoke.texi: Document -Wshift-negative-value.
      
      	* c-c++-common/Wshift-negative-value-1.c: New test.
      	* testsuite/c-c++-common/Wshift-negative-value-2.c: New test.
      	* testsuite/c-c++-common/Wshift-negative-value-3.c: New test.
      	* testsuite/c-c++-common/Wshift-negative-value-4.c: New test.
      	* testsuite/c-c++-common/Wshift-negative-value-5.c: New test.
      	* testsuite/c-c++-common/Wshift-negative-value-6.c: New test.
      	* testsuite/gcc.dg/c90-left-shift-1.c: New test.
      	* testsuite/gcc.dg/c99-const-expr-7.c: Add dg-error.
      	* testsuite/gcc.dg/c99-left-shift-1.c: New test.
      
      From-SVN: r222889
      Marek Polacek committed
    • DR 1467 PR c++/51747 · d5449acf
      	DR 1467
      	PR c++/51747
      	* typeck2.c (digest_init_r): Fix single element list.
      
      From-SVN: r222881
      Jason Merrill committed
  4. 06 May, 2015 6 commits
  5. 05 May, 2015 1 commit
    • Fix indentation issues seen by -Wmisleading-indentation · 21c0a521
      gcc/ChangeLog:
      	* auto-profile.c (afdo_find_equiv_class): Fix indentation so
      	that it reflects the block structure.
      	(afdo_propagate_edge): Likewise.
      	(afdo_calculate_branch_prob): Likewise.
      	(afdo_annotate_cfg): Likewise.
      	* cfgcleanup.c (equal_different_set_p): Likewise.
      	(try_crossjump_to_edge): Likewise.
      	* cgraph.c (cgraph_node::verify_node): Likewise.
      	* cgraphunit.c (expand_all_functions): Likewise.
      	* config/i386/i386.c (ix86_expand_copysign): Likewise.
      	(exact_dependency_1): Likewise.
      	* dwarf2asm.c (dw2_output_indirect_constants): Likewise.
      	* dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
      	* gensupport.c (process_define_subst): Likewise.
      	* lto-wrapper.c (merge_and_complain): Likewise.
      	* tree-if-conv.c (if_convertible_bb_p): Likewise.
      	* tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
      	* tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
      	* tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
      	* tree-vect-loop.c (vectorizable_reduction): Likewise.
      	* tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
      	* tree-vect-stmts.c (vectorizable_shift): Likewise.
      	* tree-vrp.c (vrp_finalize): Likewise.
      	* tree.c (variably_modified_type_p): Likewise.
      
      gcc/cp/ChangeLog:
      	* parser.c (cp_parser_asm_definition): Only test for
              error_mark_node if "outputs" was just set.
      	(cp_parser_asm_definition): Likewise for "inputs".
      
      gcc/fortran/ChangeLog:
      	* expr.c (check_inquiry): Fix indentation so that it reflects the
      	block structure.
      	* interface.c (compare_parameter): Likewise.
      	* parse.c (parse_oacc_structured_block): Likewise.
      	* target-memory.c (expr_to_char): Likewise.
      	* trans-types.c (gfc_init_kinds): Likewise.
      
      libcpp/ChangeLog:
      	* pch.c (cpp_valid_state): Fix indentation so that it reflects the
      	block structure.
      
      From-SVN: r222823
      David Malcolm committed
  6. 04 May, 2015 1 commit
    • re PR c++/66007 (Narrowing conversion inside { } results in all zero elements in… · f5322614
      re PR c++/66007 (Narrowing conversion inside { } results in all zero elements in C++11 mode with -Wno-error=narrowing)
      
      /cp
      2015-05-04  Paolo Carlini  <paolo.carlini@oracle.com>
      	    Jakub Jelinek  <jakub@redhat.com>
      
      	PR c++/66007
      	* typeck2.c (check_narrowing): Check by-hand that the pedwarn didn't
      	result in an actual error.
      
      /testsuite
      2015-05-04  Paolo Carlini  <paolo.carlini@oracle.com>
      	    Jakub Jelinek  <jakub@redhat.com>
      
      	PR c++/66007
      	* g++.dg/cpp0x/Wnarrowing4.C: New.
      
      Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
      
      From-SVN: r222778
      Paolo Carlini committed
  7. 01 May, 2015 1 commit
    • re PR c++/65858 (ICE in varpool_node::get_constructor during chromium build on… · 38920aec
      re PR c++/65858 (ICE in varpool_node::get_constructor during chromium build on arm-linux-gnueabihf with LTO during LINK chrome)
      
      /cp
      2015-05-01  Paolo Carlini  <paolo.carlini@oracle.com>
      	    Prathamesh Kulharni  <prathamesh.kulkarni@linaro.org>
      
      	PR c++/65858
      	* typeck2.c (check_narrowing): Set ok = true when pedwarn returns
      	false.
      
      /testsuite
      2015-05-01  Paolo Carlini  <paolo.carlini@oracle.com>
      	    Prathamesh Kulharni  <prathamesh.kulkarni@linaro.org>
      
      	PR c++/65858
      	* g++.dg/cpp0x/Wnarrowing4.C: New.
      
      Co-Authored-By: Prathamesh Kulharni <prathamesh.kulkarni@linaro.org>
      
      From-SVN: r222699
      Paolo Carlini committed
  8. 30 Apr, 2015 1 commit
    • Fix spurious semicolons · 6f3d1a5e
      gcc/ChangeLog:
      	* builtins.c (fold_builtin_1): Remove spurious second
      	semicolon.
      	* cgraph.h (symtab_node::get_availability): Likewise.
      	* opts.c (common_handle_option): Remove spurious second semicolon.
      	* tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
      	* tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
      
      gcc/cp/ChangeLog:
      	* cp-tree.h (ARGUMENT_PACK_SELECT_ARG): Remove spurious
      	trailing semicolon.
      
      gcc/fortran/ChangeLog:
      	* options.c (gfc_init_options): Remove spurious second
      	semicolon.
      	* trans-stmt.c (gfc_trans_allocate): Likewise.
      
      From-SVN: r222658
      David Malcolm committed
  9. 29 Apr, 2015 4 commits
    • re PR c++/50800 (Internal compiler error in finish_member_declarations, possibly… · 9f7fb685
      re PR c++/50800 (Internal compiler error in finish_member_declarations, possibly related to may_alias attribute)
      
      	PR c++/50800
      	* tree.c (apply_identity_attributes): Fix handling of classes.
      
      From-SVN: r222591
      Jason Merrill committed
    • Add OMP_STANDALONE_CLAUSES. · b811915d
      	gcc/
      	* tree.h (OMP_STANDALONE_CLAUSES): New macro.
      	* gimplify.c (gimplify_omp_workshare): Use it.
      	gcc/c/
      	* c-parser.c (c_parser_oacc_enter_exit_data): Use
      	OMP_STANDALONE_CLAUSES.
      	gcc/cp/
      	* parser.c (cp_parser_oacc_enter_exit_data): Use
      	OMP_STANDALONE_CLAUSES.
      
      From-SVN: r222580
      Thomas Schwinge committed
    • re PR c++/64667 (-Winit-self ignored for reference fields) · 0aa359c1
      /cp
      2015-04-29  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/64667
      	* init.c (perform_member_init): Handle references for -Winit-self.
      
      /testsuite
      2015-04-29  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/64667
      	* g++.dg/warn/Winit-self-3.C: New.
      
      From-SVN: r222577
      Paolo Carlini committed
    • Fix OpenMP's target update directive in templated code. · 2c8f0683
          FAIL: g++.dg/gomp/tpl-target-update.C  -std=c++98 (internal compiler error)
          FAIL: g++.dg/gomp/tpl-target-update.C  -std=c++98 (test for excess errors)
          FAIL: g++.dg/gomp/tpl-target-update.C  -std=c++11 (internal compiler error)
          FAIL: g++.dg/gomp/tpl-target-update.C  -std=c++11 (test for excess errors)
          FAIL: g++.dg/gomp/tpl-target-update.C  -std=c++14 (internal compiler error)
          FAIL: g++.dg/gomp/tpl-target-update.C  -std=c++14 (test for excess errors)
      
          [...]/source-gcc/gcc/testsuite/g++.dg/gomp/tpl-target-update.C: In instantiation of 'void f(T, T) [with T = int]':
          [...]/source-gcc/gcc/testsuite/g++.dg/gomp/tpl-target-update.C:19:9:   required from here
          [...]/source-gcc/gcc/testsuite/g++.dg/gomp/tpl-target-update.C:10:9: internal compiler error: tree check: expected oacc_parallel or oacc_kernels or oacc_data or oacc_host_data or omp_parallel or omp_task or omp_for or omp_simd or cilk_simd or cilk_for or omp_distribute or oacc_loop or omp_teams or omp_target_data or omp_target or omp_sections or omp_single, have omp_target_update in tsubst_expr, at cp/pt.c:14209
          0xf5aae1 tree_range_check_failed(tree_node const*, char const*, int, char const*, tree_code, tree_code)
                  [...]/source-gcc/gcc/tree.c:9384
          0x66e201 tree_range_check
                  [...]/source-gcc/gcc/tree.h:2979
          0x66e201 tsubst_expr
                  [...]/source-gcc/gcc/cp/pt.c:14209
          0x6695e3 tsubst_expr
                  [...]/source-gcc/gcc/cp/pt.c:13752
          0x66ac07 tsubst_expr
                  [...]/source-gcc/gcc/cp/pt.c:13938
          0x667c41 instantiate_decl(tree_node*, int, bool)
                  [...]/source-gcc/gcc/cp/pt.c:20367
          0x6ae386 instantiate_pending_templates(int)
                  [...]/source-gcc/gcc/cp/pt.c:20484
          0x6edc3d cp_write_global_declarations()
                  [...]/source-gcc/gcc/cp/decl2.c:4456
      
      	gcc/cp/
      	* pt.c (tsubst_expr) <OMP_TARGET_UPDATE>: Use
      	OMP_TARGET_UPDATE_CLAUSES instead of OMP_CLAUSES.
      	gcc/testsuite/
      	* g++.dg/gomp/tpl-target-update.C: New file.
      
      From-SVN: r222564
      Thomas Schwinge committed
  10. 28 Apr, 2015 5 commits
  11. 27 Apr, 2015 1 commit
    • Makefile-lan.in (ada.mostlyclean): Remove gnatbind and gnat1. · 46bf0b0a
      ada/
      * gcc-interface/Makefile-lan.in (ada.mostlyclean): Remove gnatbind
      and gnat1.
      cp/
      * Make-lang.in (c++.mostlyclean): Remove xg++, g++-cross, and cc1plus.
      fortran/
      * Make-lang.in (fortran.mostlyclean): Remove gfortran and
      gfortran-cross.
      go/
      * Make-lang.in (go.mostlyclean): Remove gccgo, gccgo-cross, and go1.
      jit/
      * Make-lang.in (jit.mostlyclean): Remove shared libraries and object
      files.
      objc/
      * Make-lang.in (objc.mostlyclean): Remove cc1obj.
      objcp/
      * Make-lang.in (obj-c++.mostlyclean): Remove cc1objplus.
      
      From-SVN: r222492
      Jim Wilson committed
  12. 24 Apr, 2015 2 commits
  13. 23 Apr, 2015 3 commits
    • Revert:PR c++/50800 · bb7ec730
      Revert:PR c++/50800
             * tree.c (strip_typedefs): Add remove_attributes parm.
             (strip_typedefs_expr): Likewise.
             (apply_identity_attributes): New subroutine of strip_typedefs.
             * pt.c (canonicalize_type_argument): Let strip_typedefs handle attrs.
             (convert_nontype_argument, unify): Likewise.
             * cp-tree.h: Adjust.
      
      From-SVN: r222384
      Jason Merrill committed
    • re PR c++/50800 (Internal compiler error in finish_member_declarations, possibly… · b88fa265
      re PR c++/50800 (Internal compiler error in finish_member_declarations, possibly related to may_alias attribute)
      
      	PR c++/50800
      	* tree.c (strip_typedefs): Add remove_attributes parm.
      	(strip_typedefs_expr): Likewise.
      	(apply_identity_attributes): New subroutine of strip_typedefs.
      	* pt.c (canonicalize_type_argument): Let strip_typedefs handle attrs.
      	(convert_nontype_argument, unify): Likewise.
      	* cp-tree.h: Adjust.
      
      From-SVN: r222377
      Jason Merrill committed
    • re PR c++/65646 (ICE in invalid syntax) · 6c283621
      	PR c++/65646
      	* pt.c (check_explicit_specialization): Don't
      	SET_DECL_TEMPLATE_SPECIALIZATION for a variable with no template
      	headers.
      	* decl.c (grokvardecl): Revert earlier fix.
      
      From-SVN: r222376
      Jason Merrill committed
  14. 20 Apr, 2015 3 commits
  15. 16 Apr, 2015 2 commits
    • class.c (resolve_address_of_overloaded_function, [...]): Rename tsubst_flags_t… · 988db853
      class.c (resolve_address_of_overloaded_function, [...]): Rename tsubst_flags_t parameter flags -> complain.
      
      2015-04-16  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* class.c (resolve_address_of_overloaded_function, instantiate_type):
      	Rename tsubst_flags_t parameter flags -> complain.
      
      From-SVN: r222159
      Paolo Carlini committed
    • call.c (build_op_delete_call, [...]): Check mark_used return value. · 9f635aba
      2015-04-16  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* call.c (build_op_delete_call, build_over_call): Check mark_used
      	return value.
      	* class.c (resolve_address_of_overloaded_function): Likewise.
      	* decl.c (cxx_maybe_build_cleanup): Likewise.
      	* pt.c (gen_elem_of_pack_expansion_instantiation, tsubst_baselink,
      	tsubst_qualified_id, tsubst_copy, tsubst_copy_and_build): Likewise.
      	* rtti.c (build_dynamic_cast_1): Likewise.
      	* semantics.c (process_outer_var_ref): Likewise.
      	* typeck.c (build_class_member_access_expr,
      	cp_build_function_call_vec, cp_build_addr_expr_1): Likewise.
      
      From-SVN: r222150
      Paolo Carlini committed
  16. 15 Apr, 2015 3 commits