From 3a731e0fc7b80a274d4a34fed7ed41d6f35f1e51 Mon Sep 17 00:00:00 2001 From: Pierre Muller Date: Thu, 15 Nov 2012 14:48:26 +0000 Subject: [PATCH] * configure.ac (AC_HEADER_STAT): Remove. * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use and corresponding code. * configure: Regenerate. * config.in: Regenerate. --- gdb/ChangeLog | 8 ++++++++ gdb/config.in | 3 --- gdb/configure | 42 ------------------------------------------ gdb/configure.ac | 1 - gdb/gdb_stat.h | 13 ------------- 5 files changed, 8 insertions(+), 59 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 848573824e..19528614a2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +2012-11-15 Pierre Muller + + * configure.ac (AC_HEADER_STAT): Remove. + * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use + and corresponding code. + * configure: Regenerate. + * config.in: Regenerate. + 2012-11-15 Pierre Muller ARI xasprintf rule fixes. diff --git a/gdb/config.in b/gdb/config.in index 9338a3924d..34aa31e8b6 100644 --- a/gdb/config.in +++ b/gdb/config.in @@ -685,9 +685,6 @@ STACK_DIRECTION = 0 => direction of growth unknown */ #undef STACK_DIRECTION -/* Define to 1 if the `S_IS*' macros in do not work properly. */ -#undef STAT_MACROS_BROKEN - /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS diff --git a/gdb/configure b/gdb/configure index 6d6fb09879..0d70d0aa1e 100755 --- a/gdb/configure +++ b/gdb/configure @@ -8764,48 +8764,6 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 -$as_echo_n "checking whether stat file-mode macros are broken... " >&6; } -if test "${ac_cv_header_stat_broken+set}" = set; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include - -#if defined S_ISBLK && defined S_IFDIR -extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; -#endif - -#if defined S_ISBLK && defined S_IFCHR -extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; -#endif - -#if defined S_ISLNK && defined S_IFREG -extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; -#endif - -#if defined S_ISSOCK && defined S_IFREG -extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; -#endif - -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_header_stat_broken=no -else - ac_cv_header_stat_broken=yes -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 -$as_echo "$ac_cv_header_stat_broken" >&6; } -if test $ac_cv_header_stat_broken = yes; then - -$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h - -fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if test "${ac_cv_header_stdc+set}" = set; then : diff --git a/gdb/configure.ac b/gdb/configure.ac index 1dbebf24fa..030fb06c42 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -1072,7 +1072,6 @@ fi # ------------------------- # AC_HEADER_DIRENT -AC_HEADER_STAT AC_HEADER_STDC # elf_hp.h is for HP/UX 64-bit shared library support. AC_CHECK_HEADERS([nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \ diff --git a/gdb/gdb_stat.h b/gdb/gdb_stat.h index a5d13e8af2..51e2e5624c 100644 --- a/gdb/gdb_stat.h +++ b/gdb/gdb_stat.h @@ -22,19 +22,6 @@ #include #include -#ifdef STAT_MACROS_BROKEN -#undef S_ISBLK -#undef S_ISCHR -#undef S_ISDIR -#undef S_ISREG -#undef S_ISFIFO -#undef S_ISLNK -#undef S_ISSOCK -#undef S_ISMPB -#undef S_ISMPC -#undef S_ISNWK -#endif - #if !defined(S_ISBLK) && defined(S_IFBLK) #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK) #endif