aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorMatwey V. Kornilov <[email protected]>2019-07-26 20:26:37 +0300
committerMatwey V. Kornilov <[email protected]>2019-07-27 14:42:04 +0300
commiteb0f74a6281eb7498d36a2ed5d15c442057aa1b2 (patch)
treec4b24073b4073d7eda8397c0843f6dce79ef46e5 /erts
parent5fc96782a03e2fa170a8a7a3781d32b176af0548 (diff)
downloadotp-eb0f74a6281eb7498d36a2ed5d15c442057aa1b2.tar.gz
otp-eb0f74a6281eb7498d36a2ed5d15c442057aa1b2.tar.bz2
otp-eb0f74a6281eb7498d36a2ed5d15c442057aa1b2.zip
erts: Do not use named no_cpuid label in asm
Ask compiler to generate unique label name. Using named label has implications on optimizer, that may lead to the compilation errors as the following: pthread/ethread.c: Assembler messages: pthread/ethread.c:213: Error: symbol `no_cpuid' is already defined pthread/ethread.c:213: Error: symbol `no_cpuid' is already defined pthread/ethread.c:213: Error: symbol `no_cpuid' is already defined
Diffstat (limited to 'erts')
-rw-r--r--erts/lib_src/pthread/ethread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/lib_src/pthread/ethread.c b/erts/lib_src/pthread/ethread.c
index b4b12fcd86..b567ed81b0 100644
--- a/erts/lib_src/pthread/ethread.c
+++ b/erts/lib_src/pthread/ethread.c
@@ -208,9 +208,9 @@ ethr_x86_cpuid__(int *eax, int *ebx, int *ecx, int *edx)
"popl %%eax\n\t"
"movl $0x0, %0\n\t"
"xorl %%ecx, %%eax\n\t"
- "jz no_cpuid\n\t"
+ "jz 1f\n\t"
"movl $0x1, %0\n\t"
- "no_cpuid:\n\t"
+ "1:\n\t"
: "=r"(have_cpuid)
:
: "%eax", "%ecx", "cc");