+2012-06-13 H.J. Lu <hongjiu.lu@intel.com>
+
+ * config/tc-i386.c (x86_address_bytes): New.
+ * config/tc-i386.h (TC_ADDRESS_BYTES): Likewise.
+ (x86_address_bytes): Likewise.
+
2012-06-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
PR gas/12698
fix_new_exp (frag, off, len, exp, 0, r);
}
+/* Export the ABI address size for use by TC_ADDRESS_BYTES for the
+ purpose of the `.dc.a' internal pseudo-op. */
+
+int
+x86_address_bytes (void)
+{
+ if ((stdoutput->arch_info->mach & bfd_mach_x64_32))
+ return 4;
+ return stdoutput->arch_info->bits_per_address / 8;
+}
+
#if !(defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF) || defined (OBJ_MACH_O)) \
|| defined (LEX_AT)
# define lex_got(reloc, adjust, types) NULL
extern void x86_cons_fix_new
(fragS *, unsigned int, unsigned int, expressionS *);
+#define TC_ADDRESS_BYTES x86_address_bytes
+extern int x86_address_bytes (void);
+
#define DIFF_EXPR_OK /* foo-. gets turned into PC relative relocs */
#define NO_RELOC BFD_RELOC_NONE
+2012-06-13 H.J. Lu <hongjiu.lu@intel.com>
+
+ * gas/i386/ilp32/x86-64-dc_a.d: New.
+ * gas/i386/ilp32/x86-64-dc_a.s: Likewise.
+
2012-06-11 Andreas Schwab <schwab@linux-m68k.org>
* gas/ppc/e500mc.d: Update.
--- /dev/null
+#nm: -n
+#name: x86-64 (ILP32) .dc.a
+
+0+ d foo
+0+4 d bar
--- /dev/null
+ .data
+foo:
+ .dc.a 0
+bar:
+ .dc.a 0