This is the mail archive of the gcc@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: Adding a new gcc dir


On 3/6/07, Paulo J. Matos <pocm@soton.ac.uk> wrote:
Hi all,

I've just added a new gcc subdir : head/gcc/myproj with structures and
utilities for my ipa pass which lives in head/gcc. Now I have to tell
gcc to compile the files inside myproj. Is there a standard way to do
this? I've looked into head/gcc/Makefile.in but it seem quite
cluttered and I don't really know where to begin since the gcc build
is quite complex.

Any suggestions? (Probably I can have my Makefile.in in myproj dir)
but then where should I tell gcc to compile them)


Thank you for the issue on C90, which I will adhere to. Still, I cannot compile my files living on a new dir. So, exactly what I did. Under gcc I created a subdir gsvt with files symbol-tables.c, symbol-tables.h and symbol-tables-priv.h. My pass which requires these files to build is with all other passes inside gcc and it is called ipa-gsvt-pass.c. So, I have this in gcc/Makefile.in In OBJS-common I added: ipa-gsvt-pass.o symbol-tables.o Then I created a target for my pass and symbol-tables: ipa-gsvt-pass.o : ipa-gsvt-pass.c ... symbol-tables.o : gsvt/symbol-tables.c gsvt/symbol-tables.h gsvt/symbol-tables-priv.h ../../../acocc/data_structures/trie/trie.o

Everything seems to compile perfectly but when linking I get:
i686-pc-linux-gnu-ar rc libbackend.a tree-chrec.o
tree-scalar-evolution.o tree-data-ref.o tree-cfg.o tree-dfa.o
tree-eh.o tree-ssa.o tree-optimize.o tree-gimple.o gimplify.o
tree-pretty-print.o tree-into-ssa.o ipa-gsvt-pass.o symbol-tables.o
tree-outof-ssa.o tree-ssa-ccp.o tree-vn.o tree-ssa-uncprop.o
tree-ssa-dce.o  tree-ssa-copy.o tree-nrv.o tree-ssa-copyrename.o
tree-ssa-pre.o tree-ssa-live.o tree-ssa-operands.o tree-ssa-alias.o
tree-ssa-phiopt.o tree-ssa-forwprop.o tree-nested.o tree-ssa-dse.o
tree-ssa-dom.o domwalk.o tree-tailcall.o gimple-low.o tree-iterator.o
tree-phinodes.o tree-ssanames.o tree-sra.o tree-complex.o
tree-vect-generic.o tree-ssa-loop.o tree-ssa-loop-niter.o
tree-ssa-loop-manip.o tree-ssa-threadupdate.o tree-vectorizer.o
tree-vect-analyze.o tree-vect-transform.o tree-ssa-loop-ivcanon.o
tree-ssa-propagate.o tree-ssa-address.o tree-ssa-math-opts.o
tree-ssa-loop-ivopts.o tree-if-conv.o tree-ssa-loop-unswitch.o alias.o
bb-reorder.o bitmap.o builtins.o caller-save.o calls.o cfg.o cfganal.o
cfgbuild.o cfgcleanup.o cfglayout.o cfgloop.o cfgloopanal.o
cfgloopmanip.o loop-init.o loop-unswitch.o loop-unroll.o cfgrtl.o
combine.o conflict.o convert.o coverage.o cse.o cselib.o dbxout.o
ddg.o tree-ssa-loop-ch.o loop-invariant.o tree-ssa-loop-im.o debug.o
df.o diagnostic.o dojump.o dominance.o loop-doloop.o dwarf2asm.o
dwarf2out.o emit-rtl.o except.o explow.o loop-iv.o expmed.o expr.o
final.o flow.o fold-const.o function.o gcse.o genrtl.o ggc-common.o
global.o graph.o gtype-desc.o haifa-sched.o hooks.o ifcvt.o
insn-attrtab.o insn-emit.o insn-modes.o insn-extract.o insn-opinit.o
insn-output.o insn-peep.o insn-recog.o integrate.o intl.o jump.o
langhooks.o lcm.o lists.o local-alloc.o loop.o mode-switching.o
modulo-sched.o optabs.o options.o opts.o params.o postreload.o
postreload-gcse.o predict.o insn-preds.o pointer-set.o print-rtl.o
print-tree.o profile.o value-prof.o var-tracking.o real.o recog.o
reg-stack.o regclass.o regmove.o regrename.o reload.o reload1.o
reorg.o resource.o rtl.o rtlanal.o rtl-error.o sbitmap.o sched-deps.o
sched-ebb.o sched-rgn.o sched-vis.o sdbout.o simplify-rtx.o sreal.o
stmt.o stor-layout.o stringpool.o targhooks.o timevar.o toplev.o
tracer.o tree.o tree-dump.o varasm.o varray.o vec.o version.o
vmsdbgout.o xcoffout.o alloc-pool.o et-forest.o cfghooks.o bt-load.o
pretty-print.o ggc-page.o web.o passes.o tree-profile.o rtlhooks.o
cfgexpand.o lambda-mat.o lambda-trans.o      lambda-code.o
tree-loop-linear.o tree-ssa-sink.o tree-vrp.o tree-stdarg.o
tree-cfgcleanup.o tree-ssa-reassoc.o tree-ssa-structalias.o
tree-object-size.o i386.o  host-linux.o tree-inline.o cgraph.o
cgraphunit.o tree-nomudflap.o ipa.o ipa-inline.o ipa-utils.o
ipa-reference.o ipa-pure-const.o ipa-type-escape.o ipa-prop.o ipa-cp.o
i686-pc-linux-gnu-ar: symbol-tables.o: No such file or directory

And in fact there is no symbol-tables.o but I saw it being compiled so
I wonder where it has gone to.


Any suggestions ?? Regards,

Paulo Matos

Regards,

--
Paulo Jorge Matos - pocm at soton.ac.uk
http://www.personal.soton.ac.uk/pocm
PhD Student @ ECS
University of Southampton, UK



--
Paulo Jorge Matos - pocm at soton.ac.uk
http://www.personal.soton.ac.uk/pocm
PhD Student @ ECS
University of Southampton, UK


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