dwarf2out.c: Remove current_function_has_inlines.
authorAldy Hernandez <aldyh@redhat.com>
Tue, 7 Oct 2014 18:06:17 +0000 (18:06 +0000)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Tue, 7 Oct 2014 18:06:17 +0000 (18:06 +0000)
* dwarf2out.c: Remove current_function_has_inlines.
(gen_subprogram_die): Same.
(gen_inlined_subroutine_die): Same.

From-SVN: r215980

gcc/ChangeLog
gcc/dwarf2out.c

index 804cfb90991bd02292539d29c7778b1acd561a69..e3fe7ed15c5b94de0998ea3cc73e3062004711c5 100644 (file)
@@ -1,3 +1,9 @@
+2014-10-07  Aldy Hernandez  <aldyh@redhat.com>
+
+       * dwarf2out.c: Remove current_function_has_inlines.
+       (gen_subprogram_die): Same.
+       (gen_inlined_subroutine_die): Same.
+
 2014-10-07  Ilya Tocar  <ilya.tocar@intel.com>
 
        * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
index 59c05edd893e9500fee65d0391361eb86c10ba96..66cdc961cb31cdda2711544983a6e6ccd4c70c2b 100644 (file)
@@ -2954,9 +2954,6 @@ static GTY(()) unsigned int loclabel_num;
 /* Unique label counter for point-of-call tables.  */
 static GTY(()) unsigned int poc_label_num;
 
-/* Record whether the function being analyzed contains inlined functions.  */
-static int current_function_has_inlines;
-
 /* The last file entry emitted by maybe_emit_file().  */
 static GTY(()) struct dwarf_file_data * last_emitted_file;
 
@@ -18626,7 +18623,6 @@ gen_subprogram_die (tree decl, dw_die_ref context_die)
       if (DECL_NAME (DECL_RESULT (decl)))
        gen_decl_die (DECL_RESULT (decl), NULL, subr_die);
 
-      current_function_has_inlines = 0;
       decls_for_scope (outer_scope, subr_die, 0);
 
       if (call_arg_locations && !dwarf_strict)
@@ -19283,7 +19279,6 @@ gen_inlined_subroutine_die (tree stmt, dw_die_ref context_die, int depth)
       add_call_src_coords_attributes (stmt, subr_die);
 
       decls_for_scope (stmt, subr_die, depth);
-      current_function_has_inlines = 1;
     }
 }