+2003-09-04 Bernardo Innocenti <bernie@develer.com>
+
+ * config/m68k/m68k.c (m68k_coff_asm_named_section): Restore
+ deleted function.
+ * config/m68k/coff.h (M68K_TARGET_COFF): Add flag used to
+ enable coff-only code in m68k.c.
+
2003-09-04 Nick Clifton <nickc@redhat.com>
* config.gcc: Add v850e1 target. Allow --with-cpu to accept
/* This file is included after m68k.h by CPU COFF specific files. It
is not a complete target itself. */
+/* Used in m68k.c to include required support code. */
+
+#define M68K_TARGET_COFF 1
+
/* Generate sdb debugging information. */
#define SDB_DEBUGGING_INFO 1
static const char *singlemove_string (rtx *);
static void m68k_output_function_prologue (FILE *, HOST_WIDE_INT);
static void m68k_output_function_epilogue (FILE *, HOST_WIDE_INT);
+#ifdef M68K_TARGET_COFF
+static void m68k_coff_asm_named_section (const char *, unsigned int);
+#endif /* M68K_TARGET_COFF */
#ifdef HPUX_ASM
static void m68k_hp320_internal_label (FILE *, const char *, unsigned long);
static void m68k_hp320_file_start (void);
return "eor%.l %2,%0";
}
+#ifdef M68K_TARGET_COFF
+
+/* Output assembly to switch to section NAME with attribute FLAGS. */
+
+static void
+m68k_coff_asm_named_section (const char *name, unsigned int flags)
+{
+ char flagchar;
+
+ if (flags & SECTION_WRITE)
+ flagchar = 'd';
+ else
+ flagchar = 'x';
+
+ fprintf (asm_out_file, "\t.section\t%s,\"%c\"\n", name, flagchar);
+}
+
+#endif /* M68K_TARGET_COFF */
+
#ifdef HPUX_ASM
static void
m68k_hp320_internal_label (FILE *stream, const char *prefix,