Patchwork [patch/djgpp] : Add ASM_DECLARE_FUNCTION_NAME

login
register
mail settings
Submitter DJ Delorie
Date Aug. 27, 2013, 4:22 a.m.
Message ID <201308270422.r7R4MAKi029102@greed.delorie.com>
Download mbox | patch
Permalink /patch/270018/
State New
Headers show

Comments

DJ Delorie - Aug. 27, 2013, 4:22 a.m.
Needed to build i586-pc-msdosdjgpp target, committed.

	* config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.

Patch

Index: config/i386/djgpp.h
===================================================================
--- config/i386/djgpp.h	(revision 202015)
+++ config/i386/djgpp.h	(working copy)
@@ -117,6 +117,17 @@ 
 #define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
   asm_output_aligned_bss ((FILE), (DECL), (NAME), (SIZE), (ALIGN))
 
+/* Write the extra assembler code needed to declare a function properly.  */
+
+#ifndef ASM_DECLARE_FUNCTION_NAME
+#define ASM_DECLARE_FUNCTION_NAME(FILE, NAME, DECL)		\
+  do								\
+    {								\
+      ASM_OUTPUT_FUNCTION_LABEL (FILE, NAME, DECL);		\
+    }								\
+  while (0)
+#endif
+
 /* This is how to tell assembler that a symbol is weak  */ 
 #undef ASM_WEAKEN_LABEL
 #define ASM_WEAKEN_LABEL(FILE,NAME) \