From: hubicka Date: Wed, 25 Nov 2015 18:12:51 +0000 (+0000) Subject: * varasm.c (default_elf_asm_output_limited_string, X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=420a5ca8e5cd137e7b21eff4441de7f54778c2b1;p=thirdparty%2Fgcc.git * varasm.c (default_elf_asm_output_limited_string, default_elf_asm_output_ascii): Replace fprintf by putc. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@230895 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 48f96a0707de..9ee04518fcb9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-11-25 Jan Hubicka + + * varasm.c (default_elf_asm_output_limited_string, + default_elf_asm_output_ascii): Replace fprintf by putc. + 2015-11-25 Vladimir Makarov PR rtl-optimization/67954 diff --git a/gcc/varasm.c b/gcc/varasm.c index 31411101267b..a2adcdba0921 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -7599,8 +7599,10 @@ default_elf_asm_output_limited_string (FILE *f, const char *s) putc (c, f); break; case 1: - /* TODO: Print in hex with fast function, important for -flto. */ - fprintf (f, "\\%03o", c); + putc ('\\', f); + putc ('0'+((c>>6)&7), f); + putc ('0'+((c>>3)&7), f); + putc ('0'+(c&7), f); break; default: putc ('\\', f); @@ -7670,8 +7672,10 @@ default_elf_asm_output_ascii (FILE *f, const char *s, unsigned int len) bytes_in_chunk++; break; case 1: - /* TODO: Print in hex with fast function, important for -flto. */ - fprintf (f, "\\%03o", c); + putc ('\\', f); + putc ('0'+((c>>6)&7), f); + putc ('0'+((c>>3)&7), f); + putc ('0'+(c&7), f); bytes_in_chunk += 4; break; default: