X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=sim%2Fcommon%2Frun.c;h=196d5325e87bdb72a1feb6b6ccc02a109d55ae29;hb=aadc9410ba24ecf777fcc515afda69ef94d74248;hp=68ac0bdea70948a89e73ae912717f9b6a8c20431;hpb=e4d013fc0f3df3200be2dca48ed2e330e8a4ddf9;p=thirdparty%2Fbinutils-gdb.git
diff --git a/sim/common/run.c b/sim/common/run.c
index 68ac0bdea70..196d5325e87 100644
--- a/sim/common/run.c
+++ b/sim/common/run.c
@@ -1,6 +1,5 @@
/* run front end support for all the simulators.
- Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
- 2002, 2003, 2004, 2007, 2008, 2009 Free Software Foundation, Inc.
+ Copyright (C) 1992-2015 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -20,7 +19,6 @@ along with this program. If not, see . */
#ifdef HAVE_CONFIG_H
#include "cconfig.h"
-#include "tconfig.h"
#endif
#include
@@ -51,8 +49,15 @@ along with this program. If not, see . */
#include "run-sim.h"
#include "version.h"
-static void usage PARAMS ((int help));
-static void print_version PARAMS ((void));
+#ifdef SIM_USE_DEPRECATED_RUN_FRONTEND
+# warning "This sim is using the deprecated run.c; please migrate to nrun.c."
+#else
+# error "Please do not create new sim ports using run.c; use nrun.c instead." \
+ "New submissions using run.c will not be accepted."
+#endif
+
+static void usage (int help);
+static void print_version (void);
extern int optind;
extern char *optarg;
@@ -64,7 +69,7 @@ extern int getopt ();
#ifdef NEED_UI_LOOP_HOOK
/* Gdb foolery. This is only needed for gdb using a gui. */
-int (*deprecated_ui_loop_hook) PARAMS ((int signo));
+int (*deprecated_ui_loop_hook) (int signo);
#endif
static SIM_DESC sd;
@@ -80,9 +85,7 @@ cntrl_c (int sig ATTRIBUTE_UNUSED)
}
int
-main (ac, av)
- int ac;
- char **av;
+main (int ac, char **av)
{
RETSIGTYPE (*prev_sigint) ();
bfd *abfd;
@@ -351,8 +354,8 @@ usage (int help)
exit (help ? 0 : 1);
}
-static void
-print_version ()
+static void
+print_version (void)
{
printf ("GNU simulator %s%s\n", PKGVERSION, version);
}