freebsd-ports/lang/gcc27/files/patch-function.c

35 lines
770 B
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

--- function.c.orig Wed Aug 13 10:23:26 1997
+++ function.c Mon Mar 20 13:29:11 2000
@@ -4887,18 +4887,23 @@
#define HAS_INIT_SECTION
#endif
+#ifndef GEN_CALL__MAIN
+#ifndef HAS_INIT_SECTION
+#define GEN_CALL__MAIN \
+ do { \
+ emit_library_call (gen_rtx (SYMBOL_REF, Pmode, NAME__MAIN), 0, \
+ VOIDmode, 0); \
+ } while (0)
+#endif
+#endif
+
void
expand_main_function ()
{
+#ifdef GEN_CALL__MAIN
if (!output_bytecode)
- {
- /* The zero below avoids a possible parse error */
- 0;
-#if !defined (HAS_INIT_SECTION)
- emit_library_call (gen_rtx (SYMBOL_REF, Pmode, NAME__MAIN), 0,
- VOIDmode, 0);
-#endif /* not HAS_INIT_SECTION */
- }
+ GEN_CALL__MAIN;
+#endif
}
extern struct obstack permanent_obstack;