don't check for stddef.h
authorTom Tromey <tromey@redhat.com>
Wed, 6 Nov 2013 14:36:46 +0000 (07:36 -0700)
committerTom Tromey <tromey@redhat.com>
Mon, 18 Nov 2013 20:29:01 +0000 (13:29 -0700)
gdb already unconditionally includes stddef.h in many places.
I think there is no reason to check for its existence.

Also, Zack Weinberg's header file survey agrees:

    http://hacks.owlfolio.org/header-survey/

This patch removes the configure check and the inclusion guards.
It also removes a redundant inclusion that I noticed in defs.h.

2013-11-18  Tom Tromey  <tromey@redhat.com>

* config.in: Rebuild.
* configure: Rebuild.
* configure.ac: Don't check for stddef.h.
* defs.h: Unconditionally include stddef.h.  Remove duplicate
inclusion.

gdb/ChangeLog
gdb/config.in
gdb/configure
gdb/configure.ac
gdb/defs.h

index fc6336cef5fe17d29c94d6130097c5a4cb00ee7e..3a6f452b2bc57271e6cfc4763b98e3e90a0a3c07 100644 (file)
@@ -1,3 +1,11 @@
+2013-11-18  Tom Tromey  <tromey@redhat.com>
+
+       * config.in: Rebuild.
+       * configure: Rebuild.
+       * configure.ac: Don't check for stddef.h.
+       * defs.h: Unconditionally include stddef.h.  Remove duplicate
+       inclusion.
+
 2013-11-18  Tom Tromey  <tromey@redhat.com>
 
        * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
index 4e3f6de5d0a64bb0064f87b41829f783be7acde3..802127ff937f71e56f5e4ef4e467b570434301b7 100644 (file)
 /* Define to 1 if the system has the type `socklen_t'. */
 #undef HAVE_SOCKLEN_T
 
-/* Define to 1 if you have the <stddef.h> header file. */
-#undef HAVE_STDDEF_H
-
 /* Define to 1 if you have the <stdint.h> header file. */
 #undef HAVE_STDINT_H
 
index b1a4d48a0b6106e81eaf1af8ff9bc287f0167ef4..1d1a4867db2eb473792f7632ef165a92cccba95c 100755 (executable)
@@ -8756,7 +8756,7 @@ fi
 
 # elf_hp.h is for HP/UX 64-bit shared library support.
 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
-                  thread_db.h stddef.h \
+                  thread_db.h \
                  stdlib.h sys/fault.h \
                  sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
                  sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
index 6025e8938e6297f57fe388e7a1742d9ddb48e836..d6b75d61f1edc7d98109213ebfa4e6ff49cc077d 100644 (file)
@@ -1075,7 +1075,7 @@ fi
 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 \
-                  thread_db.h stddef.h \
+                  thread_db.h \
                  stdlib.h sys/fault.h \
                  sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
                  sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
index b1caaadeaf53af9317110a1eebbc0876d06c2ab3..bb93742522eb503003fb20ac11455f8738eddf10 100644 (file)
@@ -48,9 +48,7 @@
    included, so it's ok to blank out gstdint.h.  */
 #define GCC_GENERATED_STDINT_H 1
 
-#ifdef HAVE_STDDEF_H
 #include <stddef.h>
-#endif
 
 #include <unistd.h>
 
@@ -606,10 +604,6 @@ enum gdb_osabi
 
 /* From other system libraries */
 
-#ifdef HAVE_STDDEF_H
-#include <stddef.h>
-#endif
-
 #ifdef HAVE_STDLIB_H
 #include <stdlib.h>
 #endif