]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR bootstrap/51094 (Bootstrap failure at revision 181279 on non-ELF targets)
authorDimitrios Apostolou <jimis@gmx.net>
Sat, 12 Nov 2011 21:40:07 +0000 (21:40 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 12 Nov 2011 21:40:07 +0000 (16:40 -0500)
PR bootstrap/51094
* config/elfos.h (STRING_ASM_OP): Define.
* varasm.c (default_elf_asm_output_limited_string): Use it.

From-SVN: r181327

gcc/ChangeLog
gcc/config/elfos.h
gcc/varasm.c

index e9aa80a778826159b6f77aeececa3cbd82979431..f3e745fcb5e356ebbff720ff8114f0717c26c64d 100644 (file)
@@ -1,5 +1,9 @@
 2011-11-12  Dimitrios Apostolou  <jimis@gmx.net>
 
+       PR bootstrap/51094
+       * config/elfos.h (STRING_ASM_OP): Define.
+       * varasm.c (default_elf_asm_output_limited_string): Use it.
+
        PR bootstrap/51094
        * gcc/configure.ac: Check for stpcpy declaration.
        * system.h: Declare it if not.
index 42472024439384c2d8156267a6d9ec95fd3c5271..0d883ea0dd7d3baf1fd5aa0c99a8a8634b86da2a 100644 (file)
@@ -402,6 +402,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 
 #define ELF_STRING_LIMIT       ((unsigned) 256)
 
+#define STRING_ASM_OP  "\t.string\t"
+
 /* The routine used to output NUL terminated strings.  We use a special
    version of this for most svr4 targets because doing so makes the
    generated assembly code more compact (and thus faster to assemble)
index b354846022131bac5aa6a1b7e854026c3cd5f198..34cc50928a7eafe2dc9f785b6a7d9728a55eed4c 100644 (file)
@@ -7528,7 +7528,8 @@ default_elf_asm_output_limited_string (FILE *f, const char *s)
   int escape;
   unsigned char c;
 
-  fputs ("\t.string\t\"", f);
+  fputs (STRING_ASM_OP, f);
+  putc ('"', f);
   while (*s != '\0')
     {
       c = *s;