avr.c (commands_in_file, [...]): Remove variables.
authorAnatoly Sokolov <aesok@post.ru>
Thu, 4 Oct 2007 06:51:38 +0000 (10:51 +0400)
committerAnatoly Sokolov <aesok@gcc.gnu.org>
Thu, 4 Oct 2007 06:51:38 +0000 (10:51 +0400)
  * 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.

From-SVN: r129001

gcc/ChangeLog
gcc/config/avr/avr.c

index af1deaeb336e01211d6bca096061d9043f21b70c..1b4731d95a044b0b4fbaffd0371e61e39425f867 100644 (file)
@@ -1,3 +1,11 @@
+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.
+
 2007-10-04  Kazu Hirata  <kazu@codesourcery.com>
 
        * config/m68k/m68k.c (m68k_output_movem): Use the MOTOROLA if
index 1382479369fed6c98461628f4ded7d2b122b21a6..67c11c00e2cd9bc1e72623fb48379b5b93794300 100644 (file)
@@ -95,15 +95,6 @@ static const char *const avr_regnames[] = REGISTER_NAMES;
 /* 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 +4798,6 @@ avr_file_start (void)
      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 +4806,6 @@ avr_file_start (void)
 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