Commit fb5c67a7 by Geoffrey Keating Committed by Geoffrey Keating

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
parent 5f11bc8b
2004-09-10 Geoffrey Keating <geoffk@apple.com> 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. * output.h (unlikely_section_label): Delete declaration.
(unlikely_text_section_name): Likewise. (unlikely_text_section_name): Likewise.
* varasm.c (unlikely_section_label_printed): Make static. * varasm.c (unlikely_section_label_printed): Make static.
......
...@@ -10062,7 +10062,7 @@ print_operand (FILE *file, rtx x, int code) ...@@ -10062,7 +10062,7 @@ print_operand (FILE *file, rtx x, int code)
/* Write second word of DImode or DFmode reference. Works on register /* Write second word of DImode or DFmode reference. Works on register
or non-indexed memory only. */ or non-indexed memory only. */
if (GET_CODE (x) == REG) 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) else if (GET_CODE (x) == MEM)
{ {
/* Handle possible auto-increment. Since it is pre-increment and /* Handle possible auto-increment. Since it is pre-increment and
...@@ -10133,7 +10133,7 @@ print_operand (FILE *file, rtx x, int code) ...@@ -10133,7 +10133,7 @@ print_operand (FILE *file, rtx x, int code)
|| REGNO (XEXP (x, 0)) >= 32) || REGNO (XEXP (x, 0)) >= 32)
output_operand_lossage ("invalid %%P value"); output_operand_lossage ("invalid %%P value");
else else
fprintf (file, "%s", reg_names[REGNO (XEXP (x, 0))]); fputs (reg_names[REGNO (XEXP (x, 0))], file);
return; return;
case 'q': case 'q':
...@@ -10368,7 +10368,7 @@ print_operand (FILE *file, rtx x, int code) ...@@ -10368,7 +10368,7 @@ print_operand (FILE *file, rtx x, int code)
case 'Y': case 'Y':
/* Like 'L', for third word of TImode */ /* Like 'L', for third word of TImode */
if (GET_CODE (x) == REG) 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) else if (GET_CODE (x) == MEM)
{ {
if (GET_CODE (XEXP (x, 0)) == PRE_INC if (GET_CODE (XEXP (x, 0)) == PRE_INC
...@@ -10415,7 +10415,7 @@ print_operand (FILE *file, rtx x, int code) ...@@ -10415,7 +10415,7 @@ print_operand (FILE *file, rtx x, int code)
case 'Z': case 'Z':
/* Like 'L', for last word of TImode. */ /* Like 'L', for last word of TImode. */
if (GET_CODE (x) == REG) 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) else if (GET_CODE (x) == MEM)
{ {
if (GET_CODE (XEXP (x, 0)) == PRE_INC if (GET_CODE (XEXP (x, 0)) == PRE_INC
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment