This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Support -finhibit-size-directive for IRIX 6
- To: gcc-patches at gcc dot gnu dot org
- Subject: PATCH: Support -finhibit-size-directive for IRIX 6
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Tue, 12 Jun 2001 15:18:24 -0700
This patch adds support for -finhibit-size-directive on IRIX 6.
H.J.
---
2001-06-12 H.J. Lu <hjl@gnu.org>
* config/mips/iris6.h (ASM_DECLARE_FUNCTION_NAME): Skip
.ent for -finhibit-size-directive.
(ASM_DECLARE_FUNCTION_SIZE): Skip .end for
-finhibit-size-directive.
--- gcc/config/mips/iris6.h.size Mon Jun 4 12:53:23 2001
+++ gcc/config/mips/iris6.h Mon Jun 4 13:41:09 2001
@@ -147,9 +147,12 @@ Boston, MA 02111-1307, USA. */
#undef ASM_DECLARE_FUNCTION_NAME
#define ASM_DECLARE_FUNCTION_NAME(STREAM, NAME, DECL) \
do { \
- fputs ("\t.ent\t", STREAM); \
- assemble_name (STREAM, NAME); \
- fputs ("\n", STREAM); \
+ if (!flag_inhibit_size_directive) \
+ { \
+ fputs ("\t.ent\t", STREAM); \
+ assemble_name (STREAM, NAME); \
+ putc ('\n', STREAM); \
+ } \
assemble_name (STREAM, NAME); \
fputs (":\n", STREAM); \
} while (0)
@@ -158,9 +161,12 @@ Boston, MA 02111-1307, USA. */
must output the .end here. */
#define ASM_DECLARE_FUNCTION_SIZE(STREAM, NAME, DECL) \
do { \
- fputs ("\t.end\t", STREAM); \
- assemble_name (STREAM, NAME); \
- fputs ("\n", STREAM); \
+ 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