This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Against the tide of bit rot
On Fri, Aug 10, 2001 at 12:05:29PM -0400, Zack Weinberg wrote:
> libbackend.a(m68k.o): In function `m68k_svr3_asm_out_constructor':
> m68k.c:4247: undefined reference to `init_section'
Fixed thus.
r~
* config/m68k/m68k.c (m68k_svr3_asm_out_constructor): Protect with
ifdef CTOR_LIST_BEGIN instead of INIT_SECTION_ASM_OP.
Index: m68k.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/m68k/m68k.c,v
retrieving revision 1.52
diff -u -p -r1.52 m68k.c
--- m68k.c 2001/08/09 22:33:26 1.52
+++ m68k.c 2001/08/10 16:11:36
@@ -63,7 +63,7 @@ static void m68k_output_function_prologu
static void m68k_output_function_epilogue PARAMS ((FILE *, HOST_WIDE_INT));
static void m68k_coff_asm_named_section PARAMS ((const char *, unsigned int,
unsigned int));
-#ifdef INIT_SECTION_ASM_OP
+#ifdef CTOR_LIST_BEGIN
static void m68k_svr3_asm_out_constructor PARAMS ((rtx, int));
#endif
@@ -4233,7 +4233,7 @@ m68k_coff_asm_named_section (name, flags
fprintf (asm_out_file, "\t.section\t%s,\"%c\"\n", name, flagchar);
}
-#ifdef INIT_SECTION_ASM_OP
+#ifdef CTOR_LIST_BEGIN
static void
m68k_svr3_asm_out_constructor (symbol, priority)
rtx symbol;