Commit c217bac5 by Jan Hubicka Committed by Jan Hubicka

varasm.c (default_elf_asm_output_limited_string, [...]): Replace fprintf by putc.

	* varasm.c (default_elf_asm_output_limited_string,
	default_elf_asm_output_ascii): Replace fprintf by putc.

From-SVN: r230895
parent 6c051d60
2015-11-25 Jan Hubicka <hubicka@ucw.cz>
* varasm.c (default_elf_asm_output_limited_string,
default_elf_asm_output_ascii): Replace fprintf by putc.
2015-11-25 Vladimir Makarov <vmakarov@redhat.com> 2015-11-25 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/67954 PR rtl-optimization/67954
...@@ -7599,8 +7599,10 @@ default_elf_asm_output_limited_string (FILE *f, const char *s) ...@@ -7599,8 +7599,10 @@ default_elf_asm_output_limited_string (FILE *f, const char *s)
putc (c, f); putc (c, f);
break; break;
case 1: case 1:
/* TODO: Print in hex with fast function, important for -flto. */ putc ('\\', f);
fprintf (f, "\\%03o", c); putc ('0'+((c>>6)&7), f);
putc ('0'+((c>>3)&7), f);
putc ('0'+(c&7), f);
break; break;
default: default:
putc ('\\', f); putc ('\\', f);
...@@ -7670,8 +7672,10 @@ default_elf_asm_output_ascii (FILE *f, const char *s, unsigned int len) ...@@ -7670,8 +7672,10 @@ default_elf_asm_output_ascii (FILE *f, const char *s, unsigned int len)
bytes_in_chunk++; bytes_in_chunk++;
break; break;
case 1: case 1:
/* TODO: Print in hex with fast function, important for -flto. */ putc ('\\', f);
fprintf (f, "\\%03o", c); putc ('0'+((c>>6)&7), f);
putc ('0'+((c>>3)&7), f);
putc ('0'+(c&7), f);
bytes_in_chunk += 4; bytes_in_chunk += 4;
break; break;
default: default:
......
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