This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Ping, PATCH] Remove old #if 0-ed code


Hi,
this patch was not commited nor commented.
Are patches like that unwanted, or is there something "obviously" wrong
with it (I'm new to GCC so I may not see things that are obvious to
others here, though I think it's OK to remove a piece of code which is
unused since last century)?

___

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.

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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]