diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-02-19 03:46:01 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-03-14 07:02:58 -0400 |
commit | 465fb143c87076b6416a8d0d5dd79bb016060fe3 (patch) | |
tree | d630acdd9e0001b0e6e988d34b72c827c26cc28e /sim/common/run.c | |
parent | b9005ba76ee501a809f2657b04bb2f2590829fa3 (diff) | |
download | fsf-binutils-gdb-465fb143c87076b6416a8d0d5dd79bb016060fe3.zip fsf-binutils-gdb-465fb143c87076b6416a8d0d5dd79bb016060fe3.tar.gz fsf-binutils-gdb-465fb143c87076b6416a8d0d5dd79bb016060fe3.tar.bz2 |
sim: make nrun the default run program
We want people to stop using the run.c frontend, but it's hard to notice
when it's still set as the default. Lets flip things so nrun.c is the
default, and users of run.c will get an error by default. We turn that
error into a warning for existing sims so we don't break them -- this is
mostly meant for people starting new ports.
Diffstat (limited to 'sim/common/run.c')
-rw-r--r-- | sim/common/run.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sim/common/run.c b/sim/common/run.c index 35bb4e1..e474661 100644 --- a/sim/common/run.c +++ b/sim/common/run.c @@ -50,6 +50,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include "run-sim.h" #include "version.h" +#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; |