aboutsummaryrefslogtreecommitdiff
path: root/gas/as.h
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2010-06-03 07:36:04 +0000
committerTristan Gingold <gingold@adacore.com>2010-06-03 07:36:04 +0000
commitaadd803061a38c972762f18472d3c52cfcf7ecde (patch)
tree6f0adaa0a63c4c652732f7e1217c1f4efe2106b4 /gas/as.h
parentdf1784511914208f03f111bc06e42ab3d75dcbd5 (diff)
downloadgdb-aadd803061a38c972762f18472d3c52cfcf7ecde.zip
gdb-aadd803061a38c972762f18472d3c52cfcf7ecde.tar.gz
gdb-aadd803061a38c972762f18472d3c52cfcf7ecde.tar.bz2
2010-06-02 Tristan Gingold <gingold@adacore.com>
* as.h: Remove conditionnal definition of HAVE_STDARG_H, USE_STDARG, va_alist, va_dcl, va_list, va_start, va_end. Remove conditionnal inclusion of stdarg.h and varargs.h. Assume ISO C. * config.in: Regenerate. * configure: Regenerate. * configure.in: Remove stdarg.h and varargs.h from AC_CHECK_HEADERS list. * messages.c (as_tsktsk): Remove non ISO C version. (as_warn, as_warn_where, as_bad, as_bad_where, as_fatal): Ditto.
Diffstat (limited to 'gas/as.h')
-rw-r--r--gas/as.h36
1 files changed, 0 insertions, 36 deletions
diff --git a/gas/as.h b/gas/as.h
index c670536..2b2562e 100644
--- a/gas/as.h
+++ b/gas/as.h
@@ -38,19 +38,6 @@
#include "alloca-conf.h"
-/* Prefer varargs for non-ANSI compiler, since some will barf if the
- ellipsis definition is used with a no-arguments declaration. */
-#if defined (HAVE_VARARGS_H) && !defined (__STDC__)
-#undef HAVE_STDARG_H
-#endif
-
-#if defined (HAVE_STDARG_H)
-#define USE_STDARG
-#endif
-#if !defined (USE_STDARG) && defined (HAVE_VARARGS_H)
-#define USE_VARARGS
-#endif
-
/* Now, tend to the rest of the configuration. */
/* System include files first... */
@@ -77,22 +64,7 @@
#include <errno.h>
#endif
-#ifdef USE_STDARG
#include <stdarg.h>
-#endif
-
-#ifdef USE_VARARGS
-#include <varargs.h>
-#endif
-
-#if !defined (USE_STDARG) && !defined (USE_VARARGS)
-/* Roll our own. */
-#define va_alist REST
-#define va_dcl
-typedef int * va_list;
-#define va_start(ARGS) ARGS = &REST
-#define va_end(ARGS)
-#endif
#include "getopt.h"
/* The first getopt value for machine-independent long options.
@@ -458,7 +430,6 @@ struct _pseudo_type
typedef struct _pseudo_type pseudo_typeS;
-#ifdef USE_STDARG
#if (__GNUC__ >= 2) && !defined(VMS)
/* for use with -Wformat */
@@ -485,13 +456,6 @@ typedef struct _pseudo_type pseudo_typeS;
#endif /* __GNUC__ < 2 || defined(VMS) */
-#else /* ! USE_STDARG */
-
-#define PRINTF_LIKE(FCN) void FCN ()
-#define PRINTF_WHERE_LIKE(FCN) void FCN ()
-
-#endif /* ! USE_STDARG */
-
PRINTF_LIKE (as_bad);
PRINTF_LIKE (as_fatal) ATTRIBUTE_NORETURN;
PRINTF_LIKE (as_tsktsk);