Skip to content

Commit 68a971a

Browse files
committed
s390/extable: prefer local labels in .set directives
Use local labels in .set directives to avoid potential compile errors with LTO + clang. See commit 334865b ("x86/extable: Prefer local labels in .set directives") for further details. Since s390 doesn't support LTO currently this doesn't fix a real bug for now, but helps to avoid problems as soon as required pieces have been added to llvm. Signed-off-by: Heiko Carstens <[email protected]>
1 parent f9a3099 commit 68a971a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

arch/s390/include/asm/asm-extable.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@
2626
stringify_in_c(.long (_target) - .;) \
2727
stringify_in_c(.short (_type);) \
2828
stringify_in_c(.macro extable_reg reg;) \
29-
stringify_in_c(.set found, 0;) \
30-
stringify_in_c(.set regnr, 0;) \
29+
stringify_in_c(.set .Lfound, 0;) \
30+
stringify_in_c(.set .Lregnr, 0;) \
3131
stringify_in_c(.irp rs,r0,r1,r2,r3,r4,r5,r6,r7,r8,r9,r10,r11,r12,r13,r14,r15;) \
3232
stringify_in_c(.ifc "\reg", "%%\rs";) \
33-
stringify_in_c(.set found, 1;) \
34-
stringify_in_c(.short regnr;) \
33+
stringify_in_c(.set .Lfound, 1;) \
34+
stringify_in_c(.short .Lregnr;) \
3535
stringify_in_c(.endif;) \
36-
stringify_in_c(.set regnr, regnr+1;) \
36+
stringify_in_c(.set .Lregnr, .Lregnr+1;) \
3737
stringify_in_c(.endr;) \
38-
stringify_in_c(.ifne (found != 1);) \
38+
stringify_in_c(.ifne (.Lfound != 1);) \
3939
stringify_in_c(.error "extable_reg: bad register argument";) \
4040
stringify_in_c(.endif;) \
4141
stringify_in_c(.endm;) \

0 commit comments

Comments
 (0)