This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Small tweak for output_alternate_entry_point
- From: Zack Weinberg <zack at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 30 Jul 2002 19:35:43 -0700
- Subject: 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;