aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog40
-rw-r--r--gcc/DATESTAMP2
-rw-r--r--gcc/c/ChangeLog14
-rw-r--r--gcc/c/c-decl.cc3
-rw-r--r--gcc/c/c-typeck.cc3
-rw-r--r--gcc/common.opt2
-rw-r--r--gcc/common.opt.urls3
-rw-r--r--gcc/cp/ChangeLog27
-rw-r--r--gcc/doc/invoke.texi9
-rw-r--r--gcc/fortran/ChangeLog7
-rw-r--r--gcc/testsuite/ChangeLog34
-rw-r--r--gcc/testsuite/gcc.dg/Wdeprecated-non-prototype-5.c14
-rw-r--r--gcc/testsuite/gcc.dg/c2y-named-loops-8.c5
13 files changed, 157 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ac8a2c6..137e388 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,43 @@
+2025-05-01 Jason Merrill <jason@redhat.com>
+
+ * doc/invoke.texi: Add -fabi-version detail.
+ * common.opt: Likewise.
+
+2025-05-01 Andrew Pinski <quic_apinski@quicinc.com>
+
+ * tree-ssa-phiopt.cc (phiopt_early_allow): Only allow a sequence
+ with one statement for MIN/MAX and the op was MIN/MAX.
+
+2025-05-01 Ayan Shafqat <ayan.x.shafqat@gmail.com>
+
+ * config/aarch64/arm_acle.h (__sqrt, __sqrtf): New function.
+
+2025-05-01 Ayan Shafqat <ayan.x.shafqat@gmail.com>
+
+ * config/aarch64/aarch64-simd-builtins.def: Change
+ BUILTIN_VHSDF_DF to BUILTIN_VHSDF_HSDF.
+
+2025-05-01 Jason Merrill <jason@redhat.com>
+
+ PR c++/119162
+ * fold-const.cc (maybe_nonzero_address): Return 1 for non-symtab
+ vars if folding_cxx_constexpr.
+
+2025-05-01 Richard Biener <rguenther@suse.de>
+
+ * tree-vect-stmts.cc (vectorizable_conversion): Remove non-SLP
+ paths.
+
+2025-05-01 Richard Biener <rguenther@suse.de>
+
+ * tree-vect-slp.cc (vect_remove_slp_scalar_calls): Look
+ at the original stmt.
+
+2025-05-01 Jakub Jelinek <jakub@redhat.com>
+
+ * combine.cc (try_combine): Sets which satisfy set_noop_p can go
+ to i2 unless i3 is a jump and the other set is not.
+
2025-04-30 Andrew Pinski <quic_apinski@quicinc.com>
PR target/120042
diff --git a/gcc/DATESTAMP b/gcc/DATESTAMP
index c95ab32..8632515 100644
--- a/gcc/DATESTAMP
+++ b/gcc/DATESTAMP
@@ -1 +1 @@
-20250501
+20250502
diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog
index 4c8fde7..08e747e 100644
--- a/gcc/c/ChangeLog
+++ b/gcc/c/ChangeLog
@@ -1,3 +1,17 @@
+2025-05-01 Christopher Bazley <chris.bazley@arm.com>
+
+ PR c/119317
+ * c-decl.cc (c_get_loop_names): Do not prematurely
+ end the search for a label that names a loop or
+ switch statement upon encountering a DEBUG_BEGIN_STMT.
+ Instead, ignore any instances of DEBUG_BEGIN_STMT.
+
+2025-05-01 Florian Weimer <fweimer@redhat.com>
+
+ PR c/119950
+ * c-typeck.cc (convert_arguments): Check for built-in
+ function declaration before warning.
+
2025-04-28 David Malcolm <dmalcolm@redhat.com>
* c-decl.cc: Drop include of "make-unique.h".
diff --git a/gcc/c/c-decl.cc b/gcc/c/c-decl.cc
index 4e200f9..ad66d7d 100644
--- a/gcc/c/c-decl.cc
+++ b/gcc/c/c-decl.cc
@@ -13861,7 +13861,8 @@ c_get_loop_names (tree before_labels, bool switch_p, tree *last_p)
++ret;
}
}
- else if (TREE_CODE (stmt) != CASE_LABEL_EXPR)
+ else if (TREE_CODE (stmt) != CASE_LABEL_EXPR
+ && TREE_CODE (stmt) != DEBUG_BEGIN_STMT)
break;
}
if (last)
diff --git a/gcc/c/c-typeck.cc b/gcc/c/c-typeck.cc
index d94ecb5..c7a13bf 100644
--- a/gcc/c/c-typeck.cc
+++ b/gcc/c/c-typeck.cc
@@ -4336,7 +4336,8 @@ convert_arguments (location_t loc, vec<location_t> arg_loc, tree fntype,
builtin_typetail = NULL_TREE;
}
- if (!typetail && parmnum == 0 && !TYPE_NO_NAMED_ARGS_STDARG_P (fntype))
+ if (!typetail && parmnum == 0 && !TYPE_NO_NAMED_ARGS_STDARG_P (fntype)
+ && !fndecl_built_in_p (fundecl))
{
auto_diagnostic_group d;
bool warned;
diff --git a/gcc/common.opt b/gcc/common.opt
index 3edc590..8a5b69d 100644
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -1055,7 +1055,7 @@ Driver Undocumented
; 20: Fix mangling of lambdas in static data member initializers.
; Default in G++ 15.
;
-; 21:
+; 21: Fix noexcept lambda capture pruning.
; Default in G++ 16.
;
; Additional positive integers will be assigned as new versions of
diff --git a/gcc/common.opt.urls b/gcc/common.opt.urls
index 0077511..c108560 100644
--- a/gcc/common.opt.urls
+++ b/gcc/common.opt.urls
@@ -502,6 +502,9 @@ UrlSuffix(gcc/Optimize-Options.html#index-fcse-follow-jumps)
fcse-skip-blocks
UrlSuffix(gcc/Optimize-Options.html#index-fcse-skip-blocks)
+fcx-method=
+UrlSuffix(gcc/Optimize-Options.html#index-fcx-method)
+
fcx-limited-range
UrlSuffix(gcc/Optimize-Options.html#index-fcx-limited-range)
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index a74c74d..d50293c 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,30 @@
+2025-05-01 Patrick Palka <ppalka@redhat.com>
+
+ * constexpr.cc (explain_invalid_constexpr_fn): In the
+ DECL_CONSTRUCTOR_P branch pass the non-genericized body to
+ require_potential_constant_expression.
+
+2025-05-01 Patrick Palka <ppalka@redhat.com>
+
+ PR c++/119034
+ PR c++/68942
+ * pt.cc (tsubst_expr) <case CALL_EXPR>: Revert PR68942 fix.
+ * semantics.cc (finish_call_expr): Ensure the callee of an
+ ADL-enabled call is wrapped in an OVERLOAD.
+
+2025-05-01 Jason Merrill <jason@redhat.com>
+
+ * Make-lang.in: Don't pass the full path to gperf.
+ * std-name-hint.h: Regenerate.
+
+2025-05-01 Jason Merrill <jason@redhat.com>
+
+ PR c++/119162
+ * constexpr.cc (find_deleted_heap_var): Remove.
+ (cxx_eval_call_expression): Don't call it. Don't set TREE_STATIC on
+ heap vars.
+ (cxx_eval_outermost_constant_expr): Don't mess with varpool.
+
2025-04-30 Nathaniel Shead <nathanieloshead@gmail.com>
PR c++/120023
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index d1925c9..e7a9a03 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -3006,12 +3006,17 @@ in C++14 and up.
Version 18, which first appeared in G++ 13, fixes manglings of lambdas
that have additional context.
-Version 19, which first appeared in G++ 14, fixes manglings of structured
-bindings to include ABI tags.
+Version 19, which first appeared in G++ 14, fixes manglings of
+structured bindings to include ABI tags, handling of cv-qualified
+[[no_unique_address]] members, and adds mangling of C++20 constraints
+on function templates.
Version 20, which first appeared in G++ 15, fixes manglings of lambdas
in static data member initializers.
+Version 21, which first appeared in G++ 16, fixes unnecessary captures
+in noexcept lambdas (c++/119764).
+
See also @option{-Wabi}.
@opindex fabi-compat-version
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index e6ecc8d..9b2a48d 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,3 +1,10 @@
+2025-05-01 Paul Thomas <pault@gcc.gnu.org>
+
+ PR fortran/119948
+ * resolve.cc (gfc_impure_variable): The result of a module
+ procedure with an interface declaration is not impure even if
+ the current namespace is not the same as the symbol's.
+
2025-04-25 Harald Anlauf <anlauf@gmx.de>
PR fortran/102900
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index aa5d296..354a2ad 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,37 @@
+2025-05-01 Christopher Bazley <chris.bazley@arm.com>
+
+ PR c/119317
+ * gcc.dg/c2y-named-loops-8.c: New test.
+
+2025-05-01 Florian Weimer <fweimer@redhat.com>
+
+ * gcc.dg/Wdeprecated-non-prototype-5.c: New test.
+
+2025-05-01 Patrick Palka <ppalka@redhat.com>
+
+ * g++.dg/cpp23/constexpr-nonlit19.C: New test.
+
+2025-05-01 Patrick Palka <ppalka@redhat.com>
+
+ PR c++/119034
+ PR c++/68942
+ * g++.dg/template/koenig13.C: New test.
+
+2025-05-01 Paul Thomas <pault@gcc.gnu.org>
+
+ PR fortran/119948
+ * gfortran.dg/pr119948.f90: New test.
+
+2025-05-01 Ayan Shafqat <ayan.x.shafqat@gmail.com>
+
+ * gcc.target/aarch64/acle/acle_sqrt.c: New test.
+
+2025-05-01 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/120003
+ * gcc.dg/tree-ssa/ssa-dom-thread-7.c: Adjust aarch64 expected
+ thread2 number of threads.
+
2025-04-30 Nathaniel Shead <nathanieloshead@gmail.com>
PR c++/120023
diff --git a/gcc/testsuite/gcc.dg/Wdeprecated-non-prototype-5.c b/gcc/testsuite/gcc.dg/Wdeprecated-non-prototype-5.c
new file mode 100644
index 0000000..b231a74
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/Wdeprecated-non-prototype-5.c
@@ -0,0 +1,14 @@
+/* { dg-do compile } */
+/* { dg-options "-Wdeprecated-non-prototype" } */
+
+static inline
+int f (int x)
+{
+ return __builtin_constant_p (x);
+}
+
+static inline
+int g (double x)
+{
+ return __builtin_isfinite (x);
+}
diff --git a/gcc/testsuite/gcc.dg/c2y-named-loops-8.c b/gcc/testsuite/gcc.dg/c2y-named-loops-8.c
new file mode 100644
index 0000000..8d69db4
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/c2y-named-loops-8.c
@@ -0,0 +1,5 @@
+/* PR c/119317 - Named loops (C2y) did not compile with -O1 and -ggdb2 or higher */
+/* { dg-do compile } */
+/* { dg-options "-std=c2y -O1 -ggdb2" } */
+
+#include "c2y-named-loops-1.c"