From 3c5c22b2e28865ae5809b7ec7f265c756a81b860 Mon Sep 17 00:00:00 2001 From: Alexey Bataev Date: Tue, 4 Mar 2014 03:42:58 +0000 Subject: [PATCH] Fix for r202778 - Implement __readeflags and __writeeflags intrinsics (renamed res to __res) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202784 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Headers/ia32intrin.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/Headers/ia32intrin.h b/lib/Headers/ia32intrin.h index 2d2839de88..8f5925469a 100644 --- a/lib/Headers/ia32intrin.h +++ b/lib/Headers/ia32intrin.h @@ -32,14 +32,14 @@ static __inline__ unsigned long long __attribute__((__always_inline__, __nodebug__)) __readeflags(void) { - unsigned long long res = 0; + unsigned long long __res = 0; __asm__ __volatile__ ("pushf\n\t" "popq %0\n" - :"=r"(res) + :"=r"(__res) : : ); - return res; + return __res; } static __inline__ void __attribute__((__always_inline__, __nodebug__)) @@ -57,14 +57,14 @@ __writeeflags(unsigned long long __f) static __inline__ unsigned int __attribute__((__always_inline__, __nodebug__)) __readeflags(void) { - unsigned int res = 0; + unsigned int __res = 0; __asm__ __volatile__ ("pushf\n\t" "popl %0\n" - :"=r"(res) + :"=r"(__res) : : ); - return res; + return __res; } static __inline__ void __attribute__((__always_inline__, __nodebug__)) -- 2.40.0