* Make-common.in: Change clean targets to use :: so that other
Makefiles can have their own clean targets. * sim-load.c (xprintf eprintf): Use ANSI_PROTOTYPES instead of __STDC__ to control use of stdarg vs. varargs syntax. Some systems can't use __STDC__, but require stdarg.
This commit is contained in:
parent
99f347be32
commit
0f399b0c6b
|
@ -1,3 +1,11 @@
|
||||||
|
Tue Apr 22 08:48:16 1997 Stu Grossman (grossman@critters.cygnus.com)
|
||||||
|
|
||||||
|
* Make-common.in: Change clean targets to use :: so that other
|
||||||
|
Makefiles can have their own clean targets.
|
||||||
|
* sim-load.c (xprintf eprintf): Use ANSI_PROTOTYPES instead of
|
||||||
|
__STDC__ to control use of stdarg vs. varargs syntax. Some
|
||||||
|
systems can't use __STDC__, but require stdarg.
|
||||||
|
|
||||||
Fri Apr 18 11:14:43 1997 Doug Evans <dje@canuck.cygnus.com>
|
Fri Apr 18 11:14:43 1997 Doug Evans <dje@canuck.cygnus.com>
|
||||||
|
|
||||||
* sim-options.c (standard_options): Add --endian.
|
* sim-options.c (standard_options): Add --endian.
|
||||||
|
|
|
@ -299,16 +299,17 @@ tags etags: TAGS
|
||||||
TAGS: force
|
TAGS: force
|
||||||
etags *.c *.h
|
etags *.c *.h
|
||||||
|
|
||||||
clean: $(SIM_EXTRA_CLEAN)
|
clean::
|
||||||
rm -f *.[oa] *~ core
|
rm -f *.[oa] *~ core
|
||||||
rm -f run libsim.a
|
rm -f run libsim.a
|
||||||
rm -f gentmap targ-map.c targ-vals.h
|
rm -f gentmap targ-map.c targ-vals.h
|
||||||
rm -f $(BUILT_SRC_FROM_COMMON)
|
rm -f $(BUILT_SRC_FROM_COMMON)
|
||||||
|
|
||||||
distclean mostlyclean maintainer-clean realclean: clean
|
distclean mostlyclean maintainer-clean realclean:: clean
|
||||||
rm -f TAGS
|
rm -f TAGS
|
||||||
rm -f Makefile config.cache config.log config.status
|
rm -f Makefile config.cache config.log config.status
|
||||||
rm -f tconfig.h config.h stamp-h
|
rm -f tconfig.h config.h stamp-h
|
||||||
|
rm -f targ-vals.def
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
$(CC) -c $(ALL_CFLAGS) $<
|
$(CC) -c $(ALL_CFLAGS) $<
|
||||||
|
|
|
@ -20,7 +20,8 @@ along with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
to suggest that they shouldn't :-)]. */
|
to suggest that they shouldn't :-)]. */
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#ifdef __STDC__
|
#include "ansidecl.h"
|
||||||
|
#ifdef ANSI_PROTOTYPES
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#else
|
#else
|
||||||
#include <varargs.h>
|
#include <varargs.h>
|
||||||
|
@ -29,7 +30,6 @@ along with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#endif
|
#endif
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include "ansidecl.h"
|
|
||||||
#include "bfd.h"
|
#include "bfd.h"
|
||||||
#include "callback.h"
|
#include "callback.h"
|
||||||
#include "remote-sim.h"
|
#include "remote-sim.h"
|
||||||
|
@ -146,14 +146,14 @@ sim_load_file (sd, myname, callback, prog, prog_bfd, verbose_p)
|
||||||
static void
|
static void
|
||||||
xprintf VPARAMS ((host_callback *callback, const char *fmt, ...))
|
xprintf VPARAMS ((host_callback *callback, const char *fmt, ...))
|
||||||
{
|
{
|
||||||
#ifndef __STDC__
|
#ifndef ANSI_PROTOTYPES
|
||||||
host_callback *callback;
|
host_callback *callback;
|
||||||
char *fmt;
|
char *fmt;
|
||||||
#endif
|
#endif
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
|
||||||
VA_START (ap, fmt);
|
VA_START (ap, fmt);
|
||||||
#ifndef __STDC__
|
#ifndef ANSI_PROTOTYPES
|
||||||
callback = va_arg (ap, host_callback *);
|
callback = va_arg (ap, host_callback *);
|
||||||
fmt = va_arg (ap, char *);
|
fmt = va_arg (ap, char *);
|
||||||
#endif
|
#endif
|
||||||
|
@ -166,14 +166,14 @@ xprintf VPARAMS ((host_callback *callback, const char *fmt, ...))
|
||||||
static void
|
static void
|
||||||
eprintf VPARAMS ((host_callback *callback, const char *fmt, ...))
|
eprintf VPARAMS ((host_callback *callback, const char *fmt, ...))
|
||||||
{
|
{
|
||||||
#ifndef __STDC__
|
#ifndef ANSI_PROTOTYPES
|
||||||
host_callback *callback;
|
host_callback *callback;
|
||||||
char *fmt;
|
char *fmt;
|
||||||
#endif
|
#endif
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
|
||||||
VA_START (ap, fmt);
|
VA_START (ap, fmt);
|
||||||
#ifndef __STDC__
|
#ifndef ANSI_PROTOTYPES
|
||||||
callback = va_arg (ap, host_callback *);
|
callback = va_arg (ap, host_callback *);
|
||||||
fmt = va_arg (ap, char *);
|
fmt = va_arg (ap, char *);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue