Skip to content

Commit f9a3099

Browse files
committed
s390/nospec: 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 108ab40 commit f9a3099

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

arch/s390/include/asm/nospec-insn.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,31 +54,31 @@
5454
.endm
5555

5656
.macro __DECODE_R expand,reg
57-
.set __decode_fail,1
57+
.set .L__decode_fail,1
5858
.irp r1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
5959
.ifc \reg,%r\r1
6060
\expand \r1
61-
.set __decode_fail,0
61+
.set .L__decode_fail,0
6262
.endif
6363
.endr
64-
.if __decode_fail == 1
64+
.if .L__decode_fail == 1
6565
.error "__DECODE_R failed"
6666
.endif
6767
.endm
6868

6969
.macro __DECODE_RR expand,rsave,rtarget
70-
.set __decode_fail,1
70+
.set .L__decode_fail,1
7171
.irp r1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
7272
.ifc \rsave,%r\r1
7373
.irp r2,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
7474
.ifc \rtarget,%r\r2
7575
\expand \r1,\r2
76-
.set __decode_fail,0
76+
.set .L__decode_fail,0
7777
.endif
7878
.endr
7979
.endif
8080
.endr
81-
.if __decode_fail == 1
81+
.if .L__decode_fail == 1
8282
.error "__DECODE_RR failed"
8383
.endif
8484
.endm

0 commit comments

Comments
 (0)