This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
patch for i960 'not a lvalue' bug
- To: binutils at sources dot redhat dot com
- Subject: patch for i960 'not a lvalue' bug
- From: Geoff Keating <geoffk at geoffk dot org>
- Date: Mon, 13 Nov 2000 21:42:39 -0800
- Reply-to: Geoff Keating <geoffk at redhat dot com>
The i960 backend seems to firmly believe that symbol_next
is just a macro... This works around it. I didn't want
to add backpointers just for this one case.
OK to commit?
--
- Geoffrey Keating <geoffk@geoffk.org>
===File ~/patches/cygnus/nortel-boutlvalue.patch============
2000-11-13 Geoffrey Keating <geoffk@redhat.com>
* config/obj-bout.c (obj_crawl_symbol_chain): Don't take
the address of a function result.
Index: gas/config/obj-bout.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gas/config/obj-bout.c,v
retrieving revision 1.30
diff -u -p -r1.30 obj-bout.c
--- obj-bout.c 2000/09/03 17:33:30 1.30
+++ obj-bout.c 2000/11/14 05:29:04
@@ -310,7 +310,7 @@ obj_crawl_symbol_chain (headers)
}
else /* .Stabd case. */
symbolP->sy_name_offset = 0;
- symbolPP = &(symbol_next (symbolP));
+ symbolPP = &(symbolP->sy_next);
}
else
{
============================================================