- 09 May, 2015 4 commits
-
-
PR bootstrap/66085 * decl2.c (note_mangling_alias): Declare arguments as unused. From-SVN: r222969
Aldy Hernandez committed -
gcc/c-family/ * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat. * c-opts.c: Adjust. gcc/cp/ * cp-gimplify.c, parser.c: Adjust. From-SVN: r222962
Jason Merrill committed -
* decl2.c (mangling_aliases): New variable. (note_mangling_alias, generate_mangling_aliases): New. (cp_write_global_declarations): Call generate_mangling_aliases. (generate_mangling_alias): Split out from... * mangle.c (mangle_decl): ...here. * cp-tree.h: Declare note_mangling_alias. From-SVN: r222934
Jason Merrill committed -
* decl2.c (collect_candidates_for_java_method_aliases): Remove. (build_java_method_aliases): Adapt to use create_same_body_alias instead of assemble_alias. Move variable declarations to definition and tidy up. (cp_write_global_declarations): Call build_java_method_aliases instead of collecting candidates first. From-SVN: r222933
Aldy Hernandez committed
-
- 08 May, 2015 1 commit
-
-
PR c++/59012 * parser.c (cp_parser_std_attribute_list): Handle attribute expansion. (cp_parser_std_attribute_spec): Handle alignas pack expansion. * decl2.c (is_late_template_attribute): An attribute exp is dependent. * pt.c (make_pack_expansion): Allow TREE_LIST for attribute expansion. (apply_late_template_attributes): Handle attribute pack expansion. From-SVN: r222902
Jason Merrill committed
-
- 07 May, 2015 2 commits
-
-
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 * typeck2.c (digest_init_r): Fix single element list. From-SVN: r222881
Jason Merrill committed
-
- 06 May, 2015 6 commits
-
-
gcc/c-family/ * c.opt (Wterminate): New. gcc/cp/ * cp-gimplify.c (cp_genericize_r): Track TRY_BLOCK and MUST_NOT_THROW_EXPR, warn about a THROW_EXPR directly within a MUST_NOT_THROW_EXPR. (cp_genericize_data): Add try_block field. (cp_genericize_tree): Initialize it. * except.c (expand_end_catch_block): Set TREE_NO_WARNING on implicit rethrow. From-SVN: r222842
Jason Merrill committed -
* constexpr.c (potential_constant_expression_1) [AT_ENCODE_EXPR]: Return false. From-SVN: r222841
Jason Merrill committed -
Fix g++.dg/torture/Wsizeof-pointer-memaccess2.C with -std=c++11 * semantics.c (finish_call_expr): Check complain. From-SVN: r222840
Jason Merrill committed -
gcc/ * dwarf2out.c (gen_member_die): Don't emit anything for an anonymous class constructor. gcc/cp/ * decl2.c (reset_type_linkage_2): Update the DECL_NAME of a maybe-in-charge constructor. From-SVN: r222839
Jason Merrill committed -
* decl.c (start_decl): Don't push the plain VAR_DECL for a variable template. From-SVN: r222837
Jason Merrill committed -
DR 1518 DR 1630 PR c++/54835 PR c++/60417 * call.c (convert_like_real): Check value-initialization before explicit. * typeck2.c (process_init_constructor_record): Don't set CONSTRUCTOR_IS_DIRECT_INIT. (process_init_constructor_array): Likewise. * init.c (build_vec_init): Likewise. From-SVN: r222836
Jason Merrill committed
-
- 05 May, 2015 1 commit
-
-
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
-
- 04 May, 2015 1 commit
-
-
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
-
- 01 May, 2015 1 commit
-
-
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
-
- 30 Apr, 2015 1 commit
-
-
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
-
- 29 Apr, 2015 4 commits
-
-
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 -
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 -
/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 -
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
-
- 28 Apr, 2015 5 commits
-
-
re PR c++/65896 (Erroneous uninitialized variable access error in constexpr function with temporary variables) PR c++/65896 * constexpr.c (cxx_eval_store_expression): Don't try to actually store an empty class. From-SVN: r222549
Jason Merrill committed -
PR c++/65656 * constexpr.c (cxx_eval_builtin_function_call): Fix __builtin_constant_p. From-SVN: r222531
Jason Merrill committed -
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: r222530
Jason Merrill committed -
PR c++/65734 gcc/ * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT. (finalize_type_size): Respect TYPE_USER_ALIGN. (layout_type) [ARRAY_TYPE]: Likewise. gcc/cp/ * class.c (fixup_attribute_variants): Respect TYPE_USER_ALIGN. From-SVN: r222529
Jason Merrill committed -
gcc/ChangeLog: 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition to false. * dwarf2out.c (field_byte_offset): REmove check if PCC_BITFIELD_TYPE_MATTERS is defined. * stor-layout.c (layout_decl): Likewise. (update_alignment_for_field): Likewise. (place_field): Likewise. gcc/cp/ChangeLog: 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> * class.c (layout_class_type): Remove check if PCC_BITFIELD_TYPE_MATTERS is defined. From-SVN: r222503
Trevor Saunders committed
-
- 27 Apr, 2015 1 commit
-
-
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
-
- 24 Apr, 2015 2 commits
-
-
re PR c++/50800 (Internal compiler error in finish_member_declarations, possibly related to may_alias attribute) PR c++/50800 gcc/ * tree.c (build_reference_type_for_mode): Don't pass can_alias_all down when building TYPE_CANONICAL. (build_pointer_type_for_mode): Likewise. gcc/cp/ * typeck.c (structural_comptypes): Don't check TYPE_REF_CAN_ALIAS_ALL. From-SVN: r222419
Jason Merrill committed -
* constexpr.c (potential_constant_expression_1) [MINUS_EXPR]: Remove obsolete code. [NE_EXPR]: Likewise. From-SVN: r222414
Jason Merrill committed
-
- 23 Apr, 2015 3 commits
-
-
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 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 -
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
-
- 20 Apr, 2015 3 commits
-
-
/cp 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com> PR c++/65801 * typeck2.c (check_narrowing): In C++11 mode too, -Wno-narrowing suppresses the diagnostic. 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com> PR c++/65801 * doc/invoke.texi ([-Wnarrowing]): Update. /testsuite 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com> PR c++/65801 * g++.dg/cpp0x/Wnarrowing2.C: New. From-SVN: r222249
Paolo Carlini committed -
* decl.c (grokdeclarator): Reject trailing return types for all conversion operators, don't handle conversion operators in the previous checks that deal with auto. From-SVN: r222248
Ville Voutilainen committed -
gcc/c/ * c-parser.c (c_parser_oacc_enter_exit_data): Remove excess semicolon. (c_parser_omp_target_update): Add missed %> to error_at (). gcc/cp/ * parser.c (cp_parser_omp_target_update): Add missed %> to error_at (). From-SVN: r222237
Ilya Verbin committed
-
- 16 Apr, 2015 2 commits
-
-
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 -
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
-
- 15 Apr, 2015 3 commits
-
-
* constexpr.c (cxx_eval_store_expression): Ignore clobbers. (build_constexpr_constructor_member_initializers): Loop to find the BIND_EXPR. * decl.c (start_preparsed_function): Clobber the object at the beginning of a constructor. From-SVN: r222135
Jason Merrill committed -
* decl.c (grokmethod): Only set DECL_COMDAT if TREE_PUBLIC is set. * method.c (implicitly_declare_fn): Likewise. * decl2.c (vague_linkage_p): Check TREE_PUBLIC first. From-SVN: r222134
Jason Merrill committed -
From-SVN: r222133
Jason Merrill committed
-