diff options
author | Geoffrey Keating <geoffk@apple.com> | 2004-09-10 18:56:10 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@gcc.gnu.org> | 2004-09-10 18:56:10 +0000 |
commit | fb5c67a7bebab96fd72eab34b141501f7b217325 (patch) | |
tree | 55f1e4c347a0131e9c036e0ca1581b68415d9486 /gcc | |
parent | 5f11bc8b45cd3beac4fa60f5bad0ee43dde266af (diff) | |
download | gcc-fb5c67a7bebab96fd72eab34b141501f7b217325.zip gcc-fb5c67a7bebab96fd72eab34b141501f7b217325.tar.gz gcc-fb5c67a7bebab96fd72eab34b141501f7b217325.tar.bz2 |
rs6000.c (print_operand): Use fputs instead of fprintf for register names.
* gcc/config/rs6000/rs6000.c (print_operand): Use fputs instead
of fprintf for register names.
From-SVN: r87314
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 8 |
2 files changed, 7 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8fd9a6a..e0a2cae 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2004-09-10 Geoffrey Keating <geoffk@apple.com> + * gcc/config/rs6000/rs6000.c (print_operand): Use fputs instead + of fprintf for register names. + * output.h (unlikely_section_label): Delete declaration. (unlikely_text_section_name): Likewise. * varasm.c (unlikely_section_label_printed): Make static. diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 4e31b2c..dede50f 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -10062,7 +10062,7 @@ print_operand (FILE *file, rtx x, int code) /* Write second word of DImode or DFmode reference. Works on register or non-indexed memory only. */ if (GET_CODE (x) == REG) - fprintf (file, "%s", reg_names[REGNO (x) + 1]); + fputs (reg_names[REGNO (x) + 1], file); else if (GET_CODE (x) == MEM) { /* Handle possible auto-increment. Since it is pre-increment and @@ -10133,7 +10133,7 @@ print_operand (FILE *file, rtx x, int code) || REGNO (XEXP (x, 0)) >= 32) output_operand_lossage ("invalid %%P value"); else - fprintf (file, "%s", reg_names[REGNO (XEXP (x, 0))]); + fputs (reg_names[REGNO (XEXP (x, 0))], file); return; case 'q': @@ -10368,7 +10368,7 @@ print_operand (FILE *file, rtx x, int code) case 'Y': /* Like 'L', for third word of TImode */ if (GET_CODE (x) == REG) - fprintf (file, "%s", reg_names[REGNO (x) + 2]); + fputs (reg_names[REGNO (x) + 2], file); else if (GET_CODE (x) == MEM) { if (GET_CODE (XEXP (x, 0)) == PRE_INC @@ -10415,7 +10415,7 @@ print_operand (FILE *file, rtx x, int code) case 'Z': /* Like 'L', for last word of TImode. */ if (GET_CODE (x) == REG) - fprintf (file, "%s", reg_names[REGNO (x) + 3]); + fputs (reg_names[REGNO (x) + 3], file); else if (GET_CODE (x) == MEM) { if (GET_CODE (XEXP (x, 0)) == PRE_INC |