From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by sourceware.org (Postfix) with ESMTP id 6756D3A1B40C for ; Fri, 13 Nov 2020 08:17:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 6756D3A1B40C Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 31636142F for ; Fri, 13 Nov 2020 00:17:08 -0800 (PST) Received: from localhost (e121540-lin.manchester.arm.com [10.32.98.126]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CE7D03F718 for ; Fri, 13 Nov 2020 00:17:07 -0800 (PST) From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, richard.sandiford@arm.com Subject: [12/23] Export print-rtl.c:print_insn_with_notes References: Date: Fri, 13 Nov 2020 08:17:06 +0000 In-Reply-To: (Richard Sandiford's message of "Fri, 13 Nov 2020 08:10:54 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Nov 2020 08:17:09 -0000 Later patches want to use print_insn_with_notes (printing to a pretty_printer). This patch exports it from print-rtl.c. The non-notes version is already public. gcc/ * print-rtl.h (print_insn_with_notes): Declare. * print-rtl.c (print_insn_with_notes): Make non-static --- gcc/print-rtl.c | 5 +---- gcc/print-rtl.h | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c index d514b1c5373..c1d3c179b75 100644 --- a/gcc/print-rtl.c +++ b/gcc/print-rtl.c @@ -1260,9 +1260,6 @@ print_rtx_insn_vec (FILE *file, const vec &vec) It is also possible to obtain a string for a single pattern as a string pointer, via str_pattern_slim, but this usage is discouraged. */ -/* For insns we print patterns, and for some patterns we print insns... */ -static void print_insn_with_notes (pretty_printer *, const rtx_insn *); - /* This recognizes rtx'en classified as expressions. These are always represent some action on values or results of other expression, that may be stored in objects representing values. */ @@ -2011,7 +2008,7 @@ print_insn (pretty_printer *pp, const rtx_insn *x, int verbose) /* Pretty-print a slim dump of X (an insn) to PP, including any register note attached to the instruction. */ -static void +void print_insn_with_notes (pretty_printer *pp, const rtx_insn *x) { pp_string (pp, print_rtx_head); diff --git a/gcc/print-rtl.h b/gcc/print-rtl.h index 09e5a519be9..cf801e81332 100644 --- a/gcc/print-rtl.h +++ b/gcc/print-rtl.h @@ -84,6 +84,7 @@ extern void dump_rtl_slim (FILE *, const rtx_insn *, const rtx_insn *, extern void print_value (pretty_printer *, const_rtx, int); extern void print_pattern (pretty_printer *, const_rtx, int); extern void print_insn (pretty_printer *pp, const rtx_insn *x, int verbose); +extern void print_insn_with_notes (pretty_printer *, const rtx_insn *); extern void rtl_dump_bb_for_graph (pretty_printer *, basic_block); extern const char *str_pattern_slim (const_rtx); -- 2.17.1