aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDimitrios Apostolou <jimis@gmx.net>2011-11-12 21:40:07 +0000
committerJason Merrill <jason@gcc.gnu.org>2011-11-12 16:40:07 -0500
commitc9febe1567dbd540fb648f408c257a1a090cef16 (patch)
tree1afa7ebe6910f412110e55e5d21c4fb271c17e3f /gcc
parent123cd4632d459a06603371d65579e92ba844b41b (diff)
downloadgcc-c9febe1567dbd540fb648f408c257a1a090cef16.zip
gcc-c9febe1567dbd540fb648f408c257a1a090cef16.tar.gz
gcc-c9febe1567dbd540fb648f408c257a1a090cef16.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/elfos.h2
-rw-r--r--gcc/varasm.c3
3 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e9aa80a..f3e745f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,6 +1,10 @@
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.
* config.in, configure: Regenerate.
diff --git a/gcc/config/elfos.h b/gcc/config/elfos.h
index 4247202..0d883ea 100644
--- a/gcc/config/elfos.h
+++ b/gcc/config/elfos.h
@@ -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)
diff --git a/gcc/varasm.c b/gcc/varasm.c
index b354846..34cc509 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -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;