From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1421 invoked by alias); 23 Feb 2004 16:42:29 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 1404 invoked from network); 23 Feb 2004 16:42:28 -0000 Received: from unknown (HELO Cantor.suse.de) (195.135.220.2) by sources.redhat.com with SMTP; 23 Feb 2004 16:42:28 -0000 Received: from hermes.suse.de (Hermes.suse.de [195.135.221.8]) by Cantor.suse.de (Postfix) with ESMTP id AF87B2271FE; Mon, 23 Feb 2004 17:42:27 +0100 (CET) Received: by wotan.suse.de (Postfix, from userid 10510) id 958CDE1E9; Mon, 23 Feb 2004 17:42:27 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by wotan.suse.de (Postfix) with ESMTP id 90502E194; Mon, 23 Feb 2004 17:42:27 +0100 (CET) Date: Mon, 23 Feb 2004 16:42:00 -0000 From: Michael Matz To: kripa shankar Cc: gcc@gnu.org, gcc-help@gcc.gnu.org, crossgcc@sources.redhat.com Subject: Re: your mail In-Reply-To: <20040223154755.23916.qmail@web41606.mail.yahoo.com> Message-ID: References: <20040223154755.23916.qmail@web41606.mail.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2004-02/txt/msg00259.txt.bz2 Hi, On Mon, 23 Feb 2004, kripa shankar wrote: > ;; Start of basic block 2, registers live: 11 [fp] 13 [sp] > (note 62 41 45 [bb 2] NOTE_INSN_BASIC_BLOCK) > (insn 45 62 46 (set (reg/i:SI 0 r0) (const_int 0 [0x0])) 176 {*movsi_insn} (nil) (expr_list:REG_EQUAL (const_int 0 [0x0]) (nil))) > (insn 46 45 76 (use (reg/i:SI 0 r0)) -1 (insn_list 45 (nil)) (nil)) > (insn 76 46 77 (set (reg:SI 7 r7) (plus:SI (reg:SI 5 r5) (const_int 2 [0x2]))) -1 (nil) (nil)) > (insn 77 76 50 (set (reg:SI 6 r6) (plus:SI (reg:SI 4 r4) (const_int 2 [0x2]))) -1 (nil) (nil)) > ;; End of basic block 2 > (note 50 77 63 0 NOTE_INSN_BLOCK_END) > (note 63 50 0 "" NOTE_INSN_DELETED) > > The instructions inserted are r7 = r5 + 2;r6 = r4 + 2; But the problem > is that the inserted instructions are not present in both asm file > (fourth.s) and the output binary file (fourth.o).. I have inserted these > instructions right after all the optimization passess and before the > final pass (final.c) where RTL gets converted into Assembly. Kindly help > me. There is not enough information. Where exactly have you added the code to add those insns? About which compiler version do you speak? Produce all dump files (-da) and look which dump misses them first. The problem is, that you include those instructions without updating lifeness (i.e. the compiler doesn't see, that r6 and r7 really are required after you've set them. So, if there is any pass deleting useless insns after you inserted them, they will get deleted. Ciao, Michael.