summaryrefslogtreecommitdiff
path: root/gas/as.h
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2010-06-03 07:35:56 +0000
committerTristan Gingold <gingold@adacore.com>2010-06-03 07:35:56 +0000
commitba041e9099f764821b32d20e8608ee83b6b74d79 (patch)
tree54559ea1f640a17f234089b7b3348d6026b60187 /gas/as.h
parent32814453de513c5177a76710b33a63fa9ac7704d (diff)
downloadbinutils-redhat-ba041e9099f764821b32d20e8608ee83b6b74d79.tar.gz
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 c670536b9f..2b2562e85e 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);