This is the mail archive of the 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: Generator programs can only be built with optimization enabled?

I think that, after Zack's change, the generator programs that include
rtl.h should be linked with build/vec.o. That may not be necessary when
optimizing, but it would avoid this problem. Do you agree?
Well, if it fixes the bug, yes: I prefer to fix this in the makefile than with #ifdef GENERATOR_FILE's here and there.

An untested patch to do so is attached. You can try it and, if it fails, there is also Rainer Orth's patch in comment #14 of the PR.

2006-06-13  Paolo Bonzini  <>

	* (BUILD_RTL): Add build/vec.o.
	(build/genextract, build/genautomata): Remove dependency on it.

---	(revision 114487)
+++	(working copy)
@@ -854,7 +854,7 @@ LDEXP_LIB = @LDEXP_LIB@
 # even if we are cross-building GCC.
-BUILD_RTL = build/rtl.o build/read-rtl.o build/ggc-none.o \
+BUILD_RTL = build/rtl.o build/read-rtl.o build/ggc-none.o build/vec.o \
 	    build/min-insn-modes.o build/gensupport.o build/print-rtl.o
 BUILD_ERRORS = build/errors.o
@@ -3017,9 +3020,6 @@ genprogmd = attr attrtab automata codes 
 $(genprogmd:%=build/gen%$(build_exeext)): $(BUILD_RTL) $(BUILD_ERRORS)
 # These programs need files over and above what they get from the above list.
-build/genextract$(build_exeext) : build/vec.o
-build/genautomata$(build_exeext) : build/vec.o
 build/genautomata$(build_exeext) : BUILD_LIBS += -lm
 # These programs are not linked with the MD reader.

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