OSDN Git Service

* config/m68k/m68k.c (m68k_coff_asm_named_section): Restore
authorbernie <bernie@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 4 Sep 2003 19:14:51 +0000 (19:14 +0000)
committerbernie <bernie@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 4 Sep 2003 19:14:51 +0000 (19:14 +0000)
deleted function.
* config/m68k/coff.h (M68K_TARGET_COFF): Add flag used to
enable coff-only code in m68k.c.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71081 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/m68k/coff.h
gcc/config/m68k/m68k.c

index 1608f4f..2821669 100644 (file)
@@ -1,3 +1,10 @@
+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
index 0f199cf..4806e9b 100644 (file)
@@ -22,6 +22,10 @@ Boston, MA 02111-1307, USA.  */
 /* 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
index cbdf183..8cd6d6c 100644 (file)
@@ -53,6 +53,9 @@ static rtx find_addr_reg (rtx);
 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);
@@ -3342,6 +3345,25 @@ output_xorsi3 (rtx *operands)
   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,