remove the ``static'' from `static void __start()' and `static void ___start()'
because an overly aggressive gcc -O3 "cleverly" optimizes the functions out. noted in [port-i386/8493], but seen in other ports as well.
This commit is contained in:
parent
fe0968e395
commit
fe5a2bf74b
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: crt0.c,v 1.8 1999/08/23 09:10:23 kleink Exp $ */
|
||||
/* $NetBSD: crt0.c,v 1.9 1999/11/02 10:07:12 lukem Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 Christos Zoulas
|
||||
|
@ -34,7 +34,7 @@
|
|||
|
||||
#include "common.h"
|
||||
|
||||
static void ___start __P((int, char **, char **, void (*cleanup) __P((void)),
|
||||
void ___start __P((int, char **, char **, void (*cleanup) __P((void)),
|
||||
const Obj_Entry *, struct ps_strings *));
|
||||
|
||||
__asm("
|
||||
|
@ -56,7 +56,7 @@ __start:
|
|||
call ___start
|
||||
");
|
||||
|
||||
static void
|
||||
void
|
||||
___start(argc, argv, envp, cleanup, obj, ps_strings)
|
||||
int argc;
|
||||
char **argv;
|
||||
|
@ -97,7 +97,7 @@ ___start(argc, argv, envp, cleanup, obj, ps_strings)
|
|||
* NOTE: Leave the RCS ID _after_ __start(), in case it gets placed in .text.
|
||||
*/
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
__RCSID("$NetBSD: crt0.c,v 1.8 1999/08/23 09:10:23 kleink Exp $");
|
||||
__RCSID("$NetBSD: crt0.c,v 1.9 1999/11/02 10:07:12 lukem Exp $");
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include "common.c"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: crt0.c,v 1.4 1999/08/23 09:23:06 kleink Exp $ */
|
||||
/* $NetBSD: crt0.c,v 1.5 1999/11/02 10:07:13 lukem Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1999 Klaus Klein
|
||||
|
@ -34,7 +34,7 @@
|
|||
|
||||
#include "common.h"
|
||||
|
||||
static void __start __P((int, char **, char **, void (*cleanup) __P((void)),
|
||||
void __start __P((int, char **, char **, void (*cleanup) __P((void)),
|
||||
const Obj_Entry *, struct ps_strings *));
|
||||
|
||||
__asm("
|
||||
|
@ -52,7 +52,7 @@ _start:
|
|||
jsr __start
|
||||
");
|
||||
|
||||
static void
|
||||
void
|
||||
__start(argc, argv, envp, cleanup, obj, ps_strings)
|
||||
int argc;
|
||||
char **argv;
|
||||
|
@ -93,7 +93,7 @@ __start(argc, argv, envp, cleanup, obj, ps_strings)
|
|||
* NOTE: Leave the RCS ID _after_ __start(), in case it gets placed in .text.
|
||||
*/
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
__RCSID("$NetBSD: crt0.c,v 1.4 1999/08/23 09:23:06 kleink Exp $");
|
||||
__RCSID("$NetBSD: crt0.c,v 1.5 1999/11/02 10:07:13 lukem Exp $");
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include "common.c"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: crt0.c,v 1.6 1999/08/24 08:55:27 mrg Exp $ */
|
||||
/* $NetBSD: crt0.c,v 1.7 1999/11/02 10:07:13 lukem Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 Christos Zoulas
|
||||
|
@ -34,7 +34,7 @@
|
|||
|
||||
#include "common.h"
|
||||
|
||||
static void ___start __P((int, char **, char **, void (*cleanup) __P((void)),
|
||||
void ___start __P((int, char **, char **, void (*cleanup) __P((void)),
|
||||
const Obj_Entry *, struct ps_strings *));
|
||||
|
||||
__asm("
|
||||
|
@ -58,7 +58,7 @@ _start:
|
|||
mov %g1, %o5
|
||||
");
|
||||
|
||||
static void
|
||||
void
|
||||
___start(argc, argv, envp, cleanup, obj, ps_strings)
|
||||
int argc;
|
||||
char **argv;
|
||||
|
@ -99,7 +99,7 @@ ___start(argc, argv, envp, cleanup, obj, ps_strings)
|
|||
* NOTE: Leave the RCS ID _after_ __start(), in case it gets placed in .text.
|
||||
*/
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
__RCSID("$NetBSD: crt0.c,v 1.6 1999/08/24 08:55:27 mrg Exp $");
|
||||
__RCSID("$NetBSD: crt0.c,v 1.7 1999/11/02 10:07:13 lukem Exp $");
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include "common.c"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: crt0.c,v 1.10 1998/10/23 00:52:53 matt Exp $ */
|
||||
/* $NetBSD: crt0.c,v 1.11 1999/11/02 10:07:13 lukem Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -58,7 +58,7 @@ struct kframe {
|
|||
asm(" calls $1,___start"); /* do the real start */
|
||||
asm(" halt");
|
||||
|
||||
static void
|
||||
void
|
||||
__start(kfp)
|
||||
struct kframe *kfp;
|
||||
{
|
||||
|
@ -117,7 +117,7 @@ asm ("__callmain:"); /* Defined for the benefit of debuggers */
|
|||
#include "common.c"
|
||||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
__RCSID("$NetBSD: crt0.c,v 1.10 1998/10/23 00:52:53 matt Exp $");
|
||||
__RCSID("$NetBSD: crt0.c,v 1.11 1999/11/02 10:07:13 lukem Exp $");
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#ifdef MCRT0
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: crt0.c,v 1.1 1999/08/21 19:26:18 matt Exp $ */
|
||||
/* $NetBSD: crt0.c,v 1.2 1999/11/02 10:07:13 lukem Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1999 Matt Thomas
|
||||
|
@ -34,7 +34,7 @@
|
|||
|
||||
#include "common.h"
|
||||
|
||||
static void ___start __P((int, char **, char **, void (*cleanup) __P((void)),
|
||||
void ___start __P((int, char **, char **, void (*cleanup) __P((void)),
|
||||
const Obj_Entry *, struct ps_strings *));
|
||||
|
||||
__asm("
|
||||
|
@ -53,7 +53,7 @@ __start:
|
|||
calls $6,___start
|
||||
");
|
||||
|
||||
static void
|
||||
void
|
||||
___start(argc, argv, envp, cleanup, obj, ps_strings)
|
||||
int argc;
|
||||
char **argv;
|
||||
|
@ -94,7 +94,7 @@ ___start(argc, argv, envp, cleanup, obj, ps_strings)
|
|||
* NOTE: Leave the RCS ID _after_ __start(), in case it gets placed in .text.
|
||||
*/
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
__RCSID("$NetBSD: crt0.c,v 1.1 1999/08/21 19:26:18 matt Exp $");
|
||||
__RCSID("$NetBSD: crt0.c,v 1.2 1999/11/02 10:07:13 lukem Exp $");
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include "common.c"
|
||||
|
|
Loading…
Reference in New Issue