[IEPM] Introduce debug hook for inline entry point markers
authorAlexandre Oliva <aoliva@redhat.com>
Tue, 12 Dec 2017 02:16:47 +0000 (02:16 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Tue, 12 Dec 2017 02:16:47 +0000 (02:16 +0000)
The inline_entry hook will be given a definition in a later patch.

for  gcc/ChangeLog

* debug.h (gcc_debug_hooks): Add inline_entry.
* dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
* debug.c (do_nothing_debug_hooks): Likewise.
* vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
* dwarf2out.c (dwarf2_debug_hooks): Likewise.
(dwarf2_lineno_debug_hooks): Likewise.

From-SVN: r255570

gcc/ChangeLog
gcc/dbxout.c
gcc/debug.c
gcc/debug.h
gcc/dwarf2out.c
gcc/vmsdbgout.c

index a53e7b8173f526a05b20c7615a3fce00f2c57732..4ad2df1801472ef91b79df0f0dc206da85f53854 100644 (file)
@@ -1,5 +1,12 @@
 2017-12-12  Alexandre Oliva <aoliva@redhat.com>
 
+       * debug.h (gcc_debug_hooks): Add inline_entry.
+       * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
+       * debug.c (do_nothing_debug_hooks): Likewise.
+       * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
+       * dwarf2out.c (dwarf2_debug_hooks): Likewise.
+       (dwarf2_lineno_debug_hooks): Likewise.
+
        * common.opt (gstatement-frontiers): New, setting
        debug_nonbind_markers_p.
        * rtl.h (MAY_HAVE_DEBUG_MARKER_INSNS): Activate.
index 290f11b3c467bbec29640b35e3d3aacfb3370c29..38cc63af9259873040d9690c0d11d1c8c648405f 100644 (file)
@@ -384,6 +384,7 @@ const struct gcc_debug_hooks dbx_debug_hooks =
   debug_nothing_rtx_code_label,                 /* label */
   dbxout_handle_pch,                    /* handle_pch */
   debug_nothing_rtx_insn,               /* var_location */
+  debug_nothing_tree,                   /* inline_entry */
   debug_nothing_tree,                   /* size_function */
   dbxout_switch_text_section,            /* switch_text_section */
   debug_nothing_tree_tree,              /* set_name */
@@ -426,6 +427,7 @@ const struct gcc_debug_hooks xcoff_debug_hooks =
   debug_nothing_rtx_code_label,                 /* label */
   dbxout_handle_pch,                    /* handle_pch */
   debug_nothing_rtx_insn,               /* var_location */
+  debug_nothing_tree,                   /* inline_entry */
   debug_nothing_tree,                   /* size_function */
   debug_nothing_void,                    /* switch_text_section */
   debug_nothing_tree_tree,              /* set_name */
index 4db94c3e675d29e7d8c97c8397e4c0dcd7c49a84..c0bc66764121bc809196046d60314ec473746e45 100644 (file)
@@ -55,6 +55,7 @@ const struct gcc_debug_hooks do_nothing_debug_hooks =
   debug_nothing_rtx_code_label,                 /* label */
   debug_nothing_int,                    /* handle_pch */
   debug_nothing_rtx_insn,               /* var_location */
+  debug_nothing_tree,                   /* inline_entry */
   debug_nothing_tree,                   /* size_function */
   debug_nothing_void,                    /* switch_text_section */
   debug_nothing_tree_tree,              /* set_name */
index 277d990c20f0e991a828ea534e4ed64f6d2527ee..bed3f176efbfa33538a097056dd01ddd2534cd63 100644 (file)
@@ -176,6 +176,9 @@ struct gcc_debug_hooks
   /* Called from final_scan_insn for any NOTE_INSN_VAR_LOCATION note.  */
   void (* var_location) (rtx_insn *);
 
+  /* Called from final_scan_insn for any NOTE_INSN_INLINE_ENTRY note.  */
+  void (* inline_entry) (tree block);
+
   /* Called from finalize_size_functions for size functions so that their body
      can be encoded in the debug info to describe the layout of variable-length
      structures.  */
index 82c9ccfa7c25cdd959bccf6bea05ea510ca55558..70409410fde79ee4956a0a541917f9682bc8e0fd 100644 (file)
@@ -2753,6 +2753,7 @@ const struct gcc_debug_hooks dwarf2_debug_hooks =
   debug_nothing_rtx_code_label,        /* label */
   debug_nothing_int,           /* handle_pch */
   dwarf2out_var_location,
+  debug_nothing_tree,          /* inline_entry */
   dwarf2out_size_function,     /* size_function */
   dwarf2out_switch_text_section,
   dwarf2out_set_name,
@@ -2793,6 +2794,7 @@ const struct gcc_debug_hooks dwarf2_lineno_debug_hooks =
   debug_nothing_rtx_code_label,                 /* label */
   debug_nothing_int,                    /* handle_pch */
   debug_nothing_rtx_insn,               /* var_location */
+  debug_nothing_tree,                   /* inline_entry */
   debug_nothing_tree,                   /* size_function */
   debug_nothing_void,                    /* switch_text_section */
   debug_nothing_tree_tree,              /* set_name */
index 91dcd2e391096fbdcc8a6a147759d6236cb2b7dc..03b7205a16b4db443e883958e6809f5cb7b17bac 100644 (file)
@@ -206,6 +206,7 @@ const struct gcc_debug_hooks vmsdbg_debug_hooks
    debug_nothing_rtx_code_label,  /* label */
    debug_nothing_int,            /* handle_pch */
    debug_nothing_rtx_insn,       /* var_location */
+   debug_nothing_tree,           /* inline_entry */
    debug_nothing_tree,           /* size_function */
    debug_nothing_void,            /* switch_text_section */
    debug_nothing_tree_tree,      /* set_name */