Commit 29e37140 authored by Nick Terrell's avatar Nick Terrell Committed by Facebook GitHub Bot

Fix a typo in CpuId breaking gcc-6.5 builds

Summary:
gcc-6.5 on OS X <= 10.6 complains about the `\r` when this code path
is enabled. I don't think we officially support `__i386__`, but I want to
backport the patch from zstd. https://github.com/facebook/zstd/pull/1418

(Note: this ignores all push blocking failures!)

Reviewed By: yfeldblum, Orvid

Differential Revision: D13104652

fbshipit-source-id: 737a68253c7d90c3a1cc026069b048551cb5ced9
parent 45f233c1
...@@ -82,7 +82,7 @@ class CpuId { ...@@ -82,7 +82,7 @@ class CpuId {
__asm__( __asm__(
"pushl %%ebx\n\t" "pushl %%ebx\n\t"
"cpuid\n\t" "cpuid\n\t"
"movl %%ebx, %%eax\n\r" "movl %%ebx, %%eax\n\t"
"popl %%ebx" "popl %%ebx"
: "=a"(f7b_), "=c"(f7c_) : "=a"(f7b_), "=c"(f7c_)
: "a"(7), "c"(0) : "a"(7), "c"(0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment