Subject: netbsd-2-1-RELEASE build failure
To: None <netbsd-users@NetBSD.org>
From: Masao Uebayashi <uebayasi@gmail.com>
List: netbsd-users
Date: 07/29/2007 12:44:36
Hi!

In case anyone cares, this is a patch to fix netbsd-2-1-RELEASE build
failure.

(Mmm, using internet as a backup.)

Masao

Index: tools/binutils/../../gnu/dist/binutils/gas/as.h
===================================================================
RCS file: /src/netbsd/cvsroot/src/gnu/dist/binutils/gas/as.h,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 as.h
--- tools/binutils/../../gnu/dist/binutils/gas/as.h	26 Nov 2003 11:34:10 -0000	1.1.1.1
+++ tools/binutils/../../gnu/dist/binutils/gas/as.h	29 Jul 2007 03:39:53 -0000
@@ -612,6 +612,8 @@
 
 #include "expr.h"		/* Before targ-*.h */
 
+#include "tc-targ.h"
+
 /* this one starts the chain of target dependant headers */
 #include "targ-env.h"
 
Index: tools/binutils/../../gnu/dist/binutils/gas/tc-targ.h
===================================================================
RCS file: tools/binutils/../../gnu/dist/binutils/gas/tc-targ.h
diff -N tools/binutils/../../gnu/dist/binutils/gas/tc-targ.h
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tools/binutils/../../gnu/dist/binutils/gas/tc-targ.h	29 Jul 2007 03:39:54 -0000
@@ -0,0 +1,13 @@
+struct relax_type
+{
+  /* Forward reach. Signed number. > 0.  */
+  long rlx_forward;
+  /* Backward reach. Signed number. < 0.  */
+  long rlx_backward;
+
+  /* Bytes length of this address.  */
+  unsigned char rlx_length;
+
+  /* Next longer relax-state.  0 means there is no 'next' relax-state.  */
+  relax_substateT rlx_more;
+};
Index: tools/binutils/../../gnu/dist/binutils/gas/tc.h
===================================================================
RCS file: /src/netbsd/cvsroot/src/gnu/dist/binutils/gas/tc.h,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 tc.h
--- tools/binutils/../../gnu/dist/binutils/gas/tc.h	26 Nov 2003 11:34:21 -0000	1.1.1.1
+++ tools/binutils/../../gnu/dist/binutils/gas/tc.h	29 Jul 2007 03:38:56 -0000
@@ -27,6 +27,7 @@
 /* JF moved this here from as.h under the theory that nobody except MACHINE.c
    and write.c care about it anyway.  */
 
+#if 0
 struct relax_type
 {
   /* Forward reach. Signed number. > 0.  */
@@ -40,6 +41,7 @@
   /* Next longer relax-state.  0 means there is no 'next' relax-state.  */
   relax_substateT rlx_more;
 };
+#endif
 
 typedef struct relax_type relax_typeS;