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]

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

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

		Thanks,
		--Kaveh
--
Kaveh R. Ghazi			Engagement Manager / Project Services
ghazi@caip.rutgers.edu		Qwest Internet Solutions


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