md include facility patch uses alloca in HOST file breaks !gcc builds
Alan Matsuoka
alanm@redhat.com
Sun Nov 4 02:40:00 GMT 2001
"Kaveh R. Ghazi" wrote:
>
> Alan,
>
> I believe your recent patch to gensupport.c breaks non-gcc builds
> because it calls alloca in a HOST module which doesn't link with
> libiberty to get the alloca backup function.
>
> Here's what I get on solaris2.7 using cc:
>
> > cc -DIN_GCC -g -DHAVE_CONFIG_H -DGENERATOR_FILE -o genflags \
> > genflags.o rtl.o read-rtl.o bitmap.o ggc-none.o gensupport.o
> > hashtab.o safe-ctype.o print-rtl.o errors.o ` case "obstack.o" in ?*)
> > echo obstack.o ;; esac ` ` case "" in ?*) echo ;; esac ` ` case "" in
> > ?*) echo ;; esac ` ` case "" in ?*) echo ;; esac `
> > ild: (undefined symbol) C_alloca -- referenced in the text segment of
> > gensupport.o
> > make[2]: *** [genflags] Error 5
>
> Would you please change the process_include() function to use xmalloc
> instead?
Will do.
--
Alan Matsuoka
GCC Engineering
Red Hat Canada, Ltd
mailto:alanm@redhat.com Tel: (416) 482-2661 x250 / Fax: (416) 482-6299
More information about the Gcc-bugs
mailing list