OSDN Git Service

2001-07-30 H.J. Lu (hjl@gnu.org)
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 30 Jul 2001 16:40:43 +0000 (16:40 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 30 Jul 2001 16:40:43 +0000 (16:40 +0000)
* config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
(ASM_DECLARE_FUNCTION_SIZE): Likewise.
(FUNCTION_NAME_ALREADY_DECLARED): Likewise.

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

gcc/ChangeLog
gcc/config/mips/linux.h

index 31872c3..2a95892 100644 (file)
@@ -1,3 +1,9 @@
+2001-07-30  H.J. Lu  (hjl@gnu.org)
+
+       * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
+       (ASM_DECLARE_FUNCTION_SIZE): Likewise.
+       (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
+
 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
 
        * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
 
        * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
index f89325e..710df19 100644 (file)
@@ -192,3 +192,36 @@ Boston, MA 02111-1307, USA.  */
        fputc ('-', FILE);                                              \
        assemble_name (FILE, LO);                                       \
   } while (0)
        fputc ('-', FILE);                                              \
        assemble_name (FILE, LO);                                       \
   } while (0)
+
+#undef ASM_DECLARE_FUNCTION_NAME
+#define ASM_DECLARE_FUNCTION_NAME(STREAM, NAME, DECL)                  \
+  do {                                                                 \
+    if (!flag_inhibit_size_directive)                                  \
+      {                                                                        \
+       fputs ("\t.ent\t", STREAM);                                     \
+       assemble_name (STREAM, NAME);                                   \
+       putc ('\n', STREAM);                                            \
+      }                                                                        \
+    fprintf (STREAM, "\t%s\t ", TYPE_ASM_OP);                          \
+    assemble_name (STREAM, NAME);                                      \
+    putc (',', STREAM);                                                        \
+    fprintf (STREAM, TYPE_OPERAND_FMT, "function");                    \
+    putc ('\n', STREAM);                                               \
+    assemble_name (STREAM, NAME);                                      \
+    fputs (":\n", STREAM);                                             \
+  } while (0)
+
+#undef ASM_DECLARE_FUNCTION_SIZE
+#define ASM_DECLARE_FUNCTION_SIZE(STREAM, NAME, DECL)                  \
+  do {                                                                 \
+    if (!flag_inhibit_size_directive)                                  \
+      {                                                                        \
+       fputs ("\t.end\t", STREAM);                                     \
+       assemble_name (STREAM, NAME);                                   \
+       putc ('\n', STREAM);                                            \
+      }                                                                        \
+  } while (0)
+
+/* Tell function_prologue in mips.c that we have already output the .ent/.end
+   pseudo-ops.  */
+#define FUNCTION_NAME_ALREADY_DECLARED