aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/DATESTAMP2
-rw-r--r--libstdc++-v3/ChangeLog22
2 files changed, 23 insertions, 1 deletions
diff --git a/gcc/DATESTAMP b/gcc/DATESTAMP
index 69155b9..0ad54ab 100644
--- a/gcc/DATESTAMP
+++ b/gcc/DATESTAMP
@@ -1 +1 @@
-20201116
+20201117
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index abfc75d..2cb3a62 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,25 @@
+2020-11-16 Jonathan Wakely <jwakely@redhat.com>
+
+ Backported from master:
+ 2020-08-28 Jonathan Wakely <jwakely@redhat.com>
+
+ PR libstdc++/92978
+ * include/std/numeric (__abs_integral): Replace with ...
+ (__detail::__absu): New function template that returns an
+ unsigned type, guaranteeing it can represent the most
+ negative signed value.
+ (__detail::__gcd, __detail::__lcm): Require arguments to
+ be unsigned and therefore already non-negative.
+ (gcd, lcm): Convert arguments to absolute value as unsigned
+ type before calling __detail::__gcd or __detail::__lcm.
+ * include/experimental/numeric (gcd, lcm): Likewise.
+ * testsuite/26_numerics/gcd/gcd_neg.cc: Adjust expected
+ errors.
+ * testsuite/26_numerics/lcm/lcm_neg.cc: Likewise.
+ * testsuite/26_numerics/gcd/92978.cc: New test.
+ * testsuite/26_numerics/lcm/92978.cc: New test.
+ * testsuite/experimental/numeric/92978.cc: New test.
+
2020-11-09 Jonathan Wakely <jwakely@redhat.com>
Backported from master: