Patchwork Remove old #if 0-ed code

login
register
mail settings
Submitter Marcin Baczyński
Date Sept. 3, 2010, 3:19 p.m.
Message ID <AANLkTikXhbXWQa-caNwduTnjdRbJ-kywu7+1cy-AnLcd@mail.gmail.com>
Download mbox | patch
Permalink /patch/63692/
State New
Headers show

Comments

Marcin Baczyński - Sept. 3, 2010, 3:19 p.m.
W dniu 3 września 2010 17:05 użytkownik Diego Novillo
<dnovillo@google.com> napisał:
> 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.
>

Fixed. Can someone commit this? I don't have SVN write access. Thanks.

2010-09-03  Marcin Baczynski  <marbacz@gmail.com>

       * dwarf2out.c (file scope): Remove #if0'd code.
       (gen_subprogram_die): Same.
Diego Novillo - Sept. 3, 2010, 3:59 p.m.
On Fri, Sep 3, 2010 at 11:19, Marcin Baczyński <marbacz@gmail.com> wrote:

> Fixed. Can someone commit this? I don't have SVN write access. Thanks.

Committed as revision 163831.


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