Skip to content

Commit

Permalink
Merge pull request #6980 from jpf91/mingw_minimal
Browse files Browse the repository at this point in the history
[GDC] GCC9 last-minute fix: MinGW changes to get phobos to build
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
  • Loading branch information
dlang-bot committed Apr 27, 2019
2 parents eb38e8e + fb82c21 commit daf0e4f
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions std/math.d
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,12 @@ else version (D_InlineAsm_X86_64)
version = InlineAsm_X86_Any;
}

version (CRuntime_Microsoft)
{
version (InlineAsm_X86_Any)
version = MSVC_InlineAsm;
}

version (X86_64) version = StaticallyHaveSSE;
version (X86) version (OSX) version = StaticallyHaveSSE;

Expand Down Expand Up @@ -4387,7 +4393,7 @@ real logb(real x) @trusted nothrow @nogc
ret ;
}
}
else version (CRuntime_Microsoft)
else version (MSVC_InlineAsm)
{
asm pure nothrow @nogc
{
Expand Down Expand Up @@ -4728,7 +4734,7 @@ real ceil(real x) @trusted pure nothrow @nogc
ret ;
}
}
else version (CRuntime_Microsoft)
else version (MSVC_InlineAsm)
{
short cw;
asm pure nothrow @nogc
Expand Down Expand Up @@ -4856,7 +4862,7 @@ real floor(real x) @trusted pure nothrow @nogc
ret ;
}
}
else version (CRuntime_Microsoft)
else version (MSVC_InlineAsm)
{
short cw;
asm pure nothrow @nogc
Expand Down Expand Up @@ -5420,7 +5426,7 @@ real trunc(real x) @trusted nothrow @nogc pure
ret ;
}
}
else version (CRuntime_Microsoft)
else version (MSVC_InlineAsm)
{
short cw;
asm pure nothrow @nogc
Expand Down

0 comments on commit daf0e4f

Please sign in to comment.