about summary refs log tree commit diff
path: root/ports/sysdeps/mips/sys
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2013-02-11 18:19:14 +0000
committerJoseph Myers <joseph@codesourcery.com>2013-02-11 18:19:14 +0000
commitaea7a9b9d2f9482d174ab95881b132de8472a388 (patch)
tree288649fb67917ffdbe5438013e4c277e521d9d88 /ports/sysdeps/mips/sys
parent046f153e209a5cd3f74fd7315743b51ff1853af1 (diff)
downloadglibc-aea7a9b9d2f9482d174ab95881b132de8472a388.tar.gz
glibc-aea7a9b9d2f9482d174ab95881b132de8472a388.tar.xz
glibc-aea7a9b9d2f9482d174ab95881b132de8472a388.zip
Add CFI information for MIPS assembly sources.
Diffstat (limited to 'ports/sysdeps/mips/sys')
-rw-r--r--ports/sysdeps/mips/sys/asm.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/ports/sysdeps/mips/sys/asm.h b/ports/sysdeps/mips/sys/asm.h
index 605451a884..293cf364e0 100644
--- a/ports/sysdeps/mips/sys/asm.h
+++ b/ports/sysdeps/mips/sys/asm.h
@@ -26,6 +26,10 @@
 # define CAT(str1,str2) __CAT(str1,str2)
 #endif
 
+/* Redefined as nonempty in the internal header.  */
+#define __mips_cfi_startproc /* Empty.  */
+#define __mips_cfi_endproc /* Empty.  */
+
 /*
  * Macros to handle different pointer/register sizes for 32/64-bit code
  *
@@ -147,7 +151,8 @@ l:							\
 		.align	2;                              \
 		.type	symbol,@function;               \
 		.ent	symbol,0;                       \
-symbol:		.frame	sp,0,ra
+symbol:		.frame	sp,0,ra;			\
+		__mips_cfi_startproc
 
 /*
  * NESTED - declare nested routine entry point
@@ -157,13 +162,15 @@ symbol:		.frame	sp,0,ra
 		.align	2;                              \
 		.type	symbol,@function;               \
 		.ent	symbol,0;                       \
-symbol:		.frame	sp, framesize, rpc
+symbol:		.frame	sp, framesize, rpc;		\
+		__mips_cfi_startproc
 
 /*
  * END - mark end of function
  */
 #ifndef END
 # define END(function)                                   \
+		__mips_cfi_endproc;			\
 		.end	function;		        \
 		.size	function,.-function
 #endif
@@ -173,7 +180,7 @@ symbol:		.frame	sp, framesize, rpc
  */
 #define	EXPORT(symbol)                                  \
 		.globl	symbol;                         \
-symbol:
+symbol:		__mips_cfi_startproc
 
 /*
  * ABS - export absolute symbol