From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10796 invoked by alias); 10 Nov 2009 16:37:46 -0000 Received: (qmail 10785 invoked by uid 22791); 10 Nov 2009 16:37:46 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mms1.broadcom.com (HELO mms1.broadcom.com) (216.31.210.17) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 10 Nov 2009 16:37:41 +0000 Received: from [10.16.192.224] by mms1.broadcom.com with ESMTP (Broadcom SMTP Relay (Email Firewall v6.3.2)); Tue, 10 Nov 2009 08:37:22 -0800 X-Server-Uuid: 02CED230-5797-4B57-9875-D5D2FEE4708A Received: from SJEXCHCCR02.corp.ad.broadcom.com ([10.16.192.130]) by SJEXCHHUB01.corp.ad.broadcom.com ([10.16.192.224]) with mapi; Tue, 10 Nov 2009 08:37:22 -0800 From: "Bingfeng Mei" To: ddmetro , "gcc@gcc.gnu.org" Date: Tue, 10 Nov 2009 16:37:00 -0000 Subject: RE: help on - adding a new pass to gcc Message-ID: <7FB04A5C213E9943A72EE127DB74F0AD93CCCB4031@SJEXCHCCR02.corp.ad.broadcom.com> References: <26286452.post@talk.nabble.com> In-Reply-To: <26286452.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-11/txt/msg00287.txt.bz2 Did you add your new object file to OBJS-common list in Makefile.in?=20 Bingfeng > -----Original Message----- > From: gcc-owner@gcc.gnu.org [mailto:gcc-owner@gcc.gnu.org] On=20 > Behalf Of ddmetro > Sent: 10 November 2009 16:25 > To: gcc@gcc.gnu.org > Subject: help on - adding a new pass to gcc >=20 >=20 > Hi All, > We are adding a new pass for - structural hazard=20 > optimization - in > gcc. > We have added a rtl_opt_pass variable(pass_sched3)=20 > 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=20 > $(FLAGS_H) insn-config.h > \ > $(FUNCTION_H) $(INSN_ATTR_H) $(TOPLEV_H) $(RECOG_H)=20 > except.h $(PARAMS_H) > \ > $(TM_P_H) $(TARGET_H) $(CFGLAYOUT_H) $(TIMEVAR_H) tree-pass.h \ > $(DBGCNT_H) >=20 > We are getting an error in passes.c - undefined reference to > 'pass_sched3' > Kindly guide us as to what is wrong in our approach=20 > of adding a new > file to gcc build. >=20 > Thanking You, > Dhiraj. > --=20 > View this message in context:=20 > 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. >=20 >=20 >=20