public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH/RFC] Remove meaningless definitions
@ 2003-02-09 22:31 Elias Athanasopoulos
       [not found] ` <m3fzquvdpx.fsf@north-pole.nickc.cambridge.redhat.com>
  0 siblings, 1 reply; 4+ messages in thread
From: Elias Athanasopoulos @ 2003-02-09 22:31 UTC (permalink / raw)
  To: binutils

Hello!

This patch removes useless definition of BYTES_IN_WORD in binutils. If
it is approved, I plan to clean up the bfd sources, too.

Regards,
Elias


include/ChangeLog
	
2003-02-09  Elias Athanasopoulos  <elathan@phys.uoa.gr>

	* aout64.h (BYTES_IN_WORD): Define.

binutils/ChangeLog

2003-02-09  Elias Athanasopoulos  <elathan@phys.uoa.gr>

	* stabs.c (BYTES_IN_WORD): Remove definition.
	* wrstabs.c (BYTES_IN_WORD): Likewise.


===================================================================
RCS file: /home/anteater/bucvs/src/include/aout/aout64.h,v
retrieving revision 1.1
diff -bu -r1.1 /home/anteater/bucvs/src/include/aout/aout64.h
--- /home/anteater/bucvs/src/include/aout/aout64.h	2003/02/09 18:50:48	1.1
+++ /home/anteater/bucvs/src/include/aout/aout64.h	2003/02/09 18:51:59
@@ -19,6 +19,10 @@
 #ifndef __A_OUT_64_H__
 #define __A_OUT_64_H__
 
+#ifndef BYTES_IN_WORD
+#define BYTES_IN_WORD 4
+#endif
+
 /* This is the layout on disk of the 32-bit or 64-bit exec header. */
 
 #ifndef external_exec


===================================================================
RCS file: /home/anteater/bucvs/src/binutils/stabs.c,v
retrieving revision 1.2
diff -bu -r1.2 /home/anteater/bucvs/src/binutils/stabs.c
--- /home/anteater/bucvs/src/binutils/stabs.c	2003/02/09 18:54:12	1.2
+++ /home/anteater/bucvs/src/binutils/stabs.c	2003/02/09 18:54:27
@@ -36,9 +36,6 @@
 #include "budbg.h"
 #include "filenames.h"
 
-/* Meaningless definition needs by aout64.h.  FIXME.  */
-#define BYTES_IN_WORD 4
-
 #include "aout/aout64.h"
 #include "aout/stab_gnu.h"


===================================================================
RCS file: /home/anteater/bucvs/src/binutils/wrstabs.c,v
retrieving revision 1.3
diff -bu -r1.3 /home/anteater/bucvs/src/binutils/wrstabs.c
--- /home/anteater/bucvs/src/binutils/wrstabs.c	2003/02/09 18:55:05	1.3
+++ /home/anteater/bucvs/src/binutils/wrstabs.c	2003/02/09 18:55:18
@@ -33,9 +33,6 @@
 #include "debug.h"
 #include "budbg.h"
 
-/* Meaningless definition needs by aout64.h.  FIXME.  */
-#define BYTES_IN_WORD 4
-
 #include "aout/aout64.h"
 #include "aout/stab_gnu.h"
 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH/RFC] Remove meaningless definitions
       [not found] ` <m3fzquvdpx.fsf@north-pole.nickc.cambridge.redhat.com>
@ 2003-03-06 16:46   ` Nick Clifton
  2003-03-08 19:23     ` Elias Athanasopoulos
  0 siblings, 1 reply; 4+ messages in thread
From: Nick Clifton @ 2003-03-06 16:46 UTC (permalink / raw)
  To: elathan; +Cc: binutils

Hi Elias,

> > include/ChangeLog
> > 	
> > 2003-02-09  Elias Athanasopoulos  <elathan@phys.uoa.gr>
> > 
> > 	* aout64.h (BYTES_IN_WORD): Define.
> > 
> > binutils/ChangeLog
> > 
> > 2003-02-09  Elias Athanasopoulos  <elathan@phys.uoa.gr>
> > 
> > 	* stabs.c (BYTES_IN_WORD): Remove definition.
> > 	* wrstabs.c (BYTES_IN_WORD): Likewise.

