aboutsummaryrefslogtreecommitdiff
path: root/packages/gcc/13.1.0/0010-RISC-V-fix-build-issue-with-gcc-4.9.x.patch
diff options
context:
space:
mode:
authorChris Packham <judge.packham@gmail.com>2023-07-28 09:00:19 +1200
committerChris Packham <judge.packham@gmail.com>2023-08-04 16:43:19 +1200
commit41f5d4905351f33b6119d01a076a8de2ba9d4982 (patch)
tree6a858be1a747a70183fddfa6c4354ede426321b8 /packages/gcc/13.1.0/0010-RISC-V-fix-build-issue-with-gcc-4.9.x.patch
parent465207b7a21f00b94b934151c0667275d342cb56 (diff)
downloadcrosstool-ng-41f5d4905351f33b6119d01a076a8de2ba9d4982.tar.gz
crosstool-ng-41f5d4905351f33b6119d01a076a8de2ba9d4982.tar.bz2
crosstool-ng-41f5d4905351f33b6119d01a076a8de2ba9d4982.zip
gcc: Add 13.2.0
https://gcc.gnu.org/pipermail/gcc-announce/2023/000179.html https://gcc.gnu.org/gcc-13/changes.html Add the new version and regenerate the patches. Signed-off-by: Chris Packham <judge.packham@gmail.com>
Diffstat (limited to 'packages/gcc/13.1.0/0010-RISC-V-fix-build-issue-with-gcc-4.9.x.patch')
-rw-r--r--packages/gcc/13.1.0/0010-RISC-V-fix-build-issue-with-gcc-4.9.x.patch41
1 files changed, 0 insertions, 41 deletions
diff --git a/packages/gcc/13.1.0/0010-RISC-V-fix-build-issue-with-gcc-4.9.x.patch b/packages/gcc/13.1.0/0010-RISC-V-fix-build-issue-with-gcc-4.9.x.patch
deleted file mode 100644
index f6d9e0bc..00000000
--- a/packages/gcc/13.1.0/0010-RISC-V-fix-build-issue-with-gcc-4.9.x.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From 87c347c2897537a6aa391efbfc5ed00c625434fe Mon Sep 17 00:00:00 2001
-From: Romain Naour <romain.naour@gmail.com>
-Date: Tue, 2 May 2023 14:21:55 +0200
-Subject: [PATCH] RISC-V: fix build issue with gcc 4.9.x
-
-GCC should still build with GCC 4.8.3 or newer [1]
-using C++03 by default. But a recent change in
-RISC-V port introduced a C++11 feature "std::log2" [2].
-
-Use log2 from the C header, without the namespace [3].
-
-[1] https://gcc.gnu.org/install/prerequisites.html
-[2] https://gcc.gnu.org/git/?p=gcc.git;a=patch;h=7caa1ae5e451e780fbc4746a54e3f19d4f4304dc
-[3] https://stackoverflow.com/questions/26733413/error-log2-is-not-a-member-of-std
-
-Fixes:
-https://gitlab.com/buildroot.org/toolchains-builder/-/jobs/4202276589
-
-gcc/ChangeLog:
- * config/riscv/genrvv-type-indexer.cc: Use log2 from the C header, without
- the namespace.
-
-Signed-off-by: Romain Naour <romain.naour@gmail.com>
----
- gcc/config/riscv/genrvv-type-indexer.cc | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
---- a/gcc/config/riscv/genrvv-type-indexer.cc
-+++ b/gcc/config/riscv/genrvv-type-indexer.cc
-@@ -115,9 +115,9 @@
- if (sew == eew)
- elmul_log2 = lmul_log2;
- else if (sew > eew)
-- elmul_log2 = lmul_log2 - std::log2 (sew / eew);
-+ elmul_log2 = lmul_log2 - log2 (sew / eew);
- else /* sew < eew */
-- elmul_log2 = lmul_log2 + std::log2 (eew / sew);
-+ elmul_log2 = lmul_log2 + log2 (eew / sew);
-
- if (float_p)
- return floattype (eew, elmul_log2);