From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 95971 invoked by alias); 12 Dec 2017 02:44:06 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 95951 invoked by uid 89); 12 Dec 2017 02:44:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 12 Dec 2017 02:44:03 +0000 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2E6C05D685; Tue, 12 Dec 2017 02:44:02 +0000 (UTC) Received: from freie.home (ovpn04.gateway.prod.ext.phx2.redhat.com [10.5.9.4]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6181D4F67D; Tue, 12 Dec 2017 02:44:00 +0000 (UTC) Received: from livre (livre.home [172.31.160.2]) by freie.home (8.15.2/8.15.2) with ESMTP id vBC2hc5f027329; Tue, 12 Dec 2017 00:43:38 -0200 From: Alexandre Oliva To: Jeff Law Cc: Richard Biener , Jason Merrill , GCC Patches Subject: Re: [SFN+LVU+IEPM v4 8/9] [IEPM] Introduce debug hook for inline entry point markers References: <20171110023448.28164-8-aoliva@redhat.com> Date: Tue, 12 Dec 2017 02:44:00 -0000 In-Reply-To: (Jeff Law's message of "Thu, 7 Dec 2017 15:51:40 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2017-12/txt/msg00692.txt.bz2 On Dec 7, 2017, Jeff Law wrote: > On 11/09/2017 07:34 PM, Alexandre Oliva wrote: >> 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. > OK. Thanks, I went ahead and installed this, as follows: >From 793569eb27eb1fdb494bd1229f181ba231bff16b Mon Sep 17 00:00:00 2001 From: aoliva Date: Tue, 12 Dec 2017 02:16:47 +0000 Subject: [PATCH 7/7] [IEPM] Introduce debug hook for inline entry point markers 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@255570 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 7 +++++++ gcc/dbxout.c | 2 ++ gcc/debug.c | 1 + gcc/debug.h | 3 +++ gcc/dwarf2out.c | 2 ++ gcc/vmsdbgout.c | 1 + 6 files changed, 16 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a53e7b8173f5..4ad2df180147 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,12 @@ 2017-12-12 Alexandre Oliva + * 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. diff --git a/gcc/dbxout.c b/gcc/dbxout.c index 290f11b3c467..38cc63af9259 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -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 */ diff --git a/gcc/debug.c b/gcc/debug.c index 4db94c3e675d..c0bc66764121 100644 --- a/gcc/debug.c +++ b/gcc/debug.c @@ -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 */ diff --git a/gcc/debug.h b/gcc/debug.h index 277d990c20f0..bed3f176efbf 100644 --- a/gcc/debug.h +++ b/gcc/debug.h @@ -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. */ diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 82c9ccfa7c25..70409410fde7 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -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 */ diff --git a/gcc/vmsdbgout.c b/gcc/vmsdbgout.c index 91dcd2e39109..03b7205a16b4 100644 --- a/gcc/vmsdbgout.c +++ b/gcc/vmsdbgout.c @@ -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 */ -- 2.13.6 -- Alexandre Oliva, freedom fighter http://FSFLA.org/~lxoliva/ You must be the change you wish to see in the world. -- Gandhi Be Free! -- http://FSFLA.org/ FSF Latin America board member Free Software Evangelist|Red Hat Brasil GNU Toolchain Engineer