From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2721 invoked by alias); 10 Nov 2009 16:25:06 -0000 Received: (qmail 2700 invoked by uid 22791); 10 Nov 2009 16:25:05 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from kuber.nabble.com (HELO kuber.nabble.com) (216.139.236.158) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 10 Nov 2009 16:25:01 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1N7tWe-0000Rv-3l for gcc@gcc.gnu.org; Tue, 10 Nov 2009 08:25:00 -0800 Message-ID: <26286452.post@talk.nabble.com> Date: Tue, 10 Nov 2009 16:25:00 -0000 From: ddmetro To: gcc@gcc.gnu.org Subject: help on - adding a new pass to gcc MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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/msg00285.txt.bz2 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-tp26286452p26286452.html Sent from the gcc - Dev mailing list archive at Nabble.com.