Skip to content

OpenBSD compatibility #4053

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

Merged
merged 6 commits into from
Feb 6, 2019
Merged

Conversation

nanolith
Copy link
Contributor

@nanolith nanolith commented Feb 3, 2019

Patches to support CBMC on OpenBSD.

The ansi-c library has been patched to provide a compatible pthread_barrier_init function, and to bypass OpenBSD's stdio.h, which can't currently be parsed by the checker script.

The c_preprocess.cpp source file in ansi-c has been patched to pass the appropriate -std to Clang on OpenBSD. OpenBSD does not use GNU extensions with the system Clang.

The config.cpp source file in util has been patched so that OpenBSD defaults to c99, just like FreeBSD.

Patches have been protected with a defined(__OpenBSD__) check to ensure that they do not impact other builds.

@nanolith nanolith changed the title Openbsd compatibility OpenBSD compatibility Feb 3, 2019
Copy link
Collaborator

@tautschnig tautschnig left a comment

Choose a reason for hiding this comment

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

Good to see portability to another platform! In a couple of places clang-format will be unhappy with the formatting, though. Please take a look at the logs of the failing CI tasks.

Copy link
Contributor Author

@nanolith nanolith left a comment

Choose a reason for hiding this comment

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

Added commits to address feedback.

@nanolith
Copy link
Contributor Author

nanolith commented Feb 5, 2019

Is there anything else that the collaborators need from me for this PR? I just want to confirm that you didn't need anything else from my end.

@tautschnig
Copy link
Collaborator

@nanolith Yes, please help clang-format be happy as https://travis-ci.org/diffblue/cbmc/jobs/488215218 shows. It's just about whitespace...

@nanolith
Copy link
Contributor Author

nanolith commented Feb 6, 2019

Fixed all clang-format issues. All green. :-)

@tautschnig tautschnig merged commit 7027037 into diffblue:develop Feb 6, 2019
Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

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

✔️
Passed Diffblue compatibility checks (cbmc commit: 3236da7).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/99968034

@nanolith nanolith deleted the openbsd_compatibility branch February 6, 2019 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants