mirror of
https://gcc.gnu.org/git/gcc.git
synced 2026-02-21 19:35:28 -05:00
Daily bump.
This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
2025-08-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
|
||||
|
||||
* fixincl.x: Regenerate.
|
||||
* inclhack.def (stdio_va_list): Skip on recent darwin.
|
||||
|
||||
2025-08-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
|
||||
|
||||
* fixincl.x: Regenerate.
|
||||
* inclhack.def (stdio_stdarg_h): Skip on darwin.
|
||||
|
||||
2024-07-11 Iain Sandoe <iain@sandoe.co.uk>
|
||||
|
||||
Revert:
|
||||
|
||||
100
gcc/ChangeLog
100
gcc/ChangeLog
@@ -1,3 +1,103 @@
|
||||
2025-08-15 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* doc/extend.texi (Type Traits): Document
|
||||
__builtin_structured_binding_size.
|
||||
|
||||
2025-08-15 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR c++/121552
|
||||
* doc/invoke.texi (-Wno-non-c-typedef-for-linkage): Document.
|
||||
|
||||
2025-08-15 Robert Dubner <rdubner@symas.com>
|
||||
|
||||
* real.cc (real_to_decimal_for_mode): Set str[0] to known value.
|
||||
|
||||
2025-08-15 Vineet Gupta <vineetg@rivosinc.com>
|
||||
|
||||
PR target/121534
|
||||
* config/riscv/riscv.md (round_pattern): save/restore fflags.
|
||||
|
||||
2025-08-15 Qing Zhao <qing.zhao@oracle.com>
|
||||
|
||||
* doc/extend.texi: Extend counted_by attribute to pointer fields in
|
||||
structures. Add one more requirement to pointers with counted_by
|
||||
attribute.
|
||||
|
||||
2025-08-15 Umesh Kalappa <ukalappa.mips@gmail.com>
|
||||
|
||||
* config/riscv/riscv-ext-mips.def (DEFINE_RISCV_EXT):
|
||||
Added mips prefetch extension.
|
||||
* config/riscv/riscv-ext.opt: Generated file.
|
||||
* config/riscv/riscv.md (prefetch):
|
||||
Added mips prefetch address operand constraint.
|
||||
* config/riscv/constraints.md: Added mips specific constraint.
|
||||
* config/riscv/predicates.md (prefetch_operand):
|
||||
Updated for mips nine bits offset.
|
||||
* config/riscv/riscv.cc (riscv_prefetch_offset_address_p):
|
||||
Legitimate address with offset for prefetch check.
|
||||
* config/riscv/riscv-protos.h: Likewise.
|
||||
* config/riscv/riscv.h:
|
||||
Macros to support for mips cached type.
|
||||
* doc/riscv-ext.texi: Updated for mips prefetch.
|
||||
|
||||
2025-08-15 Richard Sandiford <richard.sandiford@arm.com>
|
||||
|
||||
* config/riscv/riscv-protos.h
|
||||
(riscv_process_target_version_attr): Change location_t argument
|
||||
to location_t *.
|
||||
* config/riscv/riscv-subset.h
|
||||
(riscv_subset_list::riscv_subset_list): Change location_t argument
|
||||
to location_t *.
|
||||
(riscv_subset_list::parse): Likwise.
|
||||
(riscv_subset_list::set_loc): Likewise.
|
||||
(riscv_minimal_hwprobe_feature_bits): Likewise.
|
||||
(riscv_subset_list::m_loc): Change type to location_t.
|
||||
* common/config/riscv/riscv-common.cc
|
||||
(riscv_subset_list::riscv_subset_list): Change location_t argument
|
||||
to location_t *.
|
||||
(riscv_subset_list::add): Suppress diagnostics when m_loc is null.
|
||||
(riscv_subset_list::parsing_subset_version): Likewise.
|
||||
(riscv_subset_list::parse_profiles): Likewise.
|
||||
(riscv_subset_list::parse_base_ext): Likewise.
|
||||
(riscv_subset_list::parse_single_std_ext): Likewise.
|
||||
(riscv_subset_list::check_conflict_ext): Likewise.
|
||||
(riscv_subset_list::parse_single_multiletter_ext): Likewise.
|
||||
(riscv_subset_list::parse): Change location_t argument to location_t *.
|
||||
(riscv_subset_list::set_loc): Likewise.
|
||||
(riscv_minimal_hwprobe_feature_bits): Likewise.
|
||||
(riscv_parse_arch_string): Update call accordingly.
|
||||
* config/riscv/riscv-target-attr.cc
|
||||
(riscv_target_attr_parser::m_loc): Change type to location_t *.
|
||||
(riscv_target_attr_parser::riscv_target_attr_parser): Change
|
||||
location_t argument to location_t *.
|
||||
(riscv_process_one_target_attr): Likewise.
|
||||
(riscv_process_target_attr): Likewise.
|
||||
(riscv_process_target_version_attr): Likewise.
|
||||
(riscv_target_attr_parser::parse_arch): Suppress diagnostics when
|
||||
m_loc is null.
|
||||
(riscv_target_attr_parser::handle_arch): Likewise.
|
||||
(riscv_target_attr_parser::handle_cpu): Likewise.
|
||||
(riscv_target_attr_parser::handle_tune): Likewise.
|
||||
(riscv_target_attr_parser::handle_priority): Likewise.
|
||||
(riscv_option_valid_attribute_p): Update call accordingly.
|
||||
(riscv_option_valid_version_attribute_p): Likewise.
|
||||
* config/riscv/riscv.cc (parse_features_for_version): Add a
|
||||
location_t * argument.
|
||||
(dispatch_function_versions): Update call accordingly.
|
||||
(riscv_compare_version_priority): Likewise, suppressing diagnostics.
|
||||
|
||||
2025-08-15 Kito Cheng <kito.cheng@sifive.com>
|
||||
|
||||
* tree-nrv.cc (pass_return_slot::execute): Use
|
||||
gimple_call_fntype instead of gimple_call_fndecl.
|
||||
|
||||
2025-08-15 Lulu Cheng <chenglulu@loongson.cn>
|
||||
|
||||
PR target/121542
|
||||
* config/loongarch/loongarch.cc
|
||||
(loongarch_vector_costs::add_stmt_cost): When using vectype,
|
||||
first determine whether it is NULL.
|
||||
|
||||
2025-08-14 Jeff Law <jlaw@ventanamicro.com>
|
||||
|
||||
PR target/119275
|
||||
|
||||
@@ -1 +1 @@
|
||||
20250815
|
||||
20250816
|
||||
|
||||
@@ -1,3 +1,40 @@
|
||||
2025-08-15 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR c++/121552
|
||||
* c.opt (Wnon-c-typedef-for-linkage): New option.
|
||||
* c.opt.urls: Regenerate.
|
||||
|
||||
2025-08-15 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR preprocessor/120778
|
||||
PR target/121520
|
||||
* c-cppbuiltin.cc (c_cpp_builtins): Implement C++26 DR 2581. Add
|
||||
cpp_define_warn lambda and use it as well as cpp_warn where needed.
|
||||
In the if (c_dialect_cxx ()) block with __cpp_* predefinitions add
|
||||
cpp_define lambda. Formatting fixes.
|
||||
|
||||
2025-08-15 Qing Zhao <qing.zhao@oracle.com>
|
||||
|
||||
* c-gimplify.cc (is_address_with_access_with_size): New function.
|
||||
(ubsan_walk_array_refs_r): Instrument an INDIRECT_REF whose base
|
||||
address is .ACCESS_WITH_SIZE or an address computation whose base
|
||||
address is .ACCESS_WITH_SIZE.
|
||||
* c-ubsan.cc (ubsan_instrument_bounds_pointer_address): New function.
|
||||
(struct factor_t): New structure.
|
||||
(get_factors_from_mul_expr): New function.
|
||||
(get_index_from_offset): New function.
|
||||
(get_index_from_pointer_addr_expr): New function.
|
||||
(is_instrumentable_pointer_array_address): New function.
|
||||
(ubsan_array_ref_instrumented_p): Change prototype.
|
||||
Handle MEM_REF in addtional to ARRAY_REF.
|
||||
(ubsan_maybe_instrument_array_ref): Handle MEM_REF in addtional
|
||||
to ARRAY_REF.
|
||||
|
||||
2025-08-15 Qing Zhao <qing.zhao@oracle.com>
|
||||
|
||||
* c-attribs.cc (handle_counted_by_attribute): Accept counted_by
|
||||
attribute for pointer fields.
|
||||
|
||||
2025-08-13 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR c++/120776
|
||||
|
||||
@@ -1,3 +1,49 @@
|
||||
2025-08-15 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR preprocessor/120778
|
||||
PR target/121520
|
||||
* c-decl.cc (c_init_decl_processing): Use cpp_warn instead of
|
||||
cpp_lookup and NODE_WARN bit setting.
|
||||
|
||||
2025-08-15 Qing Zhao <qing.zhao@oracle.com>
|
||||
|
||||
* c-tree.h (handle_counted_by_for_component_ref): New prototype of
|
||||
build_component_ref and handle_counted_by_for_component_ref.
|
||||
* c-parser.cc (c_parser_postfix_expression): Call the new prototypes
|
||||
of build_component_ref and handle_counted_by_for_component_ref,
|
||||
update comments.
|
||||
* c-typeck.cc (default_function_array_read_conversion): Likewise.
|
||||
(convert_lvalue_to_rvalue): Likewise.
|
||||
(default_conversion): Likewise.
|
||||
(handle_counted_by_p): Update comments.
|
||||
(handle_counted_by_for_component_ref): Delete one argument.
|
||||
(build_component_ref): Delete one argument. Delete the call to
|
||||
handle_counted_by_for_component_ref completely.
|
||||
(build_array_ref): Generate call to .ACCESS_WITH_SIZE for array.
|
||||
|
||||
2025-08-15 Qing Zhao <qing.zhao@oracle.com>
|
||||
|
||||
* c-decl.cc (verify_counted_by_attribute): Change the 2nd argument
|
||||
to a vector of fields with counted_by attribute. Verify all fields
|
||||
in this vector.
|
||||
(finish_struct): Collect all the fields with counted_by attribute
|
||||
to a vector and pass this vector to verify_counted_by_attribute.
|
||||
* c-tree.h (handle_counted_by_for_component_ref): New prototype of
|
||||
handle_counted_by_form_component_ref.
|
||||
* c-parser.cc (c_parser_postfix_expression): Call the new prototype
|
||||
of handle_counted_by_for_component_ref.
|
||||
* c-typeck.cc (default_function_array_read_conversion): Only generate
|
||||
call to .ACCESS_WITH_SIZE for a pointer field when it's a read.
|
||||
(convert_lvalue_to_rvalue): Likewise.
|
||||
(default_conversion): Likewise.
|
||||
(handle_counted_by_p): New routine.
|
||||
(check_counted_by_attribute): New routine.
|
||||
(build_counted_by_ref): Handle pointers with counted_by.
|
||||
(build_access_with_size_for_counted_by): Handle pointers with counted_by.
|
||||
(handle_counted_by_for_component_ref): Add one more argument.
|
||||
(build_component_ref): Call the new prototype of
|
||||
handle_counted_by_for_component_ref.
|
||||
|
||||
2025-08-07 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR preprocessor/120778
|
||||
|
||||
@@ -1,3 +1,12 @@
|
||||
2025-08-15 Robert Dubner <rdubner@symas.com>
|
||||
|
||||
* genapi.h (parser_call_exception_end): Remove obsolete comment.
|
||||
* structs.cc (create_cbl_enabled_exception_t):
|
||||
Remove cbl_enabled_exception_type_node;
|
||||
remove create_cbl_enabled_exception_t().
|
||||
(create_our_type_nodes): Likewise.
|
||||
* structs.h (GTY): Likewise.
|
||||
|
||||
2025-08-13 Robert Dubner <rdubner@symas.com>
|
||||
|
||||
* genutil.cc (get_binary_value): Use the new routine.
|
||||
|
||||
@@ -1,3 +1,42 @@
|
||||
2025-08-15 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* cp-trait.def (STRUCTURED_BINDING_SIZE): New unary trait.
|
||||
* cp-tree.h (finish_structured_binding_size): Declare.
|
||||
* semantics.cc (trait_expr_value): Handle
|
||||
CPTK_STRUCTURED_BINDING_SIZE.
|
||||
(finish_structured_binding_size): New function.
|
||||
(finish_trait_expr): Handle CPTK_RANK and CPTK_TYPE_ORDER
|
||||
in the switch instead of just doing break; for those and
|
||||
ifs at the end to handle them. Handle CPTK_STRUCTURED_BINDING_SIZE.
|
||||
* pt.cc (tsubst_expr): Likewise.
|
||||
* constraint.cc (diagnose_trait_expr): Likewise.
|
||||
* decl.cc (get_tuple_size): Use mce_true for maybe_const_value.
|
||||
(cp_decomp_size): Diagnose incomplete types not just if
|
||||
processing_template_decl, and use error_at instead of pedwarn.
|
||||
If btype is NULL, just return 0 instead of diagnosing an error.
|
||||
|
||||
2025-08-15 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR c++/121552
|
||||
* decl.cc: Implement C++20 P1766R1 - Mitigating minor modules maladies.
|
||||
(diagnose_non_c_class_typedef_for_linkage,
|
||||
maybe_diagnose_non_c_class_typedef_for_linkage): New functions.
|
||||
(name_unnamed_type): Call
|
||||
maybe_diagnose_non_c_class_typedef_for_linkage.
|
||||
|
||||
2025-08-15 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR c++/121539
|
||||
* parser.cc (cp_parser_cache_defarg): Set done to true for
|
||||
CPP_ELLIPSIS followed by CPP_CLOSE_PAREN in !nsdmi at depth 0.
|
||||
|
||||
2025-08-15 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR preprocessor/120778
|
||||
PR target/121520
|
||||
* lex.cc (cxx_init): Remove warn_on lambda. Use cpp_warn instead of
|
||||
cpp_lookup and NODE_WARN bit setting or warn_on.
|
||||
|
||||
2025-08-14 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR c++/121524
|
||||
|
||||
@@ -1,3 +1,114 @@
|
||||
2025-08-15 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* g++.dg/cpp26/expansion-stmt15.C: Expect different diagnostics
|
||||
for zero size destructuring expansion statement.
|
||||
* g++.dg/ext/builtin-structured-binding-size1.C: New test.
|
||||
* g++.dg/ext/builtin-structured-binding-size2.C: New test.
|
||||
* g++.dg/ext/builtin-structured-binding-size3.C: New test.
|
||||
* g++.dg/ext/builtin-structured-binding-size4.C: New test.
|
||||
|
||||
2025-08-15 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR c++/121552
|
||||
* g++.dg/parse/defarg21.C: New test.
|
||||
* g++.dg/template/defarg24.C: New test.
|
||||
* g++.dg/modules/default-arg-4_a.C: New test.
|
||||
* g++.dg/modules/default-arg-4_b.C: New test.
|
||||
* g++.dg/modules/default-arg-5_a.C: New test.
|
||||
* g++.dg/modules/default-arg-5_b.C: New test.
|
||||
|
||||
2025-08-15 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR c++/121552
|
||||
* g++.dg/cpp2a/typedef1.C: New test.
|
||||
* g++.dg/debug/dwarf2/typedef5.C: Add -Wno-non-c-typedef-for-linkage
|
||||
to dg-options.
|
||||
* g++.dg/inherit/typeinfo1.C: Add -Wno-non-c-typedef-for-linkage
|
||||
to dg-additional-options.
|
||||
* g++.dg/parse/ctor2.C: Likewise.
|
||||
* g++.dg/ext/anon-struct9.C: Add -Wno-non-c-typedef-for-linkage to
|
||||
dg-options.
|
||||
* g++.dg/ext/visibility/anon11.C: Add -Wno-non-c-typedef-for-linkage
|
||||
to dg-additional-options.
|
||||
* g++.dg/lto/pr69137_0.C: Add -Wno-non-c-typedef-for-linkage
|
||||
to dg-lto-options.
|
||||
* g++.dg/other/anon8.C: Add -Wno-non-c-typedef-for-linkage
|
||||
to dg-additional-options.
|
||||
* g++.dg/template/pr84973.C: Likewise.
|
||||
* g++.dg/template/pr84973-2.C: Likewise.
|
||||
* g++.dg/template/pr84973-3.C: Likewise.
|
||||
* g++.dg/abi/anon2.C: Likewise.
|
||||
* g++.dg/abi/anon3.C: Likewise.
|
||||
* g++.old-deja/g++.oliva/linkage1.C: Likewise.
|
||||
|
||||
2025-08-15 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR c++/121539
|
||||
* g++.dg/parse/defarg20.C: New test.
|
||||
|
||||
2025-08-15 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR preprocessor/120778
|
||||
PR target/121520
|
||||
* g++.dg/DRs/dr2581-1.C: New test.
|
||||
* g++.dg/DRs/dr2581-2.C: New test.
|
||||
* c-c++-common/cpp/pr92296-2.c: Expect warnings also on defining
|
||||
special macros after undefining them.
|
||||
|
||||
2025-08-15 Vineet Gupta <vineetg@rivosinc.com>
|
||||
|
||||
PR target/121534
|
||||
* gcc.target/riscv/rvv/autovec/vls/math-nearbyint-1.c: Adjust
|
||||
scan pattern for additional instances of frflags/fsrflags.
|
||||
|
||||
2025-08-15 Qing Zhao <qing.zhao@oracle.com>
|
||||
|
||||
* gcc.dg/flex-array-counted-by-2.c: Adjust testing case.
|
||||
|
||||
2025-08-15 Qing Zhao <qing.zhao@oracle.com>
|
||||
|
||||
* gcc.dg/ubsan/pointer-counted-by-bounds-2.c: New test.
|
||||
* gcc.dg/ubsan/pointer-counted-by-bounds-3.c: New test.
|
||||
* gcc.dg/ubsan/pointer-counted-by-bounds-4.c: New test.
|
||||
* gcc.dg/ubsan/pointer-counted-by-bounds-5.c: New test.
|
||||
* gcc.dg/ubsan/pointer-counted-by-bounds.c: New test.
|
||||
|
||||
2025-08-15 Qing Zhao <qing.zhao@oracle.com>
|
||||
|
||||
* gcc.dg/pointer-counted-by-4-char.c: New test.
|
||||
* gcc.dg/pointer-counted-by-4-float.c: New test.
|
||||
* gcc.dg/pointer-counted-by-4-struct.c: New test.
|
||||
* gcc.dg/pointer-counted-by-4-union.c: New test.
|
||||
* gcc.dg/pointer-counted-by-4.c: New test.
|
||||
* gcc.dg/pointer-counted-by-5.c: New test.
|
||||
* gcc.dg/pointer-counted-by-6.c: New test.
|
||||
* gcc.dg/pointer-counted-by-7.c: New test.
|
||||
* gcc.dg/pr120929.c: New test.
|
||||
|
||||
2025-08-15 Qing Zhao <qing.zhao@oracle.com>
|
||||
|
||||
* gcc.dg/flex-array-counted-by.c: Update test.
|
||||
* gcc.dg/pointer-counted-by-1.c: New test.
|
||||
* gcc.dg/pointer-counted-by-2.c: New test.
|
||||
* gcc.dg/pointer-counted-by-3.c: New test.
|
||||
* gcc.dg/pointer-counted-by-8.c: New test.
|
||||
* gcc.dg/pointer-counted-by-9.c: New test.
|
||||
* gcc.dg/pointer-counted-by.c: New test.
|
||||
|
||||
2025-08-15 Umesh Kalappa <ukalappa.mips@gmail.com>
|
||||
|
||||
* gcc.target/riscv/mipsprefetch.c: Test file for mips.pref.
|
||||
|
||||
2025-08-15 Richard Sandiford <richard.sandiford@arm.com>
|
||||
|
||||
PR target/119156
|
||||
* gcc.target/aarch64/sve/pr119156_1.c: New test.
|
||||
|
||||
2025-08-15 Lulu Cheng <chenglulu@loongson.cn>
|
||||
|
||||
PR target/121542
|
||||
* gcc.target/loongarch/pr121542.c: New test.
|
||||
|
||||
2025-08-14 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR c++/121524
|
||||
|
||||
@@ -1,3 +1,25 @@
|
||||
2025-08-15 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR preprocessor/120778
|
||||
PR target/121520
|
||||
* include/cpplib.h (struct cpp_options): Add
|
||||
suppress_builtin_macro_warnings member.
|
||||
(cpp_warn): New inline functions.
|
||||
* init.cc (cpp_create_reader): Clear suppress_builtin_macro_warnings.
|
||||
(cpp_init_builtins): Call cpp_warn on __cplusplus, __STDC__,
|
||||
__STDC_VERSION__, __STDC_MB_MIGHT_NEQ_WC__ and
|
||||
__STDCPP_STRICT_POINTER_SAFETY__ when appropriate.
|
||||
* directives.cc (do_undef): Warn on undefining NODE_WARN macros if
|
||||
not cpp_keyword_p. Don't emit any NODE_WARN related diagnostics
|
||||
if CPP_OPTION (pfile, suppress_builtin_macro_warnings).
|
||||
(cpp_define, _cpp_define_builtin, cpp_undef): Temporarily set
|
||||
CPP_OPTION (pfile, suppress_builtin_macro_warnings) around
|
||||
run_directive calls.
|
||||
* macro.cc (_cpp_create_definition): Warn on defining NODE_WARN
|
||||
macros if they weren't previously defined and not cpp_keyword_p.
|
||||
Ignore NODE_WARN for diagnostics if
|
||||
CPP_OPTION (pfile, suppress_builtin_macro_warnings).
|
||||
|
||||
2025-08-10 H.J. Lu <hjl.tools@gmail.com>
|
||||
|
||||
* configure: Regenerated.
|
||||
|
||||
Reference in New Issue
Block a user