30 lines
1.0 KiB
Diff
30 lines
1.0 KiB
Diff
From 8afa08292030c4da33ebf80ce39353678d9d9955 Mon Sep 17 00:00:00 2001
|
|
From: Andrew Lukoshko <alukoshko@almalinux.org>
|
|
Date: Wed, 18 Feb 2026 14:37:39 +0000
|
|
Subject: [PATCH] libstdc++-v3: add __riscv constants to extfloat.S
|
|
|
|
---
|
|
libstdc++-v3/src/nonshared98/extfloat.S | 5 ++++-
|
|
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/libstdc++-v3/src/nonshared98/extfloat.S b/libstdc++-v3/src/nonshared98/extfloat.S
|
|
index c72980884..9fad014c4 100644
|
|
--- a/libstdc++-v3/src/nonshared98/extfloat.S
|
|
+++ b/libstdc++-v3/src/nonshared98/extfloat.S
|
|
@@ -53,8 +53,11 @@
|
|
#elif defined __s390__
|
|
#define ALIGN1 .align 4
|
|
#define ALIGN3 .align 2
|
|
+#elif defined __riscv
|
|
+#define ALIGN1 .align 3
|
|
+#define ALIGN3 .align 3
|
|
#endif
|
|
-#if defined __x86_64__ || defined __powerpc64__ || defined __s390x__ || defined __ia64__ || defined __aarch64__
|
|
+#if defined __x86_64__ || defined __powerpc64__ || defined __s390x__ || defined __ia64__ || defined __aarch64__ || defined __riscv
|
|
#define SIZE1 32
|
|
#define SIZE2 16
|
|
#define OFF 16
|
|
--
|
|
2.43.7
|
|
|