From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9321 invoked by alias); 4 Oct 2007 06:53:27 -0000 Received: (qmail 9312 invoked by uid 22791); 4 Oct 2007 06:53:26 -0000 X-Spam-Check-By: sourceware.org Received: from contrabass.post.ru (HELO contrabass.post.ru) (85.21.78.5) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 04 Oct 2007 06:53:23 +0000 Received: from corbina.ru (mail.post.ru [195.14.50.16]) by contrabass.post.ru (Postfix) with ESMTP id 6245222824C for ; Thu, 4 Oct 2007 10:53:20 +0400 (MSD) Received: from [10.193.178.59] (HELO root) by corbina.ru (CommuniGate Pro SMTP 5.1.12) with ESMTP id 94962544; Thu, 04 Oct 2007 10:42:38 +0400 From: "Anatoly Sokolov" To: Cc: Subject: [AVR][commited] Remove dead code from config/avr/avr.c Date: Thu, 04 Oct 2007 06:53:00 -0000 Message-ID: <000001c80651$c1a8ec50$6401a8c0@root> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook, Build 10.0.6822 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2007-10/txt/msg00228.txt.bz2 Hi. The code that actually used 'commands_in_file', 'commands_in_prologues' a= nd=20 'commands_in_epilogues' variables was removed when switching avr port from= =20 asm-prologue/epilogue to RTL-prologue/epilogue.=20 2007-10-04 Anatoly Sokolov * config/avr/avr.c (commands_in_file, commands_in_prologues,=20 commands_in_epilogues): Remove variables. (avr_file_start): Remove unneded initializations of commands_in_file, commands_in_prologues and commands_in_epilogues variables. (avr_file_end): Remove dead code. Index: gcc/config/avr/avr.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- gcc/config/avr/avr.c (revision 128960) +++ gcc/config/avr/avr.c (working copy) @@ -95,15 +95,6 @@ /* This holds the last insn address. */ static int last_insn_address =3D 0; =20 -/* Commands count in the compiled file */ -static int commands_in_file; - -/* Commands in the functions prologues in the compiled file */ -static int commands_in_prologues; - -/* Commands in the functions epilogues in the compiled file */ -static int commands_in_epilogues; - /* Preprocessor macros to define depending on MCU type. */ const char *avr_base_arch_macro; const char *avr_extra_arch_macro; @@ -4807,10 +4778,6 @@ initialization code from libgcc if one or both sections are empty. */ fputs ("\t.global __do_copy_data\n", asm_out_file); fputs ("\t.global __do_clear_bss\n", asm_out_file); - - commands_in_file =3D 0; - commands_in_prologues =3D 0; - commands_in_epilogues =3D 0; } =20 /* Outputs to the stdio stream FILE some @@ -4819,14 +4786,6 @@ static void avr_file_end (void) { - fputs ("/* File ", asm_out_file); - output_quoted_string (asm_out_file, main_input_filename); - fprintf (asm_out_file, - ": code %4d =3D 0x%04x (%4d), prologues %3d, epilogues %3d */\n", - commands_in_file, - commands_in_file, - commands_in_file - commands_in_prologues - commands_in_epilogues, - commands_in_prologues, commands_in_epilogues); } =20 /* Choose the order in which to allocate hard registers for Anatoly.