Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@cygnus.com>
To: gdb-patches@sources.redhat.com
Subject: [patch/rfc] Don't include <endian.h>
Date: Fri, 04 Jan 2002 20:54:00 -0000	[thread overview]
Message-ID: <3C3686F3.10209@cygnus.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 315 bytes --]

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

[-- Attachment #2: diffs --]
[-- Type: text/plain, Size: 2549 bytes --]

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 ----

             reply	other threads:[~2002-01-05  4:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-04 20:54 Andrew Cagney [this message]
2002-01-05 14:08 ` Andrew Cagney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3C3686F3.10209@cygnus.com \
    --to=ac131313@cygnus.com \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox