This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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] fix target/10331: [x86 -> SH] can't compile c++ crosscompilerpart of gcc crosscompiler for sh-elf


See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10331

The error
.../libiberty/hashtab.c:204: error: `free' undeclared (first use in this function)
when building gcc for sh appears to be caused by fixproto running
when it shouldn't.  On ppc, gcc/config/t-linux is used, and clears
STMP_FIXPROTO.  Blindly copying that line to gcc/config/sh/t-linux
allows the build to complete.  Here's the patch:

--- gcc-3.3/gcc/config/sh/t-linux.old	Wed Jun  4 13:01:39 2003
+++ gcc-3.3/gcc/config/sh/t-linux	Wed Jun  4 13:02:12 2003
@@ -1,3 +1,6 @@
+# Don't run fixproto
+STMP_FIXPROTO =
+
 TARGET_LIBGCC2_CFLAGS = -fpic
 LIB1ASMFUNCS_CACHE = _ic_invalidate


- Dan


--
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045


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