LoongArch: Fix macro redefined warning in dl-tlsdesc.S

Message ID 20240822111004.2468463-1-mengqinggang@loongson.cn
State Under Review
Delegated to: Carlos O'Donell
Headers
Series LoongArch: Fix macro redefined warning in dl-tlsdesc.S |

Checks

Context Check Description
redhat-pt-bot/TryBot-32bit success Build for i686
redhat-pt-bot/TryBot-apply_patch success Patch applied to master at the time it was sent
linaro-tcwg-bot/tcwg_glibc_build--master-arm success Build passed
linaro-tcwg-bot/tcwg_glibc_build--master-aarch64 success Build passed
linaro-tcwg-bot/tcwg_glibc_check--master-arm success Test passed
linaro-tcwg-bot/tcwg_glibc_check--master-aarch64 success Test passed

Commit Message

mengqinggang Aug. 22, 2024, 11:10 a.m. UTC
  Undef macro to avoid redefined warning.
---
 sysdeps/loongarch/dl-tlsdesc.S | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
  

Patch

diff --git a/sysdeps/loongarch/dl-tlsdesc.S b/sysdeps/loongarch/dl-tlsdesc.S
index b6cfd6121d..9038669b78 100644
--- a/sysdeps/loongarch/dl-tlsdesc.S
+++ b/sysdeps/loongarch/dl-tlsdesc.S
@@ -69,6 +69,15 @@  _dl_tlsdesc_undefweak:
 #define Lslow Lslow_lasx
 #include "dl-tlsdesc-dynamic.h"
 #undef FRAME_SIZE
+#undef FRAME_SIZE_LSX
+#undef FRAME_SIZE_LASX
+#undef FRAME_SIZE_FLOAT
+#undef V_REG_S
+#undef V_REG_L
+#undef V_SPACE
+#undef V_REG
+#undef V_REGS
+#undef V_REGSZ
 #undef USE_LASX
 #undef _dl_tlsdesc_dynamic
 #undef Lret
@@ -80,6 +89,15 @@  _dl_tlsdesc_undefweak:
 #define Lslow Lslow_lsx
 #include "dl-tlsdesc-dynamic.h"
 #undef FRAME_SIZE
+#undef FRAME_SIZE_LSX
+#undef FRAME_SIZE_LASX
+#undef FRAME_SIZE_FLOAT
+#undef V_REG_S
+#undef V_REG_L
+#undef V_SPACE
+#undef V_REG
+#undef V_REGS
+#undef V_REGSZ
 #undef USE_LSX
 #undef _dl_tlsdesc_dynamic
 #undef Lret