This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH/RFC] Remove meaningless definitions


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"
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]