diff options
author | Pedro Alves <palves@redhat.com> | 2015-08-27 13:26:23 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2015-08-27 13:26:23 +0100 |
commit | 14d88147787588b1473da05adf95980931fd3485 (patch) | |
tree | 5091bc06a1607465f12d84573757fd11a0ec5a84 /gdb | |
parent | a40805d4a73532dffc61e33f913e62b93214c998 (diff) | |
download | gdb-14d88147787588b1473da05adf95980931fd3485.zip gdb-14d88147787588b1473da05adf95980931fd3485.tar.gz gdb-14d88147787588b1473da05adf95980931fd3485.tar.bz2 |
gdb: Drop use of obsolete AC_TYPE_SIGNAL
Since we're using sighandler_t, nothing else refers to RETSIGTYPE in
gdb.
(Actually, given gdb/remote.c has been assuming signal handlers return
void for a long time, we could have gotten get rid of this even
without gnulib's sighandler_t.)
gdb/ChangeLog:
2015-08-27 Pedro Alves <palves@redhat.com>
* configure.ac: Remove AC_TYPE_SIGNAL call.
* configure, config.in: Regenerate.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/config.in | 3 | ||||
-rwxr-xr-x | gdb/configure | 33 | ||||
-rw-r--r-- | gdb/configure.ac | 1 |
4 files changed, 5 insertions, 37 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8d40dee..d1b9ac9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2015-08-27 Pedro Alves <palves@redhat.com> + * configure.ac: Remove AC_TYPE_SIGNAL call. + * configure, config.in: Regenerate. + +2015-08-27 Pedro Alves <palves@redhat.com> + * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast. * extension-priv.h: Include signal.h. (struct signal_handler) <handler>: Change type to sighandler_t. diff --git a/gdb/config.in b/gdb/config.in index d188088..97ce5b6 100644 --- a/gdb/config.in +++ b/gdb/config.in @@ -677,9 +677,6 @@ /* Bug reporting address */ #undef REPORT_BUGS_TO -/* Define as the return type of signal handlers (`int' or `void'). */ -#undef RETSIGTYPE - /* Define to 1 if the "%Lg" format works to scan long doubles. */ #undef SCANF_HAS_LONG_DOUBLE diff --git a/gdb/configure b/gdb/configure index e420c03..fd7ea1c 100755 --- a/gdb/configure +++ b/gdb/configure @@ -11094,39 +11094,6 @@ fi # Checks for types. # # ------------------ # -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 -$as_echo_n "checking return type of signal handlers... " >&6; } -if test "${ac_cv_type_signal+set}" = set; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <sys/types.h> -#include <signal.h> - -int -main () -{ -return *(signal (0, 0)) (0) == 1; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_type_signal=int -else - ac_cv_type_signal=void -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 -$as_echo "$ac_cv_type_signal" >&6; } - -cat >>confdefs.h <<_ACEOF -#define RETSIGTYPE $ac_cv_type_signal -_ACEOF - - ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> #include <sys/socket.h> diff --git a/gdb/configure.ac b/gdb/configure.ac index 16bcd56..29d0b63 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -1339,7 +1339,6 @@ AC_CHECK_MEMBERS([struct stat.st_blocks, struct stat.st_blksize]) # Checks for types. # # ------------------ # -AC_TYPE_SIGNAL AC_CHECK_TYPES(socklen_t, [], [], [#include <sys/types.h> #include <sys/socket.h> |