This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch/rfc] Don't include <endian.h>
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Fri, 04 Jan 2002 23:54:11 -0500
- Subject: [patch/rfc] Don't include <endian.h>
Hello,
The attatched removes the now technically redundant #include <endian.h>
from "defs.h" (and a similar include from tm-vaxbsd.h). I won't check
it in just yet though, I'd like to do a few more builds on random linux
hosts. Non linux hosts build just fine since they don't have <endian.h>.
enjoy,
Andrew
2002-01-04 Andrew Cagney <ac131313@redhat.com>
* configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
* configure, config.in: Re-generate.
* config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
* defs.h: Do not include <endian.h>.
Index: configure.in
===================================================================
RCS file: /cvs/src/src/gdb/configure.in,v
retrieving revision 1.76
diff -p -r1.76 configure.in
*** configure.in 2001/12/21 22:32:37 1.76
--- configure.in 2002/01/05 04:44:14
*************** case $host_os in solaris2.7 | solaris2.8
*** 118,124 ****
AC_DEFINE(_MSE_INT_H)
esac; esac
! AC_CHECK_HEADERS(ctype.h endian.h nlist.h link.h thread_db.h proc_service.h \
memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
string.h sys/procfs.h sys/ptrace.h sys/reg.h stdint.h \
term.h termio.h termios.h unistd.h wait.h sys/wait.h \
--- 118,124 ----
AC_DEFINE(_MSE_INT_H)
esac; esac
! AC_CHECK_HEADERS(ctype.h nlist.h link.h thread_db.h proc_service.h \
memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
string.h sys/procfs.h sys/ptrace.h sys/reg.h stdint.h \
term.h termio.h termios.h unistd.h wait.h sys/wait.h \
Index: defs.h
===================================================================
RCS file: /cvs/src/src/gdb/defs.h,v
retrieving revision 1.70
diff -p -r1.70 defs.h
*** defs.h 2002/01/05 04:30:17 1.70
--- defs.h 2002/01/05 04:44:16
*************** extern void *alloca ();
*** 1225,1237 ****
#endif /* Not GNU C */
#endif /* alloca not defined */
- /* Get a definition of BFD_ENDIAN_BIG and BFD_ENDIAN_LITTLE. */
- /* FIXME: cagney/2001-10-31: GDB should just use BFD's definitions. */
-
- #ifdef HAVE_ENDIAN_H
- #include <endian.h>
- #endif
-
/* Dynamic target-system-dependent parameters for GDB. */
#include "gdbarch.h"
#if (GDB_MULTI_ARCH == 0)
--- 1225,1230 ----
Index: config/vax/xm-vaxbsd.h
===================================================================
RCS file: /cvs/src/src/gdb/config/vax/xm-vaxbsd.h,v
retrieving revision 1.1.1.1
diff -p -r1.1.1.1 xm-vaxbsd.h
*** xm-vaxbsd.h 1999/04/16 01:34:26 1.1.1.1
--- xm-vaxbsd.h 2002/01/05 04:44:17
***************
*** 1,8 ****
/* Definitions to make GDB run on a vax under BSD, 4.3 or 4.4. */
- /* We have to include these files now, so that GDB will not make
- competing definitions in defs.h. */
- #include <machine/endian.h>
/* This should exist on either 4.3 or 4.4. 4.3 doesn't have limits.h
or machine/limits.h. */
#include <sys/param.h>
--- 1,5 ----