summaryrefslogtreecommitdiff
path: root/src/vm/amd64
diff options
context:
space:
mode:
authorJan Vorlicek <janvorli@microsoft.com>2017-04-26 07:10:13 -0700
committerJan Kotas <jkotas@microsoft.com>2017-04-26 07:10:13 -0700
commit8b1595b74c943b33fa794e63e440e6f4c9679478 (patch)
tree3cfe07eef3814122e00ffee6b8ad8cdc93b864ed /src/vm/amd64
parenta5a8c6cdc6e3b732fc5a344878b165f149d99729 (diff)
downloadcoreclr-8b1595b74c943b33fa794e63e440e6f4c9679478.tar.gz
coreclr-8b1595b74c943b33fa794e63e440e6f4c9679478.tar.bz2
coreclr-8b1595b74c943b33fa794e63e440e6f4c9679478.zip
Enable build with clang 4.0 (#11226)
This change enables build with clang 4.0 and fixes a bunch of new errors that the stricter compiler was reporting.
Diffstat (limited to 'src/vm/amd64')
-rw-r--r--src/vm/amd64/unixstubs.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vm/amd64/unixstubs.cpp b/src/vm/amd64/unixstubs.cpp
index 2904149084..76d3cf1890 100644
--- a/src/vm/amd64/unixstubs.cpp
+++ b/src/vm/amd64/unixstubs.cpp
@@ -37,7 +37,7 @@ extern "C"
" mov %%edx, 12(%[result])\n" \
: "=a"(eax) /*output in eax*/\
: "a"(arg), [result]"r"(result) /*inputs - arg in eax, result in any register*/\
- : "eax", "rbx", "ecx", "edx", "memory" /* registers that are clobbered, *result is clobbered */
+ : "rbx", "ecx", "edx", "memory" /* registers that are clobbered, *result is clobbered */
);
return eax;
}
@@ -52,7 +52,7 @@ extern "C"
" mov %%edx, 12(%[result])\n" \
: "=a"(eax) /*output in eax*/\
: "c"(arg1), "a"(arg2), [result]"r"(result) /*inputs - arg1 in ecx, arg2 in eax, result in any register*/\
- : "eax", "rbx", "ecx", "edx", "memory" /* registers that are clobbered, *result is clobbered */
+ : "rbx", "edx", "memory" /* registers that are clobbered, *result is clobbered */
);
return eax;
}
@@ -63,7 +63,7 @@ extern "C"
__asm(" xgetbv\n" \
: "=a"(eax) /*output in eax*/\
: "c"(0) /*inputs - 0 in ecx*/\
- : "eax", "edx" /* registers that are clobbered*/
+ : "edx" /* registers that are clobbered*/
);
// check OS has enabled both XMM and YMM state support
return ((eax & 0x06) == 0x06) ? 1 : 0;