Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bitfields posix #13027

Merged
merged 3 commits into from Aug 29, 2021
Merged

Bitfields posix #13027

merged 3 commits into from Aug 29, 2021

Conversation

WalterBright
Copy link
Member

I had a lot of grief with this, due to the way Posix lays out bit fields not being documented.

The two test files are actually identical, except for the TEST_OUTPUT section. That section is generated by compiling the code with an actual C compiler, and inserting its output into that section.

I'll make a win32 and win64 version in a later PR.

@ibuclaw you have a good handle on how gcc works with this, so your review is especially appreciated. I'm not terribly confident everything is 100% right.

@WalterBright WalterBright added the ImportC Pertaining to ImportC support label Aug 27, 2021
@dlang-bot
Copy link
Contributor

Thanks for your pull request, @WalterBright!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

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#13027"

Copy link
Member

@ibuclaw ibuclaw left a comment

Choose a reason for hiding this comment

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

Just done a quick skim through for obvious things so far, will look a bit more in a moment.

src/dmd/cparse.d Outdated Show resolved Hide resolved
src/dmd/declaration.d Outdated Show resolved Hide resolved
src/dmd/declaration.d Outdated Show resolved Hide resolved
src/dmd/declaration.d Outdated Show resolved Hide resolved
src/dmd/todt.d Outdated Show resolved Hide resolved
src/dmd/declaration.d Outdated Show resolved Hide resolved
src/dmd/declaration.d Outdated Show resolved Hide resolved
@WalterBright
Copy link
Member Author

Looks like the test runner's predilection for only looking at stderr output is making a hash of this for me, as stderr is different on every platform.

@WalterBright
Copy link
Member Author

Anyone have a clever suggestion?

@WalterBright WalterBright force-pushed the bitfieldsPosix branch 3 times, most recently from 60c1a0d to 0d3cf5b Compare August 27, 2021 09:23
src/dmd/declaration.d Outdated Show resolved Hide resolved
test/runnable/bitfieldsposix32.c Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ImportC Pertaining to ImportC support
Projects
None yet
4 participants