Vibhav Garg <vibhtech@xxxxxxxxx> writes: > I am trying to do some data-flow analysis for a > project for which I am adding a new pass to the > optimization code. > > I have modified the Makefiles to properly compile the > code, and it is able to create the object files > correctly, but fails at this point > > ranlib libbackend.a > gcc -g -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING > -DIN_GCC -W -Wall -Wwrite- > strings -Wstrict-prototypes -Wmissing-prototypes > -Wold-style-definition -DHAV > E_CONFIG_H -o cc1.exe \ > c-parse.o c-lang.o stub-objc.o attribs.o > c-errors.o c-lex.o c-pragma.o c > -decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o > c-opts.o c-format.o c-sem > antics.o c-incpath.o cppdefault.o c-ppoutput.o > c-cppbuiltin.o prefix.o c-objc-co > mmon.o c-dump.o c-pch.o cygwin2.o c-gimplify.o > tree-mudflap.o c-pretty-print.o m > ain.o libbackend.a ../libcpp/libcpp.a > ../libcpp/libcpp.a -lintl -liconv ../libi > berty/libiberty.a > libbackend.a(tree-optimize.o): In function > `init_tree_optimization_passes': > /cygdrive/c/gcc-4.0.2/gcc/tree-optimize.c:337: > undefined reference to `_pass_dfa > > Can anyone tell me what the problem might be and how > to fix it? There is no _pass_dfa in the normal gcc sources. I conclude that the problem is due to your patch. Did you add your new .o files to OBJS-common in Makefile.in? Ian