This is the mail archive of the gcc-bugs@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]

Re: md include facility patch uses alloca in HOST file breaks !gcc builds

[Get raw message]
"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


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