Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Use _TARGET_64BIT_ macro #16660

Merged
merged 2 commits into from
Mar 1, 2018
Merged

Use _TARGET_64BIT_ macro #16660

merged 2 commits into from
Mar 1, 2018

Conversation

echesakov
Copy link

@echesakov echesakov commented Feb 28, 2018

Use _TARGET_64BIT_ instead of ambiguous _WIN64 and BIT64

Related issue: #16513

@echesakov echesakov added the * NO MERGE * The PR is not ready for merge yet (see discussion for detailed reasons) label Feb 28, 2018
@echesakov
Copy link
Author

@jkotas PTAL

@echesakov echesakov changed the title [WIP] Use _TARGET_64BIT_ macro Use _TARGET_64BIT_ macro Feb 28, 2018
Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM modulo a few comments.

@@ -591,7 +591,7 @@ PEImageLayout::EnumMemoryRegions(CLRDataEnumMemoryFlags flags)
}
#endif //DACCESS_COMPILE

#if defined(_WIN64) && !defined(DACCESS_COMPILE)
#if defined(_TARGET_64BIT_) && !defined(DACCESS_COMPILE)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ConvertILOnlyPE32ToPE64 and ConvertILOnlyPE32ToPE64Worker is deadcode in .NET Core. It would be better to delete it

@@ -10035,9 +10035,9 @@ void Module::RestoreMethodTablePointerRaw(MethodTable ** ppMT,

if (CORCOMPILE_IS_POINTER_TAGGED(fixup))
{
#ifdef _WIN64
#ifdef _TARGET_64BIT_
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not look quite right to me. I think that there is also a problem with SIZE_T in CORCOMPILE_UNTAG_TOKEN macro.

Maybe best to postpone this to the "interesting changes" batch.

@echesakov echesakov added enhancement Product code improvement that does NOT require public API changes/additions and removed * NO MERGE * The PR is not ready for merge yet (see discussion for detailed reasons) labels Mar 1, 2018
@jkotas
Copy link
Member

jkotas commented Mar 1, 2018

@dotnet-bot test OSX10.12 x64 Checked Innerloop Build and Test please

@echesakov echesakov merged commit 430331c into dotnet:master Mar 1, 2018
@echesakov echesakov deleted the UseTarget64BitMacro branch March 12, 2018 23:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Product code improvement that does NOT require public API changes/additions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants