aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2024-10-03 16:02:17 +0000
committerChristophe Lyon <christophe.lyon@linaro.org>2024-10-17 15:43:27 +0000
commite4d417417f8a2f1cf615b6ff81687f4861787de0 (patch)
tree88858b4c2ee45b1d7c8b6be6c81866f633517ce6
parent51b85dfeb19652bf3e0aaec08828ba7cee1e641c (diff)
downloadgcc-e4d417417f8a2f1cf615b6ff81687f4861787de0.zip
gcc-e4d417417f8a2f1cf615b6ff81687f4861787de0.tar.gz
gcc-e4d417417f8a2f1cf615b6ff81687f4861787de0.tar.bz2
aarch64: libgcc: Cleanup warnings in lse.S
Since Commit c608ada288ced0268bbbbc1fd4136f56c34b24d4 Author: Zac Walker <zacwalker@microsoft.com> CommitDate: 2024-01-23 15:32:30 +0000 Ifdef `.hidden`, `.type`, and `.size` pseudo-ops for `aarch64-w64-mingw32` target lse.S includes aarch64-asm.h, leading to a conflicting definition of macro 'L': - in lse.S it expands to either '' or 'L' - in aarch64-asm.h it is used to generate .L ## label lse.S does not use the second, so this patch just undefines L after the inclusion of aarch64-asm.h. libgcc/ * config/aarch64/lse.S: Undefine L() macro.
-rw-r--r--libgcc/config/aarch64/lse.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/libgcc/config/aarch64/lse.S b/libgcc/config/aarch64/lse.S
index ecef470..77b3dc5 100644
--- a/libgcc/config/aarch64/lse.S
+++ b/libgcc/config/aarch64/lse.S
@@ -54,6 +54,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#include "aarch64-asm.h"
#include "auto-target.h"
+/* L is defined in aarch64-asm.h for a different purpose than why we
+ use it here. */
+#undef L
+
/* Tell the assembler to accept LSE instructions. */
#ifdef HAVE_AS_LSE
.arch armv8-a+lse