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]

Small tweak for output_alternate_entry_point


Now that .type is accessible outside ASM_OUTPUT_FUNCTION_START, we can
use it to mark alternate entry points properly.

Bootstrapped i686-linux (this code is not currently used for
anything).

zw

	* final.c (output_alternate_entry_point):
	If ASM_OUTPUT_TYPE_DIRECTIVE is defined, use it.

===================================================================
Index: final.c
--- final.c	19 Jul 2002 23:11:18 -0000	1.263
+++ final.c	31 Jul 2002 02:34:58 -0000
@@ -1974,7 +1974,9 @@ output_alternate_entry_point (file, insn
     case LABEL_GLOBAL_ENTRY:
       ASM_GLOBALIZE_LABEL (file, name);
     case LABEL_STATIC_ENTRY:
-      /* FIXME output a .type directive here if appropriate.  */
+#ifdef ASM_OUTPUT_TYPE_DIRECTIVE
+      ASM_OUTPUT_TYPE_DIRECTIVE (file, name, "function");
+#endif
       ASM_OUTPUT_LABEL (file, name);
       break;
 


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