Approved and applied.  (Only a month late!)

> If it is approved, I plan to clean up the bfd sources, too.

Please do.

Cheers
        Nick


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH/RFC] Remove meaningless definitions
  2003-03-06 16:46   ` Nick Clifton
@ 2003-03-08 19:23     ` Elias Athanasopoulos
  2003-03-12  9:52       ` Nick Clifton
  0 siblings, 1 reply; 4+ messages in thread
From: Elias Athanasopoulos @ 2003-03-08 19:23 UTC (permalink / raw)
  To: Nick Clifton; +Cc: binutils

Hi Nick,

On Thu, Mar 06, 2003 at 04:49:11PM +0000, Nick Clifton wrote:
> > If it is approved, I plan to clean up the bfd sources, too.
> 
> Please do.

I compiled bfd for all targets with no problems.

Regards,
Elias


bfd/ChangeLog

2003-03-08  Elias Athanasopoulos  <elathan@phys.uoa.gr>

	* aout-cris.c (BYTES_IN_WORD): Don't define.
	aout-encap.c: Likewise.
	aout-ns32k.c: Likewise.
	aout-tic30.c: Likewise.
	hp300bsd.c: Likewise.
	i386aout.c: Likewise.
	i386dynix.c: Likewise.
	i386linux.c: Likewise.
	i386lynx.c: Likewise.
	i386mach3.c: Likewise.
	m68k4knetbsd.c: Likewise.
	m68klinux.c: Likewise.
	m68klynx.c: Likewise.
	m68knetbsd.c: Likewise.
	m88kmach3.c: Likewise.
	mipsbsd.c: Likewise.
	newsos3.c: Likewise.
	sparclinux.c: Likewise.
	sparclynx.c: Likewise.
	sparcnetbsd.c: Likewise.
	vaxbsd.c: Likewise. Fix comment formatting.


===================================================================
RCS file: /home/anteater/bucvs/src/bfd/aout-cris.c,v
retrieving revision 1.1
diff -bu -r1.1 /home/anteater/bucvs/src/bfd/aout-cris.c
--- /home/anteater/bucvs/src/bfd/aout-cris.c	2003/03/08 18:38:31	1.1
+++ /home/anteater/bucvs/src/bfd/aout-cris.c	2003/03/08 18:43:49
@@ -1,5 +1,5 @@
 /* BFD backend for CRIS a.out binaries.
-   Copyright 2000, 2001, 2002 Free Software Foundation, Inc.
+   Copyright 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
    Contributed by Axis Communications AB.
    Written by Hans-Peter Nilsson.
 
@@ -23,7 +23,6 @@
    functions.  Beware; some of the information there is outdated.  */
 
 #define N_HEADER_IN_TEXT(x) 0
-#define BYTES_IN_WORD 4
 #define N_TXTOFF(x) 32
 #define ENTRY_CAN_BE_ZERO
 #define TEXT_START_ADDR 0
	

===================================================================
RCS file: /home/anteater/bucvs/src/bfd/aout-encap.c,v
retrieving revision 1.1
diff -bu -r1.1 /home/anteater/bucvs/src/bfd/aout-encap.c
--- /home/anteater/bucvs/src/bfd/aout-encap.c	2003/03/08 18:41:22	1.1
+++ /home/anteater/bucvs/src/bfd/aout-encap.c	2003/03/08 18:44:07
@@ -1,5 +1,5 @@
 /* BFD back-end for a.out files encapsulated with COFF headers.
-   Copyright 1990, 1991, 1994, 1995, 2000, 2001, 2002
+   Copyright 1990, 1991, 1994, 1995, 2000, 2001, 2002, 2003
    Free Software Foundation, Inc.
 
 This file is part of BFD, the Binary File Descriptor library.
@@ -24,7 +24,6 @@
 #define	TARGET_PAGE_SIZE	4096
 #define	SEGMENT_SIZE	TARGET_PAGE_SIZE
 #define TEXT_START_ADDR 0
-#define BYTES_IN_WORD 4
 #endif
 
 #include "bfd.h"

===================================================================
RCS file: /home/anteater/bucvs/src/bfd/aout-ns32k.c,v
retrieving revision 1.1
diff -bu -r1.1 /home/anteater/bucvs/src/bfd/aout-ns32k.c
--- /home/anteater/bucvs/src/bfd/aout-ns32k.c	2003/03/08 18:42:52	1.1
+++ /home/anteater/bucvs/src/bfd/aout-ns32k.c	2003/03/08 18:43:25
@@ -1,5 +1,5 @@
 /* BFD back-end for ns32k a.out-ish binaries.
-   Copyright 1990, 1991, 1992, 1994, 1995, 1996, 1998, 2000, 2001, 2002
+   Copyright 1990, 1991, 1992, 1994, 1995, 1996, 1998, 2000, 2001, 2002, 2003
    Free Software Foundation, Inc.
    Contributed by Ian Dall (idall@eleceng.adelaide.edu.au).
 
@@ -19,8 +19,6 @@
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
-#define BYTES_IN_WORD 4
-
 #include "bfd.h"
 #include "aout/aout64.h"
 #include "ns32k.h"

===================================================================
RCS file: /home/anteater/bucvs/src/bfd/aout-tic30.c,v
retrieving revision 1.1
diff -bu -r1.1 /home/anteater/bucvs/src/bfd/aout-tic30.c
--- /home/anteater/bucvs/src/bfd/aout-tic30.c	2003/03/08 18:44:54	1.1
+++ /home/anteater/bucvs/src/bfd/aout-tic30.c	2003/03/08 18:45:34
@@ -1,5 +1,5 @@
 /* BFD back-end for TMS320C30 a.out binaries.
-   Copyright 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+   Copyright 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
    Contributed by Steven Haworth (steve@pm.cse.rmit.edu.au)
 
    This file is part of BFD, the Binary File Descriptor library.
@@ -21,7 +21,6 @@
 
 #define TARGET_IS_BIG_ENDIAN_P
 #define N_HEADER_IN_TEXT(x) 1
-#define BYTES_IN_WORD 4
 #define TEXT_START_ADDR 1024
 #define TARGET_PAGE_SIZE 128
 #define SEGMENT_SIZE TARGET_PAGE_SIZE

===================================================================
RCS file: /home/anteater/bucvs/src/bfd/hp300bsd.c,v
retrieving revision 1.1
diff -bu -r1.1 /home/anteater/bucvs/src/bfd/hp300bsd.c
--- /home/anteater/bucvs/src/bfd/hp300bsd.c	2003/03/08 18:47:48	1.1
+++ /home/anteater/bucvs/src/bfd/hp300bsd.c	2003/03/08 18:48:37
@@ -1,5 +1,5 @@
 /* BFD back-end for HP 9000/300 (68000-based) machines running BSD Unix.
-   Copyright 1992, 1994, 1995, 2001 Free Software Foundation, Inc.
+   Copyright 1992, 1994, 1995, 2001, 2003 Free Software Foundation, Inc.
 
 This file is part of BFD, the Binary File Descriptor library.
 
@@ -19,7 +19,6 @@
 
 #define TARGET_IS_BIG_ENDIAN_P
 #define N_HEADER_IN_TEXT(x) 0
-#define BYTES_IN_WORD 4
 #define ENTRY_CAN_BE_ZERO
 #define N_SHARED_LIB(x) 0 /* Avoids warning */
 #define TEXT_START_ADDR 0

===================================================================
RCS file: /home/anteater/bucvs/src/bfd/i386aout.c,v
retrieving revision 1.1
diff -bu -r1.1 /home/anteater/bucvs/src/bfd/i386aout.c
--- /home/anteater/bucvs/src/bfd/i386aout.c	2003/03/08 18:49:12	1.1
+++ /home/anteater/bucvs/src/bfd/i386aout.c	2003/03/08 18:50:15
@@ -1,5 +1,5 @@
 /* BFD back-end for i386 a.out binaries.
-   Copyright 1990, 1991, 1992, 1994, 1996, 1997, 2001, 2002
+   Copyright 1990, 1991, 1992, 1994, 1996, 1997, 2001, 2002, 2003
    Free Software Foundation, Inc.
 
 This file is part of BFD, the Binary File Descriptor library.
@@ -26,7 +26,6 @@
    system, and I'll stick it in for the next release.  */
 
 #define N_HEADER_IN_TEXT(x) 0
-#define BYTES_IN_WORD 4
 
 #define N_TXTOFF(x) 0x20
 #define N_TXTADDR(x) (N_MAGIC(x)==ZMAGIC ? 0x1020 : 0)
 
===================================================================
RCS file: /home/anteater/bucvs/src/bfd/i386dynix.c,v
retrieving revision 1.1
diff -bu -r1.1 /home/anteater/bucvs/src/bfd/i386dynix.c
--- /home/anteater/bucvs/src/bfd/i386dynix.c	2003/03/08 18:50:49	1.1
+++ /home/anteater/bucvs/src/bfd/i386dynix.c	2003/03/08 18:51:16
@@ -1,5 +1,5 @@
 /* BFD back-end for i386 a.out binaries under dynix.
-   Copyright 1994, 1995, 2001 Free Software Foundation, Inc.
+   Copyright 1994, 1995, 2001, 2003 Free Software Foundation, Inc.
 
 This file is part of BFD, the Binary File Descriptor library.
 
@@ -20,8 +20,6 @@
 /* This BFD is currently only tested with gdb, writing object files
    may not work.  */
 
-#define BYTES_IN_WORD	4
-
 #define TEXT_START_ADDR 4096
 #define TARGET_PAGE_SIZE	4096
 #define SEGMENT_SIZE	TARGET_PAGE_SIZE

===================================================================
RCS file: /home/anteater/bucvs/src/bfd/i386lynx.c,v
retrieving revision 1.1
diff -bu -r1.1 /home/anteater/bucvs/src/bfd/i386lynx.c
--- /home/anteater/bucvs/src/bfd/i386lynx.c	2003/03/08 18:52:41	1.1
+++ /home/anteater/bucvs/src/bfd/i386lynx.c	2003/03/08 18:53:10
@@ -1,5 +1,5 @@
 /* BFD back-end for i386 a.out binaries under LynxOS.
-   Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 2001, 2002
+   Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 2001, 2002, 2003
    Free Software Foundation, Inc.
 
 This file is part of BFD, the Binary File Descriptor library.
@@ -18,7 +18,6 @@
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
-#define BYTES_IN_WORD 4
 #define N_SHARED_LIB(x) 0
 
 #define TEXT_START_ADDR 0

===================================================================
RCS file: /home/anteater/bucvs/src/bfd/i386linux.c,v
retrieving revision 1.1
diff -bu -r1.1 /home/anteater/bucvs/src/bfd/i386linux.c
--- /home/anteater/bucvs/src/bfd/i386linux.c	2003/03/08 18:51:45	1.1
+++ /home/anteater/bucvs/src/bfd/i386linux.c	2003/03/08 18:52:08
@@ -1,5 +1,5 @@
 /* BFD back-end for linux flavored i386 a.out binaries.
-   Copyright 1992, 1993, 1994, 1995, 1996, 1997, 2001, 2002
+   Copyright 1992, 1993, 1994, 1995, 1996, 1997, 2001, 2002, 2003
    Free Software Foundation, Inc.
 
 This file is part of BFD, the Binary File Descriptor library.
@@ -23,7 +23,6 @@
 #define	SEGMENT_SIZE TARGET_PAGE_SIZE
 #define TEXT_START_ADDR	0x0
 #define N_SHARED_LIB(x) 0
-#define BYTES_IN_WORD 4
 
 #define MACHTYPE_OK(mtype) ((mtype) == M_386 || (mtype) == M_UNKNOWN)
 
===================================================================
RCS file: /home/anteater/bucvs/src/bfd/i386mach3.c,v
retrieving revision 1.1
diff -bu -r1.1 /home/anteater/bucvs/src/bfd/i386mach3.c
--- /home/anteater/bucvs/src/bfd/i386mach3.c	2003/03/08 18:54:28	1.1
+++ /home/anteater/bucvs/src/bfd/i386mach3.c	2003/03/08 18:54:59
@@ -1,5 +1,5 @@
 /* BFD back-end for i386 a.out binaries.
-   Copyright 1990, 1991, 1993, 1994, 1995, 1997, 2001, 2002
+   Copyright 1990, 1991, 1993, 1994, 1995, 1997, 2001, 2002, 2003
    Free Software Foundation, Inc.
 
 This file is part of BFD, the Binary File Descriptor library.
@@ -28,7 +28,6 @@
 #define	SEGMENT_SIZE	0x1000
 #define TEXT_START_ADDR	0x10000
 #define ARCH 32
-#define BYTES_IN_WORD 4
 /* This macro is only relevant when N_MAGIC(x) == ZMAGIC.  */
 #define N_HEADER_IN_TEXT(x)	1
 
===================================================================
RCS file: /home/anteater/bucvs/src/bfd/m68k4knetbsd.c,v
retrieving revision 1.1
diff -bu -r1.1 /home/anteater/bucvs/src/bfd/m68k4knetbsd.c
--- /home/anteater/bucvs/src/bfd/m68k4knetbsd.c	2003/03/08 18:55:40	1.1
+++ /home/anteater/bucvs/src/bfd/m68k4knetbsd.c	2003/03/08 18:56:06
@@ -1,5 +1,5 @@
 /* BFD back-end for NetBSD/m68k a.out-ish binaries.
-   Copyright 1990, 1991, 1992, 1995, 1998, 2001
+   Copyright 1990, 1991, 1992, 1995, 1998, 2001, 2003
    Free Software Foundation, Inc.
 
 This file is part of BFD, the Binary File Descriptor library.
@@ -18,7 +18,6 @@
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
-#define BYTES_IN_WORD	4
 #define TARGET_IS_BIG_ENDIAN_P
 
 #define TARGET_PAGE_SIZE	0x1000

===================================================================
RCS file: /home/anteater/bucvs/src/bfd/m68klinux.c,v
retrieving revision 1.1
diff -bu -r1.1 /home/anteater/bucvs/src/bfd/m68klinux.c
--- /home/anteater/bucvs/src/bfd/m68klinux.c	2003/03/08 18:56:47	1.1
+++ /home/anteater/bucvs/src/bfd/m68klinux.c	2003/03/08 18:57:09
@@ -1,5 +1,5 @@
 /* BFD back-end for linux flavored m68k a.out binaries.
-   Copyright 1992, 1993, 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2002
+   Copyright 1992, 1993, 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2002, 2003
    Free Software Foundation, Inc.
 
 This file is part of BFD, the Binary File Descriptor library.
@@ -23,7 +23,6 @@
 #define	SEGMENT_SIZE TARGET_PAGE_SIZE
 #define TEXT_START_ADDR	0x0
 #define N_SHARED_LIB(x) 0
-#define BYTES_IN_WORD 4
 
 #define MACHTYPE_OK(mtype) ((mtype) == M_68020 || (mtype) == M_UNKNOWN)
 
===================================================================
RCS file: /home/anteater/bucvs/src/bfd/m68klynx.c,v
retrieving revision 1.1
diff -bu -r1.1 /home/anteater/bucvs/src/bfd/m68klynx.c
--- /home/anteater/bucvs/src/bfd/m68klynx.c	2003/03/08 18:57:46	1.1
+++ /home/anteater/bucvs/src/bfd/m68klynx.c	2003/03/08 18:58:06
@@ -1,5 +1,5 @@
 /* BFD back-end for m68k binaries under LynxOS.
-   Copyright 1990, 1991, 1992, 1993, 1994, 1995, 2001, 2002
+   Copyright 1990, 1991, 1992, 1993, 1994, 1995, 2001, 2002, 2003
    Free Software Foundation, Inc.
 
 This file is part of BFD, the Binary File Descriptor library.
@@ -18,7 +18,6 @@
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
-#define BYTES_IN_WORD 4
 #define N_SHARED_LIB(x) 0
 
 #define TEXT_START_ADDR 0

===================================================================
RCS file: /home/anteater/bucvs/src/bfd/m68knetbsd.c,v
retrieving revision 1.1
diff -bu -r1.1 /home/anteater/bucvs/src/bfd/m68knetbsd.c
--- /home/anteater/bucvs/src/bfd/m68knetbsd.c	2003/03/08 18:58:35	1.1
+++ /home/anteater/bucvs/src/bfd/m68knetbsd.c	2003/03/08 18:58:54
@@ -1,5 +1,5 @@
 /* BFD back-end for NetBSD/m68k a.out-ish binaries.
-   Copyright 1990, 1991, 1992, 1994, 1995, 1997, 1998, 2000, 2001
+   Copyright 1990, 1991, 1992, 1994, 1995, 1997, 1998, 2000, 2001, 2003
    Free Software Foundation, Inc.
 
 This file is part of BFD, the Binary File Descriptor library.
@@ -18,7 +18,6 @@
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
-#define BYTES_IN_WORD	4
 #define TARGET_IS_BIG_ENDIAN_P
 
 /* Our m68k ports use either 4K or 8K pages, but object files always

===================================================================
RCS file: /home/anteater/bucvs/src/bfd/m88kmach3.c,v
retrieving revision 1.1
diff -bu -r1.1 /home/anteater/bucvs/src/bfd/m88kmach3.c
--- /home/anteater/bucvs/src/bfd/m88kmach3.c	2003/03/08 18:59:30	1.1
+++ /home/anteater/bucvs/src/bfd/m88kmach3.c	2003/03/08 18:59:57
@@ -1,5 +1,5 @@
 /* BFD back-end for Motorola m88k a.out (Mach 3) binaries.
-   Copyright 1990, 1991, 1993, 1994, 1995, 2001
+   Copyright 1990, 1991, 1993, 1994, 1995, 2001, 2003
    Free Software Foundation, Inc.
 
 This file is part of BFD, the Binary File Descriptor library.
@@ -21,7 +21,6 @@
 #define	TARGET_PAGE_SIZE	(4096*2)
 #define SEGMENT_SIZE	0x20000
 #define TEXT_START_ADDR	0
-#define BYTES_IN_WORD	4
 #define N_HEADER_IN_TEXT(x)	1 		/* (N_MAGIG(x) == ZMAGIC) */
 #define N_SHARED_LIB(x) 0
 
===================================================================
RCS file: /home/anteater/bucvs/src/bfd/mipsbsd.c,v
retrieving revision 1.1
diff -bu -r1.1 /home/anteater/bucvs/src/bfd/mipsbsd.c
--- /home/anteater/bucvs/src/bfd/mipsbsd.c	2003/03/08 19:00:26	1.1
+++ /home/anteater/bucvs/src/bfd/mipsbsd.c	2003/03/08 19:00:51
@@ -1,5 +1,5 @@
 /* BFD backend for MIPS BSD (a.out) binaries.
-   Copyright 1993, 1994, 1995, 1997, 1998, 1999, 2000, 2001, 2002
+   Copyright 1993, 1994, 1995, 1997, 1998, 1999, 2000, 2001, 2002, 2003
    Free Software Foundation, Inc.
    Written by Ralph Campbell.
 
@@ -19,7 +19,6 @@
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
-#define BYTES_IN_WORD 4
 /* #define ENTRY_CAN_BE_ZERO */
 #define N_HEADER_IN_TEXT(x) 1
 #define N_SHARED_LIB(x) 0

===================================================================
RCS file: /home/anteater/bucvs/src/bfd/newsos3.c,v
retrieving revision 1.1
diff -bu -r1.1 /home/anteater/bucvs/src/bfd/newsos3.c
--- /home/anteater/bucvs/src/bfd/newsos3.c	2003/03/08 19:01:13	1.1
+++ /home/anteater/bucvs/src/bfd/newsos3.c	2003/03/08 19:01:32
@@ -1,5 +1,5 @@
 /* BFD back-end for NewsOS3 (Sony, 68k) binaries.
-   Copyright 1990, 1991, 1994, 1995, 2000, 2001
+   Copyright 1990, 1991, 1994, 1995, 2000, 2001, 2003
    Free Software Foundation, Inc.
 
 This file is part of BFD, the Binary File Descriptor library.
@@ -21,7 +21,6 @@
 #define	TARGET_PAGE_SIZE	4096
 #define	SEGMENT_SIZE	TARGET_PAGE_SIZE
 #define TEXT_START_ADDR 0
-#define BYTES_IN_WORD 4
 
 /* Do not "beautify" the CONCAT* macro args.  Traditional C will not
    remove whitespace added here, and thus will fail to concatenate

===================================================================
RCS file: /home/anteater/bucvs/src/bfd/sparclinux.c,v
retrieving revision 1.1
diff -bu -r1.1 /home/anteater/bucvs/src/bfd/sparclinux.c
--- /home/anteater/bucvs/src/bfd/sparclinux.c	2003/03/08 19:01:53	1.1
+++ /home/anteater/bucvs/src/bfd/sparclinux.c	2003/03/08 19:02:24
@@ -1,5 +1,5 @@
 /* BFD back-end for linux flavored sparc a.out binaries.
-   Copyright 1992, 1993, 1994, 1995, 1996, 1997, 2000, 2001, 2002
+   Copyright 1992, 1993, 1994, 1995, 1996, 1997, 2000, 2001, 2002, 2003
    Free Software Foundation, Inc.
 
 This file is part of BFD, the Binary File Descriptor library.
@@ -24,7 +24,6 @@
 #define SEGMENT_SIZE		TARGET_PAGE_SIZE
 #define TEXT_START_ADDR		0x0
 #define N_SHARED_LIB(x)		0
-#define BYTES_IN_WORD		4
 
 #define MACHTYPE_OK(mtype) ((mtype) == M_SPARC || (mtype) == M_UNKNOWN)
 
===================================================================
RCS file: /home/anteater/bucvs/src/bfd/sparclynx.c,v
retrieving revision 1.1
diff -bu -r1.1 /home/anteater/bucvs/src/bfd/sparclynx.c
--- /home/anteater/bucvs/src/bfd/sparclynx.c	2003/03/08 19:04:28	1.1
+++ /home/anteater/bucvs/src/bfd/sparclynx.c	2003/03/08 19:04:59
@@ -1,6 +1,6 @@
 /* BFD support for Sparc binaries under LynxOS.
    Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1997, 1998, 2000,
-   2001, 2002 Free Software Foundation, Inc.
+   2001, 2002, 2003 Free Software Foundation, Inc.
 
 This file is part of BFD, the Binary File Descriptor library.
 
@@ -19,7 +19,6 @@
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
 #if 0
-#define BYTES_IN_WORD 4
 #define N_SHARED_LIB(x) 0
 
 #define TEXT_START_ADDR 0

===================================================================
RCS file: /home/anteater/bucvs/src/bfd/sparcnetbsd.c,v
retrieving revision 1.1
diff -bu -r1.1 /home/anteater/bucvs/src/bfd/sparcnetbsd.c
--- /home/anteater/bucvs/src/bfd/sparcnetbsd.c	2003/03/08 19:05:21	1.1
+++ /home/anteater/bucvs/src/bfd/sparcnetbsd.c	2003/03/08 19:05:39
@@ -1,5 +1,5 @@
 /* BFD back-end for NetBSD/sparc a.out-ish binaries.
-   Copyright 1990, 1991, 1992, 1994, 1995, 1997, 1998, 2000, 2001
+   Copyright 1990, 1991, 1992, 1994, 1995, 1997, 1998, 2000, 2001, 2003
    Free Software Foundation, Inc.
 
 This file is part of BFD, the Binary File Descriptor library.
@@ -18,7 +18,6 @@
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
-#define BYTES_IN_WORD	4
 #define TARGET_IS_BIG_ENDIAN_P
 
 /* SPARC chips use either 4K or 8K pages, but object files always

===================================================================
RCS file: /home/anteater/bucvs/src/bfd/vaxbsd.c,v
retrieving revision 1.1
diff -bu -r1.1 /home/anteater/bucvs/src/bfd/vaxbsd.c
--- /home/anteater/bucvs/src/bfd/vaxbsd.c	2003/03/08 19:06:02	1.1
+++ /home/anteater/bucvs/src/bfd/vaxbsd.c	2003/03/08 19:08:17
@@ -1,5 +1,5 @@
 /* BFD back-end for BSD and Ultrix/VAX (1K page size) a.out-ish binaries.
-   Copyright 2002 Free Software Foundation, Inc.
+   Copyright 2002, 2003 Free Software Foundation, Inc.
 
 This file is part of BFD, the Binary File Descriptor library.
 
@@ -18,7 +18,6 @@
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
 #define N_HEADER_IN_TEXT(x) 0
-#define BYTES_IN_WORD 4
 #define ENTRY_CAN_BE_ZERO
 #define N_SHARED_LIB(x) 0 /* Avoids warning */
 #define TEXT_START_ADDR 0
@@ -26,7 +25,9 @@
 #define SEGMENT_SIZE TARGET_PAGE_SIZE
 #define DEFAULT_ARCH bfd_arch_vax
 
-/* Do not "beautify" the CONCAT* macro args.  Traditional C will not   remove whitespace added here, and thus will fail to concatenate   the tokens.  */
+/* Do not "beautify" the CONCAT* macro args.  Traditional C will not   
+   remove whitespace added here, and thus will fail to concatenate the 
+   tokens.  */
 #define MY(OP) CONCAT2 (vaxbsd_,OP)
 
 #define TARGETNAME "a.out-vax-bsd"

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH/RFC] Remove meaningless definitions
  2003-03-08 19:23     ` Elias Athanasopoulos
@ 2003-03-12  9:52       ` Nick Clifton
  0 siblings, 0 replies; 4+ messages in thread
From: Nick Clifton @ 2003-03-12  9:52 UTC (permalink / raw)
  To: Elias Athanasopoulos; +Cc: binutils

Hi Elias,

> bfd/ChangeLog
> 
> 2003-03-08  Elias Athanasopoulos  <elathan@phys.uoa.gr>
> 
> 	* aout-cris.c (BYTES_IN_WORD): Don't define.
> 	aout-encap.c: Likewise.
> 	aout-ns32k.c: Likewise.
> 	aout-tic30.c: Likewise.
> 	hp300bsd.c: Likewise.
> 	i386aout.c: Likewise.
> 	i386dynix.c: Likewise.
> 	i386linux.c: Likewise.
> 	i386lynx.c: Likewise.
> 	i386mach3.c: Likewise.
> 	m68k4knetbsd.c: Likewise.
> 	m68klinux.c: Likewise.
> 	m68klynx.c: Likewise.
> 	m68knetbsd.c: Likewise.
> 	m88kmach3.c: Likewise.
> 	mipsbsd.c: Likewise.
> 	newsos3.c: Likewise.
> 	sparclinux.c: Likewise.
> 	sparclynx.c: Likewise.
> 	sparcnetbsd.c: Likewise.
> 	vaxbsd.c: Likewise. Fix comment formatting.

Approved - please apply.

Cheers
        Nick

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-03-12  9:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-09 22:31 [PATCH/RFC] Remove meaningless definitions Elias Athanasopoulos
     [not found] ` <m3fzquvdpx.fsf@north-pole.nickc.cambridge.redhat.com>
2003-03-06 16:46   ` Nick Clifton
2003-03-08 19:23     ` Elias Athanasopoulos
2003-03-12  9:52       ` Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).