This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[patch] Alpha/ECOFF: invalid lvalue in assignment
- From: "Maciej W. Rozycki" <macro at ds2 dot pg dot gda dot pl>
- To: binutils at sources dot redhat dot com
- Date: Mon, 31 May 2004 14:00:55 +0200 (CEST)
- Subject: [patch] Alpha/ECOFF: invalid lvalue in assignment
- Organization: Technical University of Gdansk
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)