[Skiboot] [PATCH 12/16] build: -fverbose-asm for .s targets
Nicholas Piggin
npiggin at gmail.com
Mon Apr 27 21:08:09 AEST 2020
Signed-off-by: Nicholas Piggin <npiggin at gmail.com>
---
Makefile.rules | 4 ++++
asm/asm-offsets.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/Makefile.rules b/Makefile.rules
index 8c41c26e4..dcebde6d2 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -64,6 +64,10 @@ endif
$(call Q,CC, $(CC) $(call cook_cflags,$@) -x c -c $< -o $@, $@)
%.s : %.c
+ $(call Q,CC, $(CC) $(call cook_cflags,$@) -fverbose-asm -S -c $< -o $@, $@)
+
+# no -fverbose-asm for asm-offsets.s
+asm/asm-offsets.s: asm/asm-offsets.c
$(call Q,CC, $(CC) $(call cook_cflags,$@) -S -c $< -o $@, $@)
%.i : %.c
diff --git a/asm/asm-offsets.c b/asm/asm-offsets.c
index 7be0a1157..532437c1b 100644
--- a/asm/asm-offsets.c
+++ b/asm/asm-offsets.c
@@ -11,7 +11,7 @@
#include <stack.h>
#define DEFINE(sym, val) \
- asm volatile("\n#define " #sym " %0 /* " #val " */" : : "i" (val))
+ asm volatile("\n#define " #sym " %0 /* " #val " */\n" : : "i" (val))
#define OFFSET(sym, str, mem) \
DEFINE(sym, offsetof(struct str, mem))
--
2.23.0
More information about the Skiboot
mailing list