Skip to content

Commit

Permalink
[x86/Linux] Fix unknown pragma build error (dotnet/coreclr#8427)
Browse files Browse the repository at this point in the history
Commit migrated from dotnet/coreclr@6c1b9cc
  • Loading branch information
parjong authored and jkotas committed Dec 6, 2016
1 parent 6eedc02 commit 0aa44e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/coreclr/src/debug/daccess/nidump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions src/coreclr/src/vm/i386/gmsx86.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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> */
Expand Down

0 comments on commit 0aa44e0

Please sign in to comment.