# ChangeLog for dev-util/xmingw-binutils
# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/xmingw-binutils/ChangeLog,v 1.7 2005/05/27 17:32:05 cretin Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/xmingw-binutils/ChangeLog,v 1.8 2005/11/10 22:22:41 cretin Exp $
+
+ 10 Nov 2005; Stefan Jones <cretin@gentoo.org>
+ +files/xmingw-binutils-2.15.94.20050118.1-gcc4.patch,
+ xmingw-binutils-2.15.94.20050118.1.ebuild:
+ Fix compile with gcc4, bug #112109
+ Fix found by Dario Birtic
*xmingw-binutils-2.15.94.20050118.1 (27 May 2005)
-MD5 d4f0c6ba11fd69f2938e6c2609163f0e xmingw-binutils-2.15.90.0.2.ebuild 945
-MD5 748be0980042c122ce895243b5d9b971 xmingw-binutils-2.15.94.20050118.1.ebuild 778
-MD5 c377ec26caf3b2eeb14d0244902ece34 ChangeLog 851
-MD5 d5a08b81c465636d4c7fd5286c6e6e00 metadata.xml 225
+MD5 63f03c72b1f326beed3613efd2520d51 ChangeLog 1066
MD5 64fe03ab4e08a6313bc2b3f5c7423e83 files/digest-xmingw-binutils-2.15.90.0.2 157
MD5 4ec7e1dce377315f3376b62ea328d8a7 files/digest-xmingw-binutils-2.15.94.20050118.1 85
+MD5 cb4736d7410f9e8a58293864fe131193 files/xmingw-binutils-2.15.94.20050118.1-gcc4.patch 1812
+MD5 d5a08b81c465636d4c7fd5286c6e6e00 metadata.xml 225
+MD5 d4f0c6ba11fd69f2938e6c2609163f0e xmingw-binutils-2.15.90.0.2.ebuild 945
+MD5 c9604b56352851a511ad164fd46baddf xmingw-binutils-2.15.94.20050118.1.ebuild 822
--- /dev/null
+Submitted By: Alexander E. Patrakov
+Date: 2005-10-10
+Initial Package Version: 2.15.94.0.2.2
+Upstream Status: Backport from 2.16.1
+Origin: Alexander E. Patrakov
+Description: Fixes compilation by gcc4 (e.g. from Fedora Core 4 hosts)
+
+--- binutils-2.15.94.0.2.2/gas/tc.h 2004-11-22 20:33:31.000000000 +0000
++++ binutils-2.16.1/gas/tc.h 2005-02-17 13:46:00.000000000 +0000
+@@ -24,25 +25,6 @@
+
+ extern const pseudo_typeS md_pseudo_table[];
+
+-/* JF moved this here from as.h under the theory that nobody except MACHINE.c
+- and write.c care about it anyway. */
+-
+-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;
+-};
+-
+-typedef struct relax_type relax_typeS;
+-
+ extern const int md_reloc_size; /* Size of a relocation record. */
+
+ char * md_atof (int, char *, int *);
+--- binutils-2.15.94.0.2.2/gas/as.h 2004-09-15 19:05:03.000000000 +0000
++++ binutils-2.16.1/gas/as.h 2005-04-13 17:58:40.000000000 +0000
+@@ -397,6 +384,22 @@
+ /* Enough bits for address, but still an integer type.
+ Could be a problem, cross-assembling for 64-bit machines. */
+ typedef addressT relax_addressT;
++
++struct relax_type
++{
++ /* Forward reach. Signed number. > 0. */
++ offsetT rlx_forward;
++ /* Backward reach. Signed number. < 0. */
++ offsetT 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;
++};
++
++typedef struct relax_type relax_typeS;
+ \f
+ /* main program "as.c" (command arguments etc). */
+
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/xmingw-binutils/xmingw-binutils-2.15.94.20050118.1.ebuild,v 1.1 2005/05/27 17:32:05 cretin Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/xmingw-binutils/xmingw-binutils-2.15.94.20050118.1.ebuild,v 1.2 2005/11/10 22:22:41 cretin Exp $
-inherit eutils
+inherit eutils base
MY_P=binutils-2.15.94-20050118-1
S=${WORKDIR}/${MY_P}
DEPEND=""
+PATCHES="${FILESDIR}/${P}-gcc4.patch"
+
src_compile() {
./configure \
--target=i386-mingw32msvc \