This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
RE: patches for Irix binutils 2.18
ok, I did more diligence on obstack problem.
iris1 25% gmake hash.o
/usr/WorkShop/usr/bin/ncc -w -DHAVE_CONFIG_H -I. -I/src/binutils-2.18/gas -I. -D
_GNU_SOURCE -I. -I/src/binutils-2.18/gas -I../bfd -I/src/binutils-2.18/gas/confi
g -I/src/binutils-2.18/gas/../include -I/src/binutils-2.18/gas/.. -I/src/binutil
s-2.18/gas/../bfd -DLOCALEDIR="\"/usr/local/share/locale\"" -g -c /src/binuti
ls-2.18/gas/hash.c
"/src/binutils-2.18/gas/hash.c", line 119: error(3611): a value of type
"char *" cannot be assigned to an entity of type
"struct hash_entry **"
ret->table = obstack_alloc (&ret->memory, alloc);
^
How about:
diff -u -r binutils-2.18.orig/include/obstack.h binutils-2.18/include/obstack.h
--- binutils-2.18.orig/include/obstack.h 2005-05-10 03:21:08.000000000 -0700
+++ binutils-2.18/include/obstack.h 2008-10-20 13:10:57.453125000 -0700
@@ -123,7 +123,7 @@
#endif
#ifndef __INT_TO_PTR
-# define __INT_TO_PTR(P) ((P) + (char *) 0)
+# define __INT_TO_PTR(P) ((void*) ((P) + (char *) 0))
#endif
/* We need the type of the resulting object. If __PTRDIFF_TYPE__ is
?
This fixes "gmake hash.o".
I just started a full gcc-4.3.2/binutils-2.18/gmp/mpfr build. It'll be a while.
Thanks,
- Jay