This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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)
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]