aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/i386/att.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/att.h
parentea2002ba74c91a555992984a01398529e4c2ed17 (diff)
downloadgcc-e61c65627303b0e086a5347df3cb0d7e658e3a97.zip
gcc-e61c65627303b0e086a5347df3cb0d7e658e3a97.tar.gz
gcc-e61c65627303b0e086a5347df3cb0d7e658e3a97.tar.bz2
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/att.h')
-rw-r--r--gcc/config/i386/att.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/i386/att.h b/gcc/config/i386/att.h
index 6586ddd..3061690 100644
--- a/gcc/config/i386/att.h
+++ b/gcc/config/i386/att.h
@@ -31,6 +31,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
/* Assembler pseudos to introduce constants of various size. */
+#define ASM_BYTE "\t.byte\t"
#define ASM_SHORT "\t.value\t"
#define ASM_LONG "\t.long\t"
#define ASM_QUAD "\t.quad\t" /* Should not be used for 32bit compilation. */
@@ -43,7 +44,7 @@ do \
{ size_t i = 0, limit = (SIZE); \
while (i < limit) \
{ if (i%10 == 0) { if (i!=0) putc ('\n', (FILE)); \
- fputs ("\t.byte\t", (FILE)); } \
+ fputs (ASM_BYTE, (FILE)); } \
else putc (',', (FILE)); \
fprintf ((FILE), "0x%x", ((PTR)[i++] & 0377)) ;} \
putc ('\n', (FILE)); \