This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Output .size directives for mips-linux
- From: Thiemo Seufer <ths at networkno dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 31 May 2006 20:11:03 +0100
- Subject: [PATCH] Output .size directives for mips-linux
Hello All,
the appended patch adds output of .size directives for functions
to mips*-linux.
It probabvly doesn't count as a regression, since no version of gcc3
and gcc4 emits that directive. MIPS Technologies SDE 5 (based on gcc
2.96) does, SDE 6 (based on gcc 3.4) again doesn't, which is a bug.
Thiemo
2006-05-31 Thiemo Seufer <ths@networkno.de>
* config/mips/linux.h (ASM_DECLARE_FUNCTION_SIZE): Output .size
directive for functions.
Index: gcc/config/mips/linux.h
===================================================================
--- gcc/config/mips/linux.h (revision 114271)
+++ gcc/config/mips/linux.h (working copy)
@@ -152,6 +152,7 @@
fputs ("\t.end\t", STREAM); \
assemble_name (STREAM, NAME); \
putc ('\n', STREAM); \
+ ASM_OUTPUT_MEASURED_SIZE (STREAM, NAME); \
} \
} while (0)