summaryrefslogtreecommitdiff
path: root/gcc/config/i386/i386elf.h
diff options
context:
space:
mode:
authorUros Bizjak <uros@gcc.gnu.org>2009-07-31 15:41:43 +0200
committerUros Bizjak <uros@gcc.gnu.org>2009-07-31 15:41:43 +0200
commite61c65627303b0e086a5347df3cb0d7e658e3a97 (patch)
tree90ce7b9684aba7ae0426990b26cc358479567f35 /gcc/config/i386/i386elf.h
parentea2002ba74c91a555992984a01398529e4c2ed17 (diff)
downloadgcc-e61c65627303b0e086a5347df3cb0d7e658e3a97.tar.gz
bsd.h (ASM_BYTE): New define.
* config/i386/bsd.h (ASM_BYTE): New define. * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP. * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of .byte. Use fputs or putc instead of fprintf where appropriate. * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte. Use fputs or putc instead of fprintf where appropriate. * config/i386/i386elf.h: Ditto. * config/i386/sysv4.h: Ditto. * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define. * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte. (*tls_global_dynamic_64): Ditto. From-SVN: r150315
Diffstat (limited to 'gcc/config/i386/i386elf.h')
-rw-r--r--gcc/config/i386/i386elf.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/config/i386/i386elf.h b/gcc/config/i386/i386elf.h
index ba53749acc9..44cf6818f7c 100644
--- a/gcc/config/i386/i386elf.h
+++ b/gcc/config/i386/i386elf.h
@@ -63,7 +63,7 @@ along with GCC; see the file COPYING3. If not see
const unsigned char *limit = _ascii_bytes + (LENGTH); \
unsigned bytes_in_chunk = 0; \
for (; _ascii_bytes < limit; _ascii_bytes++) \
- { \
+ { \
const unsigned char *p; \
if (bytes_in_chunk >= 64) \
{ \
@@ -85,7 +85,7 @@ along with GCC; see the file COPYING3. If not see
else \
{ \
if (bytes_in_chunk == 0) \
- fprintf ((FILE), "\t.byte\t"); \
+ fputs (ASM_BYTE, (FILE)); \
else \
fputc (',', (FILE)); \
fprintf ((FILE), "0x%02x", *_ascii_bytes); \
@@ -93,7 +93,7 @@ along with GCC; see the file COPYING3. If not see
} \
} \
if (bytes_in_chunk > 0) \
- fprintf ((FILE), "\n"); \
+ fputc ('\n', (FILE)); \
} \
while (0)