Commit c9febe15 by Dimitrios Apostolou Committed by Jason Merrill

re PR bootstrap/51094 (Bootstrap failure at revision 181279 on non-ELF targets)

	PR bootstrap/51094
	* config/elfos.h (STRING_ASM_OP): Define.
	* varasm.c (default_elf_asm_output_limited_string): Use it.

From-SVN: r181327
parent 123cd463
2011-11-12 Dimitrios Apostolou <jimis@gmx.net> 2011-11-12 Dimitrios Apostolou <jimis@gmx.net>
PR bootstrap/51094 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. * gcc/configure.ac: Check for stpcpy declaration.
* system.h: Declare it if not. * system.h: Declare it if not.
* config.in, configure: Regenerate. * config.in, configure: Regenerate.
...@@ -402,6 +402,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see ...@@ -402,6 +402,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#define ELF_STRING_LIMIT ((unsigned) 256) #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 /* The routine used to output NUL terminated strings. We use a special
version of this for most svr4 targets because doing so makes the version of this for most svr4 targets because doing so makes the
generated assembly code more compact (and thus faster to assemble) generated assembly code more compact (and thus faster to assemble)
......
...@@ -7528,7 +7528,8 @@ default_elf_asm_output_limited_string (FILE *f, const char *s) ...@@ -7528,7 +7528,8 @@ default_elf_asm_output_limited_string (FILE *f, const char *s)
int escape; int escape;
unsigned char c; unsigned char c;
fputs ("\t.string\t\"", f); fputs (STRING_ASM_OP, f);
putc ('"', f);
while (*s != '\0') while (*s != '\0')
{ {
c = *s; c = *s;
......
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