-
-
Notifications
You must be signed in to change notification settings - Fork 597
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
Backport [C++] Allow compiling front-end with strict warnings #8909
Conversation
Thanks for your pull request, @ibuclaw! Bugzilla referencesYour 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 locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub fetch digger
dub run digger -- build "dmd-cxx + dmd#8909" |
I didn't check the build, but it seems like you didn't either. ;-) |
I waited till semaphore passed. |
I don't think it should have passed... :-o |
Oh, silly question: why? |
I was expecting the autotester, Travis and build kite to fail, which they did. I took semaphore passing as a sign that is was working. |
And a few more related errors in other files that were touched here. :-) |
Note to self, be less trigger happy and don't trust semaphore. |
SemaphoreCI is a no-op for this branch. Travis is the only one to trust here. |
I'll rolling up the fix into the next PR... |
Duly noted. Thanks! |
This introduces a new header that pulls in system includes for use only in the DMD front-end part of the compiler, fixing up uses of problematic functions that are prevalent throughout the code. Commits merged from dmd. Fix build of the D frontend on the Hurd and KFreeBSD. Initial patch from Matthias Klose. dlang/dmd#8893 Don't care about D/C++ compatibility in C++ port. Fixes build error in https://gcc.gnu.org/PR87788 dlang/dmd#8895 Allow compiling front-end headers with strict warnings. dlang/dmd#8909 Add root/system.h header for wrapping system includes. Fixes https://gcc.gnu.org/PR87865 dlang/dmd#8910 Move checkedint to dmd/root. dlang/dmd#8912 Use rmem instead of libc for malloc() and strdup(). dlang/dmd#8913 Use align(8) for alignment of UnionExp, fixing several BUS errors due to alignment issues on SPARC. dlang/dmd#8914 Don't pass NULL pointer as format parameter to errorSupplemental. dlang/dmd#8916 gcc/d/ChangeLog: 2018-11-05 Iain Buclaw <ibuclaw@gdcproject.org> PR d/87865 * d-system.h: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@265780 138bc75d-0d04-0410-961f-82ee72b054a4
Based on #8807.