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

[x86/Linux] Fix compile error in zapcode#8294

Merged
jkotas merged 1 commit into
dotnet:masterfrom
seanshpark:x86zap01
Nov 28, 2016
Merged

[x86/Linux] Fix compile error in zapcode#8294
jkotas merged 1 commit into
dotnet:masterfrom
seanshpark:x86zap01

Conversation

@seanshpark
Copy link
Copy Markdown

@seanshpark seanshpark commented Nov 24, 2016

Fix compile error for x86/Linux

  • Remove ZapUnwindInfo WIN64EXCEPTIONS codes for x86/Linux
  • fix "use of undeclared identifier 'NEED_TO_PORT_THIS_ONE'"
  • fix "unknown type name 'UNWIND_INFO'"
  • fix "use of undeclared identifier 'READYTORUN_HELPER_PersonalityRoutineFilterFunclet'"

@RussKeldorph
Copy link
Copy Markdown

Please ignore the x86 compatjit and x86 legacy_backend failures. The jobs have been removed from future PRs.

Comment thread src/zap/zapcode.cpp Outdated
}

#elif defined(_TARGET_ARM_) || defined(_TARGET_ARM64_)
#elif defined(_TARGET_ARM_) || defined(_TARGET_ARM64_) || (defined(_TARGET_X86_) && defined(FEATURE_PAL))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This ifdef stay as is - we should not have this kind of unwind info for x86.

This is part of the x86 managed code ABI (described in https://github.com/dotnet/coreclr/blob/master/Documentation/botr/clr-abi.md). The x86 managed code ABI should stay same between Windows and Unix. Otherwise, the x86 Linux port will turn into a very long and complex project.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

OK, I'll read the document and see how to fix the compile error.

Fix compile error for x86/Linux
- Remove ZapUnwindInfo WIN64EXCEPTIONS codes for x86/Linux
- fix "use of undeclared identifier 'NEED_TO_PORT_THIS_ONE'"
- fix "unknown type name 'UNWIND_INFO'"
- fix "use of undeclared identifier 'READYTORUN_HELPER_PersonalityRoutineFilterFunclet'"
@seanshpark
Copy link
Copy Markdown
Author

@jkotas, currently it's hard to understand the Unwind as lack of background knowledge. Patch 56cecbc what I can think of for the moment to "make it compile then make it run" approach.

@jkotas
Copy link
Copy Markdown
Member

jkotas commented Nov 28, 2016

LGTM. Thanks!

@jkotas jkotas merged commit 2acb29c into dotnet:master Nov 28, 2016
@seanshpark seanshpark deleted the x86zap01 branch November 28, 2016 22:38
@karelz karelz modified the milestone: 2.0.0 Aug 28, 2017
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Fix compile error for x86/Linux
- Remove ZapUnwindInfo WIN64EXCEPTIONS codes for x86/Linux
- fix "use of undeclared identifier 'NEED_TO_PORT_THIS_ONE'"
- fix "unknown type name 'UNWIND_INFO'"
- fix "use of undeclared identifier 'READYTORUN_HELPER_PersonalityRoutineFilterFunclet'"

Commit migrated from dotnet/coreclr@2acb29c
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants