diff options
author | Jonghyun Park <parjong@gmail.com> | 2016-12-06 10:56:58 +0900 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2016-12-05 17:56:58 -0800 |
commit | 6c1b9cc682eccae1e655d8037f06c0f516f2f90b (patch) | |
tree | 107e2ae6b8694ac385f087f39015578f46e910c4 | |
parent | fd976d67c775ea4820279bfd7236c42b06b1d774 (diff) | |
download | coreclr-6c1b9cc682eccae1e655d8037f06c0f516f2f90b.tar.gz coreclr-6c1b9cc682eccae1e655d8037f06c0f516f2f90b.tar.bz2 coreclr-6c1b9cc682eccae1e655d8037f06c0f516f2f90b.zip |
[x86/Linux] Fix unknown pragma build error (#8427)
-rw-r--r-- | src/debug/daccess/nidump.cpp | 2 | ||||
-rw-r--r-- | src/vm/i386/gmsx86.cpp | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/debug/daccess/nidump.cpp b/src/debug/daccess/nidump.cpp index 5ba218d23b..23e76c4fe4 100644 --- a/src/debug/daccess/nidump.cpp +++ b/src/debug/daccess/nidump.cpp @@ -9550,8 +9550,10 @@ mdTypeRef NativeImageDumper::FindTypeRefForMT( PTR_MethodTable mt ) #undef GC_NOTRIGGER #if defined _DEBUG && defined _TARGET_X86_ +#ifdef _MSC_VER // disable FPO for checked build #pragma optimize("y", off) +#endif // _MSC_VER #endif #undef _ASSERTE diff --git a/src/vm/i386/gmsx86.cpp b/src/vm/i386/gmsx86.cpp index d4b2c0a453..75d37ba0d3 100644 --- a/src/vm/i386/gmsx86.cpp +++ b/src/vm/i386/gmsx86.cpp @@ -42,7 +42,9 @@ #if !defined(DACCESS_COMPILE) +#ifdef _MSC_VER #pragma optimize("gsy", on ) // optimize to insure that code generation does not have junk in it +#endif // _MSC_VER #pragma warning(disable:4717) static int __stdcall zeroFtn() { @@ -62,7 +64,9 @@ static int __stdcall recursiveFtn() { #pragma clang diagnostic pop #endif +#ifdef _MSC_VER #pragma optimize("", on ) +#endif // _MSC_VER /* Has mscorwks been instrumented so that calls are morphed into push XXXX call <helper> */ |