This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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] crosstool: alpha: fix building gcc 3.5


alpha: fix building gcc 3.5

This is a patch from Maciej W. Rozycki  <macro@ds2.pg.gda.pl>,
posted to binutils@sources.redhat.com on 2004-05-31

  Hello,

   Building for alpha-linux fails with gcc 3.5 for bfd/coff-alpha.c due to
   an "invalid lvalue in assignment" error.  Here's a fix.

   2004-05-31  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>

        * coff-alpha.c (alpha_relocate_section): Set used_by_bfd directly
          as ecoff_section_data() does not return a valid lvalue.

   OK to apply?

   Maciej

It was subsequently approved, but I don't know if it was applied or not.
In any case, it seems to allow at least gcc-2.95.3 + glibc-2.2.5 to compile
on alpha, which does not work without this change.

Signed-off-by: Horms <horms@verge.net.au>

 patches/binutils-2.15/binutils-2.15-alpha-coff-invalid_lvalue.patch |   62 ++++++++++
 1 file changed, 62 insertions(+)

964d8056fdff4203126391c819894bd4c5f34daa
diff --git a/patches/binutils-2.15/binutils-2.15-alpha-coff-invalid_lvalue.patch b/patches/binutils-2.15/binutils-2.15-alpha-coff-invalid_lvalue.patch
new file mode 100644
index 0000000..de681d5
--- /dev/null
+++ b/patches/binutils-2.15/binutils-2.15-alpha-coff-invalid_lvalue.patch
@@ -0,0 +1,62 @@
+From binutils-return-33948-listarch-binutils=sources dot redhat dot com at sources dot redhat dot com Mon May 31 12:01:05 2004
+Return-Path: <binutils-return-33948-listarch-binutils=sources dot redhat dot com at sources dot redhat dot com>
+Delivered-To: listarch-binutils at sources dot redhat dot com
+Received: (qmail 32345 invoked by alias); 31 May 2004 12:01:04 -0000
+Mailing-List: contact binutils-help at sources dot redhat dot com; run by ezmlm
+Precedence: bulk
+List-Subscribe: <mailto:binutils-subscribe at sources dot redhat dot com>
+List-Archive: <http://sources.redhat.com/ml/binutils/>
+List-Post: <mailto:binutils at sources dot redhat dot com>
+List-Help: <mailto:binutils-help at sources dot redhat dot com>, <http://sources dot redhat dot com/ml/#faqs>
+Sender: binutils-owner at sources dot redhat dot com
+Delivered-To: mailing list binutils at sources dot redhat dot com
+Received: (qmail 32320 invoked from network); 31 May 2004 12:01:00 -0000
+Received: from unknown (HELO jurand.ds.pg.gda.pl) (153.19.208.2)
+  by sourceware dot org with SMTP; 31 May 2004 12:01:00 -0000
+Received: by jurand.ds.pg.gda.pl (Postfix, from userid 1011)
+	id 8C2F84AC7D; Mon, 31 May 2004 14:00:55 +0200 (CEST)
+Received: from localhost (localhost [127.0.0.1])
+	by jurand dot ds dot pg dot gda dot pl (Postfix) with ESMTP id B8147475C5
+	for <binutils at sources dot redhat dot com>; Mon, 31 May 2004 14:00:55 +0200 (CEST)
+Date: Mon, 31 May 2004 14:00:55 +0200 (CEST)
+From: "Maciej W dot  Rozycki" <macro at ds2 dot pg dot gda dot pl>
+To: binutils at sources dot redhat dot com
+Subject: [patch] Alpha/ECOFF: invalid lvalue in assignment
+Message-ID: <Pine.LNX.4.55.0405311355150.18445@jurand.ds.pg.gda.pl>
+Organization: Technical University of Gdansk
+MIME-Version: 1.0
+Content-Type: TEXT/PLAIN; charset=US-ASCII
+
+Hello,
+
+ Building for alpha-linux fails with gcc 3.5 for bfd/coff-alpha.c due to 
+an "invalid lvalue in assignment" error.  Here's a fix.
+
+2004-05-31  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
+
+	* coff-alpha.c (alpha_relocate_section): Set used_by_bfd directly 
+	as ecoff_section_data() does not return a valid lvalue.
+
+ OK to apply?
+
+  Maciej
+
+-- 
++  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
++--------------------------------------------------------------+
++        e-mail: macro@ds2.pg.gda.pl, PGP key available        +
+
+binutils-2.15.91-20040527-gcc3.patch
+diff -up --recursive --new-file binutils-2.15.91-20040527.macro/bfd/coff-alpha.c binutils-2.15.91-20040527/bfd/coff-alpha.c
+--- binutils-2.15.91-20040527.macro/bfd/coff-alpha.c	2004-04-30 16:34:24.000000000 +0000
++++ binutils-2.15.91-20040527/bfd/coff-alpha.c	2004-05-30 10:57:24.000000000 +0000
+@@ -1455,7 +1455,7 @@ alpha_relocate_section (output_bfd, info
+ 	  amt = sizeof (struct ecoff_section_tdata);
+ 	  lita_sec_data = ((struct ecoff_section_tdata *)
+ 			   bfd_zalloc (input_bfd, amt));
+-	  ecoff_section_data (input_bfd, lita_sec) = lita_sec_data;
++	  lita_sec->used_by_bfd = lita_sec_data;
+ 	}
+ 
+       if (lita_sec_data->gp != 0)
+


--
For unsubscribe information see http://sourceware.org/lists.html#faq


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