diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2014-05-13 10:38:38 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2014-05-13 10:38:38 +0000 |
commit | fccc55155dd303b502f04c8a17af1d0a9f31f6d5 (patch) | |
tree | 7c2a545a9dec5b5eecb37bb29488b40f31b09783 /gcc/print-rtl.c | |
parent | 925c1bae48b5b8dcc87a514e6e467582d735aa40 (diff) |
rtl.def (REG): Remove middle field.
gcc/
* rtl.def (REG): Remove middle field.
* rtl.h (rtx_def): Add orignal_regno to u2.
(ORIGINAL_REGNO): Use it instead of field 1.
(REG_ATTRS): Lower field index accordingly.
* gengtype.c (adjust_field_rtx_def): Remove handling of
ORIGINAL_REGNO. Move REG_ATTRS index down.
* print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
code that prints the REGNO.
From-SVN: r210359
Diffstat (limited to 'gcc/print-rtl.c')
-rw-r--r-- | gcc/print-rtl.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c index 64e54532aa4..cbffadaae68 100644 --- a/gcc/print-rtl.c +++ b/gcc/print-rtl.c @@ -216,12 +216,7 @@ print_rtx (const_rtx in_rtx) that the field has several different valid contents. */ case '0': #ifndef GENERATOR_FILE - if (i == 1 && REG_P (in_rtx)) - { - if (REGNO (in_rtx) != ORIGINAL_REGNO (in_rtx)) - fprintf (outfile, " [%d]", ORIGINAL_REGNO (in_rtx)); - } - else if (i == 1 && GET_CODE (in_rtx) == SYMBOL_REF) + if (i == 1 && GET_CODE (in_rtx) == SYMBOL_REF) { int flags = SYMBOL_REF_FLAGS (in_rtx); if (flags) @@ -491,6 +486,8 @@ print_rtx (const_rtx in_rtx) REG_OFFSET (in_rtx)); fputs (" ]", outfile); } + if (REG_P (in_rtx) && REGNO (in_rtx) != ORIGINAL_REGNO (in_rtx)) + fprintf (outfile, " [%d]", ORIGINAL_REGNO (in_rtx)); #endif if (is_insn && &INSN_CODE (in_rtx) == &XINT (in_rtx, i) |