From 3c086f8decdc190602fb66cfec8f3cff16328142 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Fri, 6 Sep 2019 12:27:36 +0200 Subject: [PATCH] Fix GCC_LINUX_FUTEX to work with C99 compilers Without this change, libstdc++ is built without futex symbols if GCC rejects implicit function declarations by default. From-SVN: r275454 --- config/ChangeLog | 5 +++++ config/futex.m4 | 2 ++ libgomp/ChangeLog | 4 ++++ libgomp/configure | 2 ++ libitm/ChangeLog | 4 ++++ libitm/configure | 2 ++ libstdc++-v3/ChangeLog | 4 ++++ libstdc++-v3/configure | 2 ++ 8 files changed, 25 insertions(+) diff --git a/config/ChangeLog b/config/ChangeLog index 5a06cdeea81..2e7b8c24256 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,8 @@ +2019-09-06 Florian Weimer + + * futex.m4 (GCC_LINUX_FUTEX): Include for the syscall + function. + 2019-07-08 Richard Sandiford * bootstrap-Og.mk: New file. diff --git a/config/futex.m4 b/config/futex.m4 index e95144dd16a..1b438295162 100644 --- a/config/futex.m4 +++ b/config/futex.m4 @@ -22,6 +22,7 @@ case "$target" in AC_LINK_IFELSE( [AC_LANG_PROGRAM( [#include + #include int lk;], [syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);])], [save_LIBS="$LIBS" @@ -48,6 +49,7 @@ If so, please configure with --disable-linux-futex]) AC_LINK_IFELSE( [AC_LANG_PROGRAM( [#include + #include int lk;], [syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);])],[], [AC_MSG_ERROR([SYS_gettid and SYS_futex required for --enable-linux-futex])]) diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index a627bc2298d..d1e4dc35c4a 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,7 @@ +2019-09-06 Florian Weimer + + * configure: Regenerate. + 2019-09-03 Chung-Lin Tang PR other/79543 diff --git a/libgomp/configure b/libgomp/configure index c5797ea9d5d..c58d6a01231 100755 --- a/libgomp/configure +++ b/libgomp/configure @@ -15888,6 +15888,7 @@ case "$target" in cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include + #include int lk; int main () @@ -15940,6 +15941,7 @@ rm -f core conftest.err conftest.$ac_objext \ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include + #include int lk; int main () diff --git a/libitm/ChangeLog b/libitm/ChangeLog index 76d6def09d6..567c1d09d47 100644 --- a/libitm/ChangeLog +++ b/libitm/ChangeLog @@ -1,3 +1,7 @@ +2019-09-06 Florian Weimer + + * configure: Regenerate. + 2019-09-03 Chung-Lin Tang PR other/79543 diff --git a/libitm/configure b/libitm/configure index bdc5148c9f0..c466ae05aa5 100644 --- a/libitm/configure +++ b/libitm/configure @@ -16481,6 +16481,7 @@ case "$target" in cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include + #include int lk; int main () @@ -16533,6 +16534,7 @@ rm -f core conftest.err conftest.$ac_objext \ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include + #include int lk; int main () diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 2ea0fe4ec40..ad96489aa26 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2019-09-06 Florian Weimer + + * configure: Regenerate. + 2019-09-05 Jonathan Wakely * doc/xml/manual/status_cxx2020.xml: Update status for P0122R7 and diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index f2f5098df91..4e714e5da9c 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3/configure @@ -72670,6 +72670,7 @@ fi cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include + #include int lk; int main () @@ -72728,6 +72729,7 @@ fi cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include + #include int lk; int main () -- 2.30.2