Skip to content

Commit

Permalink
[x86/Linux] Introduce UNIX_X86_ABI definition (dotnet#8863)
Browse files Browse the repository at this point in the history
Add UNIX_X86_ABI definition for Unix/Linux specific ABI parts
First will be for 16 byte stack alignment codes
  • Loading branch information
seanshpark authored and manofstick committed Jan 16, 2017
1 parent 1973a1c commit 239599e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clrdefinitions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ if (CLR_CMAKE_PLATFORM_UNIX)
add_definitions(-DUNIX_AMD64_ABI)
elseif (CLR_CMAKE_PLATFORM_UNIX_ARM)
add_definitions(-DUNIX_ARM_ABI)
elseif (CLR_CMAKE_PLATFORM_UNIX_X86)
add_definitions(-DUNIX_X86_ABI)
endif()

endif(CLR_CMAKE_PLATFORM_UNIX)
Expand Down
7 changes: 7 additions & 0 deletions src/jit/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
#endif
#endif

// If the UNIX_X86_ABI is defined make sure that _TARGET_X86_ is also defined.
#if defined(UNIX_X86_ABI)
#if !defined(_TARGET_X86_)
#error When UNIX_X86_ABI is defined you must define _TARGET_X86_ defined as well.
#endif
#endif

#if (defined(FEATURE_CORECLR) && defined(PLATFORM_UNIX))
#define FEATURE_VARARG 0
#else // !(defined(FEATURE_CORECLR) && defined(PLATFORM_UNIX))
Expand Down

0 comments on commit 239599e

Please sign in to comment.