Skip to content

fix Issue 21826 - MSCOFF output for Win32 should not use EBP for anyt…#12433

Merged
dlang-bot merged 1 commit intodlang:masterfrom
WalterBright:fix21826
Apr 15, 2021
Merged

fix Issue 21826 - MSCOFF output for Win32 should not use EBP for anyt…#12433
dlang-bot merged 1 commit intodlang:masterfrom
WalterBright:fix21826

Conversation

@WalterBright
Copy link
Member

…hing other than the frame pointer

This is causing problems with #12409 but is not the purpose of that PR, so I separated it out.

The 114-115 fix disables use of EBP for general register use for the Win32 mscoff model.

The 536 just fixes a bug where it might wrongly select EBP. No test case known to trigger it, very hard to devise a test case that does as it is hyper sensitive to how registers are allocated.

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @WalterBright!

Bugzilla references

Auto-close Bugzilla Severity Description
21826 normal MSCOFF output for Win32 should not use EBP for anything other than the frame pointer

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + dmd#12433"

@RazvanN7
Copy link
Contributor

RazvanN7 commented Apr 15, 2021

@WalterBright Are you suggesting we merge this without tests?

This is causing problems with #12409 but is not the purpose of that PR, so I separated it out.

Can't a test case be extracted from there?

@WalterBright
Copy link
Member Author

Can't a test case be extracted from there?

No because it is dependent on the code generation strategy being changed in #12409

@RazvanN7
Copy link
Contributor

RazvanN7 commented Apr 15, 2021

IMHO this would be placed better as a separate commit in #12409 . That way it can be covered by a test. I see no point in separating ii out since it is so closely coupled with that fix.

@WalterBright
Copy link
Member Author

It's a distinct bug. Distinct bugs shouldn't be combined into one PR.

It doesn't need a distinct test in #12409 because the test suite already fails if this is not corrected.

@dlang-bot dlang-bot merged commit 5e237d5 into dlang:master Apr 15, 2021
@WalterBright WalterBright deleted the fix21826 branch April 15, 2021 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments