public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [AVR][commited] Remove dead code from config/avr/avr.c
@ 2007-10-04  6:53 Anatoly Sokolov
  0 siblings, 0 replies; only message in thread
From: Anatoly Sokolov @ 2007-10-04  6:53 UTC (permalink / raw)
  To: gcc-patches; +Cc: aesok

Hi.

  The code that actually used 'commands_in_file', 'commands_in_prologues' and 
'commands_in_epilogues' variables was removed when switching avr port from 
asm-prologue/epilogue to RTL-prologue/epilogue. 

2007-10-04  Anatoly Sokolov <aesok@post.ru>

 	* config/avr/avr.c (commands_in_file, commands_in_prologues, 
	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
===================================================================
--- 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 = 0;
 
-/* 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 = 0;
-  commands_in_prologues = 0;
-  commands_in_epilogues = 0;
 }
 
 /* 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 = 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);
 }
 
 /* Choose the order in which to allocate hard registers for

Anatoly.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-10-04  6:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-04  6:53 [AVR][commited] Remove dead code from config/avr/avr.c Anatoly Sokolov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).