Patchwork Remove old #if 0-ed code

login
register
mail settings
Submitter Marcin Baczyński
Date Aug. 22, 2010, 11:20 a.m.
Message ID <8739u6lwr1.fsf@gmail.com>
Download mbox | patch
Permalink /patch/62371/
State New
Headers show

Comments

Marcin Baczyński - Aug. 22, 2010, 11:20 a.m.
This code was #if 0-ed over 12 years ago.

2010-08-22  Marcin Baczynski  <marbacz@gmail.com>

	* dwarf2out.c (file scope): Remove garbage.
	(gen_subprogram_die): Same.
Diego Novillo - Sept. 3, 2010, 3:05 p.m.
On Sun, Aug 22, 2010 at 07:20, Marcin Baczyński <marbacz@gmail.com> wrote:
> This code was #if 0-ed over 12 years ago.
>
> 2010-08-22  Marcin Baczynski  <marbacz@gmail.com>
>
>        * dwarf2out.c (file scope): Remove garbage.
>        (gen_subprogram_die): Same.

s/garbage/#if0'd code/

OK with that change.


Diego.

Patch

Index: gcc/dwarf2out.c
===================================================================
--- gcc/dwarf2out.c	(wersja 163449)
+++ gcc/dwarf2out.c	(kopia robocza)
@@ -6043,9 +6043,6 @@  static GTY ((param_is (struct vcall_insn
 
 /* Record whether the function being analyzed contains inlined functions.  */
 static int current_function_has_inlines;
-#if 0 && defined (MIPS_DEBUGGING_INFO)
-static int comp_unit_has_inlines;
-#endif
 
 /* The last file entry emitted by maybe_emit_file().  */
 static GTY(()) struct dwarf_file_data * last_emitted_file;
@@ -18960,18 +18957,6 @@  gen_subprogram_die (tree decl, dw_die_re
 
       current_function_has_inlines = 0;
       decls_for_scope (outer_scope, subr_die, 0);
-
-#if 0 && defined (MIPS_DEBUGGING_INFO)
-      if (current_function_has_inlines)
-	{
-	  add_AT_flag (subr_die, DW_AT_MIPS_has_inlines, 1);
-	  if (! comp_unit_has_inlines)
-	    {
-	      add_AT_flag (comp_unit_die, DW_AT_MIPS_has_inlines, 1);
-	      comp_unit_has_inlines = 1;
-	    }
-	}
-#endif
     }
   /* Add the calling convention attribute if requested.  */
   add_calling_convention_attribute (subr_die, decl);