From 3455002ffd7fa293cf409420caac22ecfafcdaa3 Mon Sep 17 00:00:00 2001 From: zhuyanlin Date: Wed, 16 Feb 2022 18:36:11 +0800 Subject: [PATCH] libc:xtensa:arch_memmove: fix warning warning: 'SIM_CHECKS_ALIGNMENT' macro redefined [-Wmacro-redefined] #define SIM_CHECKS_ALIGNMENT 1 Signed-off-by: zhuyanlin --- libs/libc/machine/xtensa/arch_memmove.S | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/libc/machine/xtensa/arch_memmove.S b/libs/libc/machine/xtensa/arch_memmove.S index 7ce56c47b7..f3a1d89b68 100644 --- a/libs/libc/machine/xtensa/arch_memmove.S +++ b/libs/libc/machine/xtensa/arch_memmove.S @@ -396,6 +396,7 @@ memmove: _beqz a4, .Lbackdone # avoid loading anything for zero-length copies # copy 16 bytes per iteration for word-aligned dst and unaligned src ssa8 a3 # set shift amount from byte offset +#undef SIM_CHECKS_ALIGNMENT #define SIM_CHECKS_ALIGNMENT 1 /* set to 1 when running on ISS with * the lint or ferret client, or 0 * to save a few cycles */