varasm.c (default_elf_asm_output_limited_string, [...]): Replace fprintf by putc.
authorJan Hubicka <hubicka@ucw.cz>
Wed, 25 Nov 2015 18:12:51 +0000 (19:12 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 25 Nov 2015 18:12:51 +0000 (18:12 +0000)
* varasm.c (default_elf_asm_output_limited_string,
default_elf_asm_output_ascii): Replace fprintf by putc.

From-SVN: r230895

gcc/ChangeLog
gcc/varasm.c

index 48f96a0707de930f6380bd49cefbcc139e11a1ee..9ee04518fcb9e118a6f6b57082be9166f1f0baa8 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        PR rtl-optimization/67954
index 31411101267b7a120dcea791c99de678ea807549..a2adcdba09219975a10c2e2a1d5758bbbf847f0a 100644 (file)
@@ -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: