diff options
| author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-12 12:59:56 +0000 |
|---|---|---|
| committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-12 12:59:56 +0000 |
| commit | 57404fb9ffbd8532a342fab2c63cdc75f66eb678 (patch) | |
| tree | 21a8431adb9b3ea32614c8eebb5d77ea27872043 /gcc/print-rtl.c | |
| parent | dccf4eb3e1a61419441494c83b3eae7f2b396411 (diff) | |
| download | ppe42-gcc-57404fb9ffbd8532a342fab2c63cdc75f66eb678.tar.gz ppe42-gcc-57404fb9ffbd8532a342fab2c63cdc75f66eb678.zip | |
* print-rtl.c (print_rtx): For CALL_PLACEHOLDER, output the
CALL_INSN from the normal case.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33103 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/print-rtl.c')
| -rw-r--r-- | gcc/print-rtl.c | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c index 4c591632123..5ffc30c9925 100644 --- a/gcc/print-rtl.c +++ b/gcc/print-rtl.c @@ -72,6 +72,7 @@ print_rtx (in_rtx) register int j; register const char *format_ptr; register int is_insn; + rtx tem; if (sawclose) { @@ -315,8 +316,7 @@ print_rtx (in_rtx) rtx sub = XEXP (in_rtx, i); enum rtx_code subc = GET_CODE (sub); - if (GET_CODE (in_rtx) == LABEL_REF - && subc != CODE_LABEL) + if (GET_CODE (in_rtx) == LABEL_REF && subc != CODE_LABEL) goto do_e; if (flag_dump_unnumbered) @@ -368,11 +368,21 @@ print_rtx (in_rtx) if (GET_CODE (in_rtx) == CODE_LABEL) { - fprintf (outfile, " [num uses: %d]", LABEL_NUSES (in_rtx)); + fprintf (outfile, " [%d uses]", LABEL_NUSES (in_rtx)); if (LABEL_ALTERNATE_NAME (in_rtx)) - fprintf (outfile, " [alternate name: %s]", LABEL_ALTERNATE_NAME (in_rtx)); + fprintf (outfile, " [alternate name: %s]", + LABEL_ALTERNATE_NAME (in_rtx)); } + if (GET_CODE (in_rtx) == CALL_PLACEHOLDER) + for (tem = XEXP (in_rtx, 0); tem != 0; tem = NEXT_INSN (tem)) + if (GET_CODE (tem) == CALL_INSN) + { + fprintf (outfile, " "); + print_rtx (tem); + break; + } + if (dump_for_graph && (is_insn || GET_CODE (in_rtx) == NOTE || GET_CODE (in_rtx) == CODE_LABEL || GET_CODE (in_rtx) == BARRIER)) @@ -515,16 +525,13 @@ print_rtl (outf, rtx_first) case NOTE: case CODE_LABEL: case BARRIER: - for (tmp_rtx = rtx_first; NULL != tmp_rtx; tmp_rtx = NEXT_INSN (tmp_rtx)) - { - if (! flag_dump_unnumbered - || GET_CODE (tmp_rtx) != NOTE - || NOTE_LINE_NUMBER (tmp_rtx) < 0) - { - print_rtx (tmp_rtx); - fprintf (outfile, "\n"); - } - } + for (tmp_rtx = rtx_first; tmp_rtx != 0; tmp_rtx = NEXT_INSN (tmp_rtx)) + if (! flag_dump_unnumbered + || GET_CODE (tmp_rtx) != NOTE || NOTE_LINE_NUMBER (tmp_rtx) < 0) + { + print_rtx (tmp_rtx); + fprintf (outfile, "\n"); + } break; default: |

