aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog173
-rw-r--r--gcc/DATESTAMP2
-rw-r--r--gcc/c-family/ChangeLog14
-rw-r--r--gcc/c/ChangeLog21
-rw-r--r--gcc/cp/ChangeLog17
-rw-r--r--gcc/testsuite/ChangeLog128
6 files changed, 354 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index dec2128..5ab8f8a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,176 @@
+2025-03-07 Jakub Jelinek <jakub@redhat.com>
+
+ PR c/117178
+ * tree.cc (get_attr_nonstring_decl): Look through all ARRAY_REFs, not
+ just one and handle COMPONENT_REF and MEM_REF after skipping those
+ rather than only when there wasn't ARRAY_REF. Formatting fix.
+
+2025-03-07 Kees Cook <kees@kernel.org>
+ Jakub Jelinek <jakub@redhat.com>
+
+ PR c/117178
+ * doc/invoke.texi (Wunterminated-string-initialization): Document
+ the new interaction between this warning and -Wc++-compat and that
+ initialization of decls with nonstring attribute aren't warned about.
+
+2025-03-07 Sandra Loosemore <sloosemore@baylibre.com>
+
+ PR sanitizer/56682
+ * doc/invoke.texi (Instrumentation Options): Document that -g
+ is useful with -fsanitize=thread and -fsanitize=address.
+ Also mention -fno-omit-frame-pointer per the asan wiki.
+
+2025-03-07 Richard Sandiford <richard.sandiford@arm.com>
+ Jan Hubicka <hubicka@ucw.cz>
+ H.J. Lu <hjl.tools@gmail.com>
+
+ PR rtl-optimization/117477
+ * config/aarch64/aarch64.cc (aarch64_count_saves): New function.
+ (aarch64_count_above_hard_fp_saves, aarch64_callee_save_cost)
+ (aarch64_frame_allocation_cost): Likewise.
+ (TARGET_CALLEE_SAVE_COST): Define.
+ (TARGET_FRAME_ALLOCATION_COST): Likewise.
+ * config/i386/i386.cc (ix86_ira_callee_saved_register_cost_scale):
+ Replace with...
+ (ix86_callee_save_cost): ...this new hook.
+ (TARGET_IRA_CALLEE_SAVED_REGISTER_COST_SCALE): Delete.
+ (TARGET_CALLEE_SAVE_COST): Define.
+ * target.h (spill_cost_type, frame_cost_type): New enums.
+ * target.def (callee_save_cost, frame_allocation_cost): New hooks.
+ (ira_callee_saved_register_cost_scale): Delete.
+ * doc/tm.texi.in (TARGET_IRA_CALLEE_SAVED_REGISTER_COST_SCALE): Delete.
+ (TARGET_CALLEE_SAVE_COST, TARGET_FRAME_ALLOCATION_COST): New hooks.
+ * doc/tm.texi: Regenerate.
+ * hard-reg-set.h (hard_reg_set_popcount): New function.
+ * ira-color.cc (allocated_memory_p): New variable.
+ (allocated_callee_save_regs): Likewise.
+ (record_allocation): New function.
+ (assign_hard_reg): Use targetm.frame_allocation_cost to model
+ the cost of the first spill or first caller save. Use
+ targetm.callee_save_cost to model the cost of using new callee-saved
+ registers. Apply the exit rather than entry frequency to the cost
+ of restoring a register or deallocating the frame. Update the
+ new variables above.
+ (improve_allocation): Use record_allocation.
+ (color): Initialize allocated_callee_save_regs.
+ (ira_color): Initialize allocated_memory_p.
+ * targhooks.h (default_callee_save_cost): Declare.
+ (default_frame_allocation_cost): Likewise.
+ * targhooks.cc (default_callee_save_cost): New function.
+ (default_frame_allocation_cost): Likewise.
+
+2025-03-07 Sandra Loosemore <sloosemore@baylibre.com>
+
+ PR target/116708
+ * doc/invoke.texi (x86 Options): Clarify how -msse4 and -mno-sse4
+ interact with other SSE options.
+
+2025-03-07 Martin Jambor <mjambor@suse.cz>
+
+ PR ipa/118318
+ * ipa-cp.cc (adjust_clone_incoming_counts): Add a compatible_p check.
+
+2025-03-07 Richard Earnshaw <rearnsha@arm.com>
+
+ * config/arm/arm_neon.h: Try harder to detect if we have
+ the softfp ABI enabled.
+
+2025-03-07 Jakub Jelinek <jakub@redhat.com>
+
+ PR c/112960
+ PR c/117029
+ * doc/extend.texi (Complex): Add I and J suffixes to the list of
+ complex suffixes, adjust for all of those being part of ISO C2Y,
+ clarify that for -fno-ext-numeric-literals none of those are
+ recognized as GNU extensions and for C++14 i is considered UDL
+ even for -fext-numeric-literals when <complex> is included.
+
+2025-03-07 Simon Martin <simon@nasilyan.com>
+
+ * tree-vect-data-refs.cc: Define INCLUDE_ALGORITHM.
+
+2025-03-07 Tamar Christina <tamar.christina@arm.com>
+
+ PR tree-optimization/118464
+ PR tree-optimization/116855
+ * doc/invoke.texi (min-pagesize): Update docs with vectorizer use.
+ * tree-vect-data-refs.cc (vect_analyze_early_break_dependences): Delay
+ checks.
+ (vect_compute_data_ref_alignment): Remove alignment checks and move to
+ get_load_store_type, increase group access alignment.
+ (vect_enhance_data_refs_alignment): Add note to comment needing
+ investigating.
+ (vect_analyze_data_refs_alignment): Likewise.
+ (vect_supportable_dr_alignment): For group loads look at first DR.
+ * tree-vect-stmts.cc (get_load_store_type):
+ Perform safety checks for early break pfa.
+ * tree-vectorizer.h (dr_set_safe_speculative_read_required,
+ dr_safe_speculative_read_required, DR_SCALAR_KNOWN_BOUNDS): New.
+ (need_peeling_for_alignment): Renamed to...
+ (safe_speculative_read_required): .. This
+ (class dr_vec_info): Add scalar_access_known_in_bounds.
+
+2025-03-07 Tamar Christina <tamar.christina@arm.com>
+
+ PR tree-optimization/118464
+ PR tree-optimization/116855
+ * config/aarch64/aarch64-sve.md (@extract_<last_op>_<mode>,
+ @fold_extract_<last_op>_<mode>,
+ @aarch64_fold_extract_vector_<last_op>_<mode>): Change SVE_FULL to
+ SVE_ALL.
+ * config/aarch64/iterators.md (vccore): Add more partial types.
+
+2025-03-07 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/119145
+ * tree-vectorizer.cc (try_vectorize_loop_1): Avoid BB
+ vectorizing an if-converted loop body when there's a .MASK_CALL
+ in the loop body.
+
+2025-03-07 Christophe Lyon <christophe.lyon@linaro.org>
+
+ PR target/115485
+ * config/arm/arm.cc (require_pic_register): Fix typos in
+ comment. Handle fixed arm_pic_register.
+
+2025-03-07 Richard Sandiford <richard.sandiford@arm.com>
+
+ PR tree-optimization/116125
+ * tree-vect-data-refs.cc (vect_prune_runtime_alias_test_list): Make
+ the dr_with_seg_len alignment fields describe tha access sizes as
+ well as the pointer alignment.
+ * tree-data-ref.cc (create_intersect_range_checks): Don't compensate
+ for invalid alignment fields here.
+
+2025-03-07 Richard Sandiford <richard.sandiford@arm.com>
+
+ PR target/119133
+ * config/aarch64/aarch64.md
+ (*aarch64_bfi<GPI:mode><ALLX:mode>_<SUBDI_BITS>): Use
+ force_lowpart_subreg.
+
+2025-03-07 Richard Biener <rguenther@suse.de>
+
+ PR middle-end/118801
+ * tree-ssa-dce.cc (eliminate_unnecessary_stmts): Prune
+ sequences of uninterrupted DEBUG BEGIN_STMTs, keeping only
+ the last of a set with unique location.
+
+2025-03-07 Sandra Loosemore <sloosemore@baylibre.com>
+
+ PR c/113515
+ * doc/invoke.texi (Warning Options): Improve -Wstringop-overflow
+ documentation.
+
+2025-03-07 Haochen Jiang <haochen.jiang@intel.com>
+
+ * config/i386/avx10_2-512convertintrin.h
+ (_mm512_mask_cvtbf8_ph): Correct mask width.
+ (_mm512_maskz_cvtbf8_ph): Ditto.
+ * config/i386/avx10_2convertintrin.h
+ (_mm256_mask_cvtbf8_ph): Ditto.
+ (_mm256_maskz_cvtbf8_ph): Ditto.
+
2025-03-06 Alexey Merzlyakov <alexey.merzlyakov@samsung.com>
PR rtl-optimization/119099
diff --git a/gcc/DATESTAMP b/gcc/DATESTAMP
index 5f4d7bc..e0b0910 100644
--- a/gcc/DATESTAMP
+++ b/gcc/DATESTAMP
@@ -1 +1 @@
-20250307
+20250308
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
index 79daceb..0a1ce00 100644
--- a/gcc/c-family/ChangeLog
+++ b/gcc/c-family/ChangeLog
@@ -1,3 +1,17 @@
+2025-03-07 Jakub Jelinek <jakub@redhat.com>
+
+ PR c/117178
+ * c-attribs.cc (handle_nonstring_attribute): Allow the attribute also
+ on multi-dimensional arrays with char/signed char/unsigned char
+ element type or pointers to such single and multi-dimensional arrays.
+
+2025-03-07 Kees Cook <kees@kernel.org>
+ Jakub Jelinek <jakub@redhat.com>
+
+ PR c/117178
+ * c.opt (Wunterminated-string-initialization): Don't depend on
+ -Wc++-compat.
+
2025-03-05 Marek Polacek <polacek@redhat.com>
PR c++/115580
diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog
index adaabd5..8a1b3bd 100644
--- a/gcc/c/ChangeLog
+++ b/gcc/c/ChangeLog
@@ -1,3 +1,24 @@
+2025-03-07 Kees Cook <kees@kernel.org>
+ Jakub Jelinek <jakub@redhat.com>
+
+ PR c/117178
+ * c-typeck.cc (digest_init): Add DECL argument. Adjust wording of
+ pedwarn_init for too long strings and provide details on the lengths,
+ for string literals where just the trailing NULL doesn't fit warn for
+ warn_cxx_compat with OPT_Wc___compat, wording which mentions "for C++"
+ and provides details on lengths, otherwise for
+ warn_unterminated_string_initialization adjust the warning, provide
+ details on lengths and don't warn if get_attr_nonstring_decl (decl).
+ (build_c_cast, store_init_value, output_init_element): Adjust
+ digest_init callers.
+
+2025-03-07 Andrew Pinski <quic_apinski@quicinc.com>
+
+ PR c/60440
+ * c-typeck.cc (c_finish_return): Mark the current function
+ for supression of the -Wreturn-type if there was an error
+ on the return statement.
+
2025-02-26 Jakub Jelinek <jakub@redhat.com>
PR c/119001
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 4f40e72..eb3cce5 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,20 @@
+2025-03-07 Marek Polacek <polacek@redhat.com>
+
+ PR c++/118775
+ * constexpr.cc (cxx_eval_call_expression): Check tree_fits_uhwi_p.
+
+2025-03-07 Nathaniel Shead <nathanieloshead@gmail.com>
+
+ * constexpr.cc (potential_constant_expression_1): Handle
+ TU_LOCAL_ENTITY.
+ * pt.cc (expr_contains_tu_local_entity): Remove.
+ (function_contains_tu_local_entity): Remove.
+ (dependent_operand_p): Remove special handling for
+ TU_LOCAL_ENTITY.
+ (tsubst_expr): Handle TU_LOCAL_ENTITY when tsubsting OVERLOADs;
+ remove now-unnecessary extra handling.
+ (type_dependent_expression_p): Handle TU_LOCAL_ENTITY.
+
2025-03-06 Simon Martin <simon@nasilyan.com>
* cp-tree.h (processing_contract_condition): Fix comment typo,
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 2808653..21c041c 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,131 @@
+2025-03-07 Jakub Jelinek <jakub@redhat.com>
+
+ PR c/117178
+ * c-c++-common/attr-nonstring-7.c: Remove one xfail.
+ * c-c++-common/attr-nonstring-9.c: New test.
+ * c-c++-common/attr-nonstring-10.c: New test.
+ * c-c++-common/attr-nonstring-11.c: New test.
+ * c-c++-common/attr-nonstring-12.c: New test.
+ * c-c++-common/attr-nonstring-13.c: New test.
+ * c-c++-common/attr-nonstring-14.c: New test.
+ * c-c++-common/attr-nonstring-15.c: New test.
+ * c-c++-common/attr-nonstring-16.c: New test.
+
+2025-03-07 Kees Cook <kees@kernel.org>
+ Jakub Jelinek <jakub@redhat.com>
+
+ PR c/117178
+ * gcc.dg/Wunterminated-string-initialization.c: Add additional test
+ coverage.
+ * gcc.dg/Wcxx-compat-14.c: Check in dg-warning for "for C++" part of
+ the diagnostics.
+ * gcc.dg/Wcxx-compat-23.c: New test.
+ * gcc.dg/Wcxx-compat-24.c: New test.
+
+2025-03-07 Andrew Pinski <quic_apinski@quicinc.com>
+
+ * gcc.dg/Wreturn-mismatch-2a.c: Change dg-warning
+ for the last -Wreturn-type to dg-bogus.
+ * gcc.dg/Wreturn-mismatch-6.c: Likewise.
+
+2025-03-07 Richard Sandiford <richard.sandiford@arm.com>
+ Jan Hubicka <hubicka@ucw.cz>
+ H.J. Lu <hjl.tools@gmail.com>
+
+ PR rtl-optimization/117477
+ * gcc.target/aarch64/callee_save_1.c: New test.
+ * gcc.target/aarch64/callee_save_2.c: Likewise.
+ * gcc.target/aarch64/callee_save_3.c: Likewise.
+ * gcc.target/aarch64/pr103350-1.c: Add -fno-caller-saves.
+
+2025-03-07 Andrew Pinski <quic_apinski@quicinc.com>
+
+ PR c/60440
+ * gcc.dg/Wreturn-mismatch-2.c: Change dg-warning
+ for the last -Wreturn-type to dg-bogus.
+ * gcc.dg/pr60440-1.c: New test.
+
+2025-03-07 Marek Polacek <polacek@redhat.com>
+
+ PR c++/118775
+ * g++.dg/cpp2a/constexpr-new24.C: New test.
+ * g++.dg/cpp2a/constexpr-new25.C: New test.
+
+2025-03-07 Richard Earnshaw <rearnsha@arm.com>
+
+ * lib/target-supports.exp
+ (check_effective_target_arm_neon_h_ok_nocache): New function.
+ (check_effective_target_arm_neon_h_ok): Likewise.
+ (add_options_for_arm_neon_h): Likewise.
+ (check_effective_target_arm_libc_fp_abi_ok_nocache): Allow any
+ Arm target, not just arm32.
+ * gcc.target/arm/attr-neon-builtin-fail.c: Use it.
+ * gcc.target/arm/attr-neon-builtin-fail2.c: Likewise.
+ * gcc.target/arm/attr-neon-fp16.c: Likewise.
+ * gcc.target/arm/attr-neon2.c: Likewise.
+
+2025-03-07 Tamar Christina <tamar.christina@arm.com>
+
+ PR tree-optimization/118464
+ PR tree-optimization/116855
+ * gcc.dg/vect/bb-slp-pr65935.c: Update, it now vectorizes because the
+ load type is relaxed later.
+ * gcc.dg/vect/vect-early-break_121-pr114081.c: Update.
+ * gcc.dg/vect/vect-early-break_22.c: Require partial vectors.
+ * gcc.dg/vect/vect-early-break_128.c: Likewise.
+ * gcc.dg/vect/vect-early-break_26.c: Likewise.
+ * gcc.dg/vect/vect-early-break_43.c: Likewise.
+ * gcc.dg/vect/vect-early-break_44.c: Likewise.
+ * gcc.dg/vect/vect-early-break_2.c: Require load_lanes.
+ * gcc.dg/vect/vect-early-break_7.c: Likewise.
+ * gcc.dg/vect/vect-early-break_132-pr118464.c: New test.
+ * gcc.dg/vect/vect-early-break_133_pfa1.c: New test.
+ * gcc.dg/vect/vect-early-break_133_pfa11.c: New test.
+ * gcc.dg/vect/vect-early-break_133_pfa10.c: New test.
+ * gcc.dg/vect/vect-early-break_133_pfa2.c: New test.
+ * gcc.dg/vect/vect-early-break_133_pfa3.c: New test.
+ * gcc.dg/vect/vect-early-break_133_pfa4.c: New test.
+ * gcc.dg/vect/vect-early-break_133_pfa5.c: New test.
+ * gcc.dg/vect/vect-early-break_133_pfa6.c: New test.
+ * gcc.dg/vect/vect-early-break_133_pfa7.c: New test.
+ * gcc.dg/vect/vect-early-break_133_pfa8.c: New test.
+ * gcc.dg/vect/vect-early-break_133_pfa9.c: New test.
+ * gcc.dg/vect/vect-early-break_39.c: Update testcase for misalignment.
+ * gcc.dg/vect/vect-early-break_18.c: Likewise.
+ * gcc.dg/vect/vect-early-break_20.c: Likewise.
+ * gcc.dg/vect/vect-early-break_21.c: Likewise.
+ * gcc.dg/vect/vect-early-break_38.c: Likewise.
+ * gcc.dg/vect/vect-early-break_6.c: Likewise.
+ * gcc.dg/vect/vect-early-break_53.c: Likewise.
+ * gcc.dg/vect/vect-early-break_56.c: Likewise.
+ * gcc.dg/vect/vect-early-break_57.c: Likewise.
+ * gcc.dg/vect/vect-early-break_81.c: Likewise.
+
+2025-03-07 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/119145
+ * gcc.dg/vect/pr119145.c: New testcase.
+
+2025-03-07 Christophe Lyon <christophe.lyon@linaro.org>
+
+ PR target/115485
+ * g++.target/arm/pr115485.C: New test.
+
+2025-03-07 Richard Sandiford <richard.sandiford@arm.com>
+
+ PR tree-optimization/116125
+ * gcc.dg/vect/pr116125.c: New test.
+
+2025-03-07 Richard Sandiford <richard.sandiford@arm.com>
+
+ PR target/119133
+ * gcc.dg/torture/pr119133.c: New test.
+
+2025-03-07 Haochen Jiang <haochen.jiang@intel.com>
+
+ * gcc.target/i386/avx10_2-512-convert-1.c: Change function call.
+ * gcc.target/i386/avx10_2-convert-1.c: Ditto.
+
2025-03-06 Co-authored-by: Jeff Law <jlaw@ventanamicro.com>
PR rtl-optimization/119099