This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: help on - adding a new pass to gcc
- From: "Bingfeng Mei" <bmei at broadcom dot com>
- To: ddmetro <puzzlesdj at gmail dot com>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Tue, 10 Nov 2009 08:37:20 -0800
- Subject: RE: help on - adding a new pass to gcc
- References: <26286452.post@talk.nabble.com>
Did you add your new object file to OBJS-common list in Makefile.in?
Bingfeng
> -----Original Message-----
> From: gcc-owner@gcc.gnu.org [mailto:gcc-owner@gcc.gnu.org] On
> Behalf Of ddmetro
> Sent: 10 November 2009 16:25
> To: gcc@gcc.gnu.org
> Subject: help on - adding a new pass to gcc
>
>
> Hi All,
> We are adding a new pass for - structural hazard
> optimization - in
> gcc.
> We have added a rtl_opt_pass variable(pass_sched3)
> declaration in
> tree-pass.h and defined the same in a new file - sched-by-category.c
> We then added a target in gcc/Makefile.in, as follows:
> sched-by-category.o : sched-by-category.c $(CONFIG_H) $(SYSTEM_H)
> coretypes.h $(TM_H) \
> $(RTL_H) $(SCHED_INT_H) $(REGS_H) hard-reg-set.h
> $(FLAGS_H) insn-config.h
> \
> $(FUNCTION_H) $(INSN_ATTR_H) $(TOPLEV_H) $(RECOG_H)
> except.h $(PARAMS_H)
> \
> $(TM_P_H) $(TARGET_H) $(CFGLAYOUT_H) $(TIMEVAR_H) tree-pass.h \
> $(DBGCNT_H)
>
> We are getting an error in passes.c - undefined reference to
> 'pass_sched3'
> Kindly guide us as to what is wrong in our approach
> of adding a new
> file to gcc build.
>
> Thanking You,
> Dhiraj.
> --
> View this message in context:
> http://old.nabble.com/help-on---adding-a-new-pass-to-gcc-tp262
> 86452p26286452.html
> Sent from the gcc - Dev mailing list archive at Nabble.com.
>
>
>