From: Jan Kotas Date: Mon, 24 Oct 2016 01:21:22 +0000 (-0700) Subject: Delete _TARGET_SET_ macro X-Git-Tag: accepted/tizen/base/20180629.140029~3264^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d07bf2e857f22b8303edbd06c545790039a8f3e;p=platform%2Fupstream%2Fcoreclr.git Delete _TARGET_SET_ macro --- diff --git a/src/inc/gcinfotypes.h b/src/inc/gcinfotypes.h index 6ed7d50..1ce2639 100644 --- a/src/inc/gcinfotypes.h +++ b/src/inc/gcinfotypes.h @@ -8,32 +8,6 @@ #include "gcinfo.h" -// This file is included when building an "alt jit". In that case, we are doing a cross-compile: -// we may be building the ARM jit on x86, for example. We generally make that work by conditionalizing on -// a _TARGET_XXX_ variable that we explicitly set in the build, rather than the _XXX_ variable implicitly -// set by the compiler. But this file is *also* included by the runtime, and needs in that case to be -// conditionalized by the actual platform we're compiling for. We solve this by: -// 1) conditionalizing on _TARGET_XXX_ in this file, -// 2) having a _TARGET_SET_ variable so we know whether we're in a compilation for JIT in which some -// _TARGET_XXX_ has already been set, and -// 3) if _TARGET_SET_ is not set, set the _TARGET_XXX_ variable appropriate for the current _XXX_. -// -#ifndef _TARGET_SET_ - -//#ifdef _X86_ -//#define _TARGET_X86_ -//#endif - -//#ifdef _AMD64_ -//#define _TARGET_AMD64_ -//#endif - -//#ifdef _ARM_ -//#define _TARGET_ARM_ -//#endif - -#endif // _TARGET_SET_ - #if defined(_TARGET_AMD64_) || defined(_TARGET_ARM_) || defined(_TARGET_ARM64_) #define PARTIALLY_INTERRUPTIBLE_GC_SUPPORTED #endif diff --git a/src/jit/target.h b/src/jit/target.h index 1625189..867dc25 100644 --- a/src/jit/target.h +++ b/src/jit/target.h @@ -6,11 +6,6 @@ #ifndef _TARGET_H_ #define _TARGET_H_ -// Inform includers that we're in a context in which a target has been set. -#if defined(_TARGET_X86_) || defined(_TARGET_AMD64_) || defined(_TARGET_ARM_) -#define _TARGET_SET_ -#endif - // If the UNIX_AMD64_ABI is defined make sure that _TARGET_AMD64_ is also defined. #if defined(UNIX_AMD64_ABI) #if !defined(_TARGET_AMD64_)