aboutsummaryrefslogtreecommitdiff
path: root/gcc/print-rtl.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2000-09-11 21:03:26 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2000-09-11 21:03:26 +0000
commitb5d7770c3e686d58e4ce1e1b49c35eec2c0475bb (patch)
tree1d26f3ff7a587dc7f37d23724c0dac8615974381 /gcc/print-rtl.c
parentda88b352787b53926ba3038983289a59ddaea887 (diff)
downloadgcc-b5d7770c3e686d58e4ce1e1b49c35eec2c0475bb.zip
gcc-b5d7770c3e686d58e4ce1e1b49c35eec2c0475bb.tar.gz
gcc-b5d7770c3e686d58e4ce1e1b49c35eec2c0475bb.tar.bz2
print-rtl.c (debug_call_placeholder_verbose): New variable.
* print-rtl.c (debug_call_placeholder_verbose): New variable. (print_rtx) [CALL_PLACEHOLDER]: Dump all call sequences if it is set. * integrate.c (copy_rtx_and_substitute): Don't share LEAF_REG_REMAPpable registers with the inlined function. Don't share the function value with calling sequences. From-SVN: r36329
Diffstat (limited to 'gcc/print-rtl.c')
-rw-r--r--gcc/print-rtl.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c
index 5d7cd5f..31eac81 100644
--- a/gcc/print-rtl.c
+++ b/gcc/print-rtl.c
@@ -63,6 +63,9 @@ int flag_dump_unnumbered = 0;
/* Nonzero if we are dumping graphical description. */
int dump_for_graph;
+/* Nonzero to dump all call_placeholder alternatives. */
+static int debug_call_placeholder_verbose;
+
/* Print IN_RTX onto OUTFILE. This is the recursive part of printing. */
static void
@@ -421,6 +424,37 @@ print_rtx (in_rtx)
break;
case CALL_PLACEHOLDER:
+ if (debug_call_placeholder_verbose)
+ {
+ fputs (" (cond [\n (const_string \"normal\") (sequence [", outfile);
+ for (tem = XEXP (in_rtx, 0); tem != 0; tem = NEXT_INSN (tem))
+ {
+ fputs ("\n ", outfile);
+ print_inline_rtx (outfile, tem, 4);
+ }
+
+ tem = XEXP (in_rtx, 1);
+ if (tem)
+ fputs ("\n ])\n (const_string \"tail_call\") (sequence [", outfile);
+ for (; tem != 0; tem = NEXT_INSN (tem))
+ {
+ fputs ("\n ", outfile);
+ print_inline_rtx (outfile, tem, 4);
+ }
+
+ tem = XEXP (in_rtx, 2);
+ if (tem)
+ fputs ("\n ])\n (const_string \"tail_recursion\") (sequence [", outfile);
+ for (; tem != 0; tem = NEXT_INSN (tem))
+ {
+ fputs ("\n ", outfile);
+ print_inline_rtx (outfile, tem, 4);
+ }
+
+ fputs ("\n ])\n ])", outfile);
+ break;
+ }
+
for (tem = XEXP (in_rtx, 0); tem != 0; tem = NEXT_INSN (tem))
if (GET_CODE (tem) == CALL_INSN)
{