(to distinguish it from the macro wrapping ansidecl.h.)
Include libiberty's ansidecl.h. Remove all redundant definitions.
Define the PROTO() style macros in terms of the PARAMS() ones.
* calls.c (emit_library_call): Switch on ANSI_PROTOTYPES, not
__STDC__, when deciding whether to use ANSI variable args.
(emit_library_call_value): Likewise.
* cccp.c (error): Likewise.
(warning): Likewise.
(error_with_line): Likewise.
(warning_with_line): Likewise.
(pedwarn): Likewise.
(pedwarn_with_line): Likewise.
(pedwarn_with_file_and_line): Likewise.
(fatal): Likewise.
* cexp.y (error): Likewise.
(pedwarn): Likewise.
(warning): Likewise.
* collect2.c (fatal_perror): Likewise.
(fatal): Likewise.
(error): Likewise.
* combine.c (gen_rtx_combine): Likewise.
* cpperror.c (cpp_message): Likewise.
(cpp_fatal): Likewise.
* cpplib.c (cpp_error): Likewise.
(cpp_warning): Likewise.
(cpp_pedwarn): Likewise.
(cpp_error_with_line): Likewise.
(cpp_warning_with_line): Likewise.
(cpp_pedwarn_with_line): Likewise.
(cpp_pedwarn_with_file_and_line): Likewise.
* cpplib.h: Don't define PARAMS() macro.
* demangle.h: Likewise.
* doprint.c (checkit): Switch on ANSI_PROTOTYPES, not __STDC__,
when deciding whether to use ANSI variable args.
* emit-rtl.c (gen_rtx): Likewise.
(gen_rtvec): Likewise.
* final.c (asm_fprintf): Likewise.
* fix-header.c (cpp_message): Likewise.
(fatal): Likewise.
(cpp_fatal): Likewise.
* gcc.c (concat): Likewise.
(fatal): Likewise.
(error): Likewise.
* genattr.c (fatal): Likewise.
* genattrtab.c (attr_rtx): Likewise.
(attr_printf): Likewise.
(fatal): Likewise.
* gencodes.c (fatal): Likewise.
* genconfig.c (fatal): Likewise.
* genemit.c (fatal): Likewise.
* genextract.c (fatal): Likewise.
* genflags.c (fatal): Likewise.
* genopinit.c (fatal): Likewise.
* genoutput.c (fatal): Likewise.
(error): Likewise.
* genpeep.c (fatal): Likewise.
* genrecog.c (fatal): Likewise.
* halfpic.h: Switch on ANSI_PROTOTYPES, not __STDC__, when
deciding whether to declare `tree_node' and `rtx_def'.
* hash.h: Don't define stuff we get from gansidecl.h.
* mips-tfile.c: Likewise. Define __proto() in terms of PARAMS().
(fatal): Switch on ANSI_PROTOTYPES, not __STDC__, when deciding
whether to use ANSI variable args.
(error): Likewise.
* prefix.c (concat): Likewise.
* scan.h: Likewise.
* system.h: Likewise.
* toplev.c (error_with_file_and_line): Likewise.
(error_with_decl): Likewise.
(error_for_asm): Likewise.
(error): Likewise.
(fatal): Likewise.
(warning_with_file_and_line): Likewise.
(warning_with_decl): Likewise.
(warning_for_asm): Likewise.
(warning): Likewise.
(pedwarn): Likewise.
(pedwarn_with_decl): Likewise.
(pedwarn_with_file_and_line): Likewise.
(sorry): Likewise.
(really_sorry): Likewise.
* toplev.h: Switch on ANSI_PROTOTYPES, not __STDC__, when deciding
whether to declare `tree_node' and `rtx_def'.
* tree.c (build): Switch on ANSI_PROTOTYPES, not __STDC__, when
deciding whether to use ANSI variable args.
(build_nt): Likewise.
(build_parse_node): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23577
138bc75d-0d04-0410-961f-
82ee72b054a4
+Sun Nov 8 17:50:30 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * gansidecl.h: Prepend a "G" to the macro wrapping this file
+ (to distinguish it from the macro wrapping ansidecl.h.)
+ Include libiberty's ansidecl.h. Remove all redundant definitions.
+ Define the PROTO() style macros in terms of the PARAMS() ones.
+
+
+ * calls.c (emit_library_call): Switch on ANSI_PROTOTYPES, not
+ __STDC__, when deciding whether to use ANSI variable args.
+ (emit_library_call_value): Likewise.
+
+ * cccp.c (error): Likewise.
+ (warning): Likewise.
+ (error_with_line): Likewise.
+ (warning_with_line): Likewise.
+ (pedwarn): Likewise.
+ (pedwarn_with_line): Likewise.
+ (pedwarn_with_file_and_line): Likewise.
+ (fatal): Likewise.
+
+ * cexp.y (error): Likewise.
+ (pedwarn): Likewise.
+ (warning): Likewise.
+
+ * collect2.c (fatal_perror): Likewise.
+ (fatal): Likewise.
+ (error): Likewise.
+
+ * combine.c (gen_rtx_combine): Likewise.
+
+ * cpperror.c (cpp_message): Likewise.
+ (cpp_fatal): Likewise.
+
+ * cpplib.c (cpp_error): Likewise.
+ (cpp_warning): Likewise.
+ (cpp_pedwarn): Likewise.
+ (cpp_error_with_line): Likewise.
+ (cpp_warning_with_line): Likewise.
+ (cpp_pedwarn_with_line): Likewise.
+ (cpp_pedwarn_with_file_and_line): Likewise.
+
+ * cpplib.h: Don't define PARAMS() macro.
+
+ * demangle.h: Likewise.
+
+ * doprint.c (checkit): Switch on ANSI_PROTOTYPES, not __STDC__,
+ when deciding whether to use ANSI variable args.
+
+ * emit-rtl.c (gen_rtx): Likewise.
+ (gen_rtvec): Likewise.
+
+ * final.c (asm_fprintf): Likewise.
+
+ * fix-header.c (cpp_message): Likewise.
+ (fatal): Likewise.
+ (cpp_fatal): Likewise.
+
+ * gcc.c (concat): Likewise.
+ (fatal): Likewise.
+ (error): Likewise.
+
+ * genattr.c (fatal): Likewise.
+
+ * genattrtab.c (attr_rtx): Likewise.
+ (attr_printf): Likewise.
+ (fatal): Likewise.
+
+ * gencodes.c (fatal): Likewise.
+
+ * genconfig.c (fatal): Likewise.
+
+ * genemit.c (fatal): Likewise.
+
+ * genextract.c (fatal): Likewise.
+
+ * genflags.c (fatal): Likewise.
+
+ * genopinit.c (fatal): Likewise.
+
+ * genoutput.c (fatal): Likewise.
+ (error): Likewise.
+
+ * genpeep.c (fatal): Likewise.
+
+ * genrecog.c (fatal): Likewise.
+
+ * halfpic.h: Switch on ANSI_PROTOTYPES, not __STDC__, when
+ deciding whether to declare `tree_node' and `rtx_def'.
+
+ * hash.h: Don't define stuff we get from gansidecl.h.
+
+ * mips-tfile.c: Likewise. Define __proto() in terms of PARAMS().
+ (fatal): Switch on ANSI_PROTOTYPES, not __STDC__, when deciding
+ whether to use ANSI variable args.
+ (error): Likewise.
+
+ * prefix.c (concat): Likewise.
+
+ * scan.h: Likewise.
+
+ * system.h: Likewise.
+
+ * toplev.c (error_with_file_and_line): Likewise.
+ (error_with_decl): Likewise.
+ (error_for_asm): Likewise.
+ (error): Likewise.
+ (fatal): Likewise.
+ (warning_with_file_and_line): Likewise.
+ (warning_with_decl): Likewise.
+ (warning_for_asm): Likewise.
+ (warning): Likewise.
+ (pedwarn): Likewise.
+ (pedwarn_with_decl): Likewise.
+ (pedwarn_with_file_and_line): Likewise.
+ (sorry): Likewise.
+ (really_sorry): Likewise.
+
+ * toplev.h: Switch on ANSI_PROTOTYPES, not __STDC__, when deciding
+ whether to declare `tree_node' and `rtx_def'.
+
+ * tree.c (build): Switch on ANSI_PROTOTYPES, not __STDC__, when
+ deciding whether to use ANSI variable args.
+ (build_nt): Likewise.
+ (build_parse_node): Likewise.
+
Sun Nov 8 13:10:55 PST 1998 Jeff Law (law@cygnus.com)
* version.c: Bump for snapshot.
emit_library_call VPROTO((rtx orgfun, int no_queue, enum machine_mode outmode,
int nargs, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
rtx orgfun;
int no_queue;
enum machine_mode outmode;
VA_START (p, nargs);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
orgfun = va_arg (p, rtx);
no_queue = va_arg (p, int);
outmode = va_arg (p, enum machine_mode);
emit_library_call_value VPROTO((rtx orgfun, rtx value, int no_queue,
enum machine_mode outmode, int nargs, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
rtx orgfun;
rtx value;
int no_queue;
VA_START (p, nargs);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
orgfun = va_arg (p, rtx);
value = va_arg (p, rtx);
no_queue = va_arg (p, int);
void
error VPROTO ((char * msg, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char * msg;
#endif
va_list args;
VA_START (args, msg);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
msg = va_arg (args, char *);
#endif
void
warning VPROTO ((char * msg, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char * msg;
#endif
va_list args;
VA_START (args, msg);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
msg = va_arg (args, char *);
#endif
static void
error_with_line VPROTO ((int line, char * msg, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
int line;
char * msg;
#endif
VA_START (args, msg);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
line = va_arg (args, int);
msg = va_arg (args, char *);
#endif
static void
warning_with_line VPROTO ((int line, char * msg, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
int line;
char * msg;
#endif
VA_START (args, msg);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
line = va_arg (args, int);
msg = va_arg (args, char *);
#endif
void
pedwarn VPROTO ((char * msg, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char * msg;
#endif
va_list args;
VA_START (args, msg);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
msg = va_arg (args, char *);
#endif
void
pedwarn_with_line VPROTO ((int line, char * msg, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
int line;
char * msg;
#endif
VA_START (args, msg);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
line = va_arg (args, int);
msg = va_arg (args, char *);
#endif
pedwarn_with_file_and_line VPROTO ((char *file, size_t file_len, int line,
char * msg, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char *file;
size_t file_len;
int line;
VA_START (args, msg);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
file = va_arg (args, char *);
file_len = va_arg (args, size_t);
line = va_arg (args, int);
static void
fatal VPROTO ((char * msg, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char * msg;
#endif
va_list args;
fprintf (stderr, "%s: ", progname);
VA_START (args, msg);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
msg = va_arg (args, char *);
#endif
void
error VPROTO ((char * msg, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char * msg;
#endif
va_list args;
VA_START (args, msg);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
msg = va_arg (args, char *);
#endif
void
pedwarn VPROTO ((char * msg, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char * msg;
#endif
va_list args;
VA_START (args, msg);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
msg = va_arg (args, char *);
#endif
void
warning VPROTO ((char * msg, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char * msg;
#endif
va_list args;
VA_START (args, msg);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
msg = va_arg (args, char *);
#endif
void
error VPROTO ((char * msg, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char * msg;
#endif
va_list args;
VA_START (args, msg);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
msg = va_arg (args, char *);
#endif
void
pedwarn VPROTO ((char * msg, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char * msg;
#endif
va_list args;
VA_START (args, msg);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
msg = va_arg (args, char *);
#endif
void
warning VPROTO ((char * msg, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char * msg;
#endif
va_list args;
VA_START (args, msg);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
msg = va_arg (args, char *);
#endif
void
fatal_perror VPROTO((const char * string, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
const char *string;
#endif
int e = errno;
VA_START (ap, string);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
string = va_arg (ap, const char *);
#endif
void
fatal VPROTO((const char * string, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
const char *string;
#endif
va_list ap;
VA_START (ap, string);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
string = va_arg (ap, const char *);
#endif
void
error VPROTO((const char * string, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
const char * string;
#endif
va_list ap;
VA_START (ap, string);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
string = va_arg (ap, const char *);
#endif
static rtx
gen_rtx_combine VPROTO((enum rtx_code code, enum machine_mode mode, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
enum rtx_code code;
enum machine_mode mode;
#endif
VA_START (p, mode);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
code = va_arg (p, enum rtx_code);
mode = va_arg (p, enum machine_mode);
#endif
void
cpp_message VPROTO ((cpp_reader *pfile, int is_error, const char *msg, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
cpp_reader *pfile;
int is_error;
const char *msg;
VA_START (ap, msg);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
pfile = va_arg (ap, cpp_reader *);
is_error = va_arg (ap, int);
msg = va_arg (ap, const char *);
void
cpp_fatal VPROTO ((cpp_reader *pfile, const char *str, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
cpp_reader *pfile;
const char *str;
#endif
VA_START (ap, str);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
pfile = va_arg (ap, cpp_reader *);
str = va_arg (ap, const char *);
#endif
void
cpp_error VPROTO ((cpp_reader * pfile, const char *msg, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
cpp_reader *pfile;
const char *msg;
#endif
VA_START(ap, msg);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
pfile = va_arg (ap, cpp_reader *);
msg = va_arg (ap, const char *);
#endif
void
cpp_warning VPROTO ((cpp_reader * pfile, const char *msg, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
cpp_reader *pfile;
const char *msg;
#endif
VA_START (ap, msg);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
pfile = va_arg (ap, cpp_reader *);
msg = va_arg (ap, const char *);
#endif
void
cpp_pedwarn VPROTO ((cpp_reader * pfile, const char *msg, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
cpp_reader *pfile;
const char *msg;
#endif
VA_START (ap, msg);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
pfile = va_arg (ap, cpp_reader *);
msg = va_arg (ap, const char *);
#endif
void
cpp_error_with_line VPROTO ((cpp_reader * pfile, int line, int column, const char *msg, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
cpp_reader *pfile;
int line;
int column;
VA_START (ap, msg);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
pfile = va_arg (ap, cpp_reader *);
line = va_arg (ap, int);
column = va_arg (ap, int);
static void
cpp_warning_with_line VPROTO ((cpp_reader * pfile, int line, int column, const char *msg, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
cpp_reader *pfile;
int line;
int column;
VA_START (ap, msg);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
pfile = va_arg (ap, cpp_reader *);
line = va_arg (ap, int);
column = va_arg (ap, int);
void
cpp_pedwarn_with_line VPROTO ((cpp_reader * pfile, int line, int column, const char *msg, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
cpp_reader *pfile;
int line;
int column;
VA_START (ap, msg);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
pfile = va_arg (ap, cpp_reader *);
line = va_arg (ap, int);
column = va_arg (ap, int);
void
cpp_pedwarn_with_file_and_line VPROTO ((cpp_reader *pfile, char *file, int line, const char *msg, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
cpp_reader *pfile;
char *file;
int line;
VA_START (ap, msg);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
pfile = va_arg (ap, cpp_reader *);
file = va_arg (ap, char *);
line = va_arg (ap, int);
CPP_POP
};
-#ifndef PARAMS
-#define PARAMS(P) PROTO(P)
-#endif /* !PARAMS */
-
typedef enum cpp_token (*parse_underflow_t) PARAMS((cpp_reader *));
typedef int (*parse_cleanup_t) PARAMS((cpp_buffer *, cpp_reader *));
#if !defined (DEMANGLE_H)
#define DEMANGLE_H
-#ifdef IN_GCC
-#define PARAMS(ARGS) PROTO(ARGS)
-#else /* ! IN_GCC */
+#ifndef IN_GCC
#include <ansidecl.h>
-#endif /* IN_GCC */
+#endif /* ! IN_GCC */
/* Options passed to cplus_demangle (in 2nd parameter). */
va_list args;
int result;
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char *format;
#endif
VA_START (args, format);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
format = va_arg (args, char *);
#endif
rtx
gen_rtx VPROTO((enum rtx_code code, enum machine_mode mode, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
enum rtx_code code;
enum machine_mode mode;
#endif
VA_START (p, mode);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
code = va_arg (p, enum rtx_code);
mode = va_arg (p, enum machine_mode);
#endif
rtvec
gen_rtvec VPROTO((int n, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
int n;
#endif
int i;
VA_START (p, n);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
n = va_arg (p, int);
#endif
void
asm_fprintf VPROTO((FILE *file, char *p, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
FILE *file;
char *p;
#endif
VA_START (argptr, p);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
file = va_arg (argptr, FILE *);
p = va_arg (argptr, char *);
#endif
void
cpp_message VPROTO ((cpp_reader *pfile, int is_error, const char *msg, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
cpp_reader *pfile;
int is_error;
const char *msg;
VA_START (ap, msg);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
pfile = va_arg (ap, cpp_reader *);
is_error = va_arg (ap, const int);
msg = va_arg (ap, const char *);
void
fatal VPROTO ((const char *str, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
const char *str;
#endif
va_list ap;
VA_START(ap, str);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
str = va_arg (ap, const char *);
#endif
void
cpp_fatal VPROTO ((cpp_reader * pfile ATTRIBUTE_UNUSED, const char *str, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
cpp_reader * pfile;
const char *str;
#endif
VA_START(ap, str);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
pfile = va_arg (ap, cpp_reader *);
str = va_arg (ap, const char *);
#endif
in binutils and gdb releases.
??? Over time the two should be merged into one. */
-#ifndef ANSIDECL_H
-#define ANSIDECL_H
+#ifndef __GANSIDECL_H__
+#define __GANSIDECL_H__
-/* Add prototype support. */
-#ifndef PROTO
-#if defined (USE_PROTOTYPES) ? USE_PROTOTYPES : defined (__STDC__)
-#define PROTO(ARGS) ARGS
-#else
-#define PROTO(ARGS) ()
-#endif
-#endif
+#include "ansidecl.h"
-#ifndef VPROTO
-#ifdef __STDC__
-#define PVPROTO(ARGS) ARGS
-#define VPROTO(ARGS) ARGS
-#define VA_START(va_list,var) va_start(va_list,var)
-#else
-#define PVPROTO(ARGS) ()
-#define VPROTO(ARGS) (va_alist) va_dcl
-#define VA_START(va_list,var) va_start(va_list)
-#endif
-#endif
+/* Undef ansidecl.h's "obsolete" version. */
+#undef PROTO
+/* These macros are deprecated, use ansidecl.h's PARAMS style instead. */
+#define PROTO(ARGS) PARAMS(ARGS)
+#define VPROTO(ARGS) VPARAMS(ARGS)
+#define PVPROTO(ARGS) PARAMS(ARGS)
#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7)
# define __attribute__(x)
#define ATTRIBUTE_PRINTF_5 ATTRIBUTE_PRINTF(5, 6)
#endif /* ATTRIBUTE_PRINTF */
-#ifndef GENERIC_PTR
-#if defined (USE_PROTOTYPES) ? USE_PROTOTYPES : defined (__STDC__)
-#define GENERIC_PTR void *
-#else
-#define GENERIC_PTR char *
-#endif
-#endif
+#define GENERIC_PTR PTR
#ifndef NULL_PTR
-#define NULL_PTR ((GENERIC_PTR) 0)
+#define NULL_PTR ((PTR) 0)
#endif
-#ifdef __STDC__
-
-#define PTR void *
-
-#else
-
-#define PTR char *
-#ifndef const
-#define const
-#endif
-
-#endif /* ! __STDC__ */
-
-#endif /* ANSIDECL_H */
+#endif /* __GANSIDECL_H__ */
register char *end;
register char *arg;
va_list args;
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char *first;
#endif
/* First compute the size of the result and get sufficient memory. */
VA_START (args, first);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
first = va_arg (args, char *);
#endif
/* Now copy the individual pieces to the result string. */
VA_START (args, first);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
first = va_arg (args, char *);
#endif
static void
fatal VPROTO((char *format, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char *format;
#endif
va_list ap;
VA_START (ap, format);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
format = va_arg (ap, char *);
#endif
static void
error VPROTO((char *format, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char *format;
#endif
va_list ap;
VA_START (ap, format);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
format = va_arg (ap, char *);
#endif
static void
fatal VPROTO ((char *format, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char *format;
#endif
va_list ap;
VA_START (ap, format);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
format = va_arg (ap, char *);
#endif
static rtx
attr_rtx VPROTO((enum rtx_code code, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
enum rtx_code code;
#endif
va_list p;
VA_START (p, code);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
code = va_arg (p, enum rtx_code);
#endif
static char *
attr_printf VPROTO((register int len, char *fmt, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
register int len;
char *fmt;
#endif
VA_START (p, fmt);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
len = va_arg (p, int);
fmt = va_arg (p, char *);
#endif
static void
fatal VPROTO ((char *format, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char *format;
#endif
va_list ap;
VA_START (ap, format);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
format = va_arg (ap, char *);
#endif
static void
fatal VPROTO ((char *format, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char *format;
#endif
va_list ap;
VA_START (ap, format);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
format = va_arg (ap, char *);
#endif
static void
fatal VPROTO ((char *format, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char *format;
#endif
va_list ap;
VA_START (ap, format);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
format = va_arg (ap, char *);
#endif
static void
fatal VPROTO ((char *format, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char *format;
#endif
va_list ap;
VA_START (ap, format);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
format = va_arg (ap, char *);
#endif
static void
fatal VPROTO ((char *format, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char *format;
#endif
va_list ap;
VA_START (ap, format);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
format = va_arg (ap, char *);
#endif
static void
fatal VPROTO ((char *format, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char *format;
#endif
va_list ap;
VA_START (ap, format);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
format = va_arg (ap, char *);
#endif
static void
fatal VPROTO ((char *format, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char *format;
#endif
va_list ap;
VA_START (ap, format);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
format = va_arg (ap, char *);
#endif
static void
fatal VPROTO ((char *format, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char *format;
#endif
va_list ap;
VA_START (ap, format);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
format = va_arg (ap, char *);
#endif
static void
error VPROTO ((char *format, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char *format;
#endif
va_list ap;
VA_START (ap, format);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
format = va_arg (ap, char *);
#endif
static void
fatal VPROTO ((char *format, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char *format;
#endif
va_list ap;
VA_START (ap, format);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
format = va_arg (ap, char *);
#endif
static void
fatal VPROTO ((char *format, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char *format;
#endif
va_list ap;
VA_START (ap, format);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
format = va_arg (ap, char *);
#endif
#ifndef NO_HALF_PIC
-#if defined (USE_PROTOTYPES) ? USE_PROTOTYPES : defined (__STDC__)
+#ifdef ANSI_PROTOTYPES
union tree_node; /* forward reference */
struct rtx_def;
#endif
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
-#ifdef IN_GCC
-
-/* Add prototype support. */
-#ifndef PROTO
-#if defined (USE_PROTOTYPES) ? USE_PROTOTYPES : defined (__STDC__)
-#define PROTO(ARGS) ARGS
-#else
-#define PROTO(ARGS) ()
-#endif
-#endif
-
-#define PARAMS(ARGS) PROTO(ARGS)
-
-#ifdef __STDC__
-#define PTR void *
-#else
-#ifndef const
-#define const
-#endif
-#define PTR char *
-#endif
-
-#else /* ! IN_GCC */
+#ifndef IN_GCC
#include <ansidecl.h>
-#endif /* IN_GCC */
+#endif /* ! IN_GCC */
#include "obstack.h"
#define __LINE__ 0
#endif
+#define __proto(x) PARAMS(x)
+/* Should PTR_T and CPTR_T be typedef'ed in terms of PTR ??? */
#ifdef __STDC__
typedef void *PTR_T;
typedef const void *CPTR_T;
-#define __proto(x) x
-#ifndef VPROTO
-#define PVPROTO(ARGS) ARGS
-#define VPROTO(ARGS) ARGS
-#define VA_START(va_list,var) va_start(va_list,var)
-#endif
#else
#if defined(_STDIO_H_) || defined(__STDIO_H__) /* Ultrix 4.0, SGI */
typedef char *CPTR_T;
#endif
-#define __proto(x) ()
-#define const
-#ifndef VPROTO
-#define PVPROTO(ARGS) ()
-#define VPROTO(ARGS) (va_alist) va_dcl
-#define VA_START(va_list,var) va_start(va_list)
-#endif
#endif
/* Do to size_t being defined in sys/types.h and different
void
fatal VPROTO((const char *format, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char *format;
#endif
va_list ap;
VA_START (ap, format);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
format = va_arg (ap, char *);
#endif
void
error VPROTO((const char *format, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char *format;
#endif
va_list ap;
VA_START (ap, format);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
format = va_arg (ap, char *);
#endif
register char *end;
register char *arg;
va_list args;
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char *first;
#endif
/* First compute the size of the result and get sufficient memory. */
VA_START (args, first);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
first = va_arg (args, char *);
#endif
/* Now copy the individual pieces to the result string. */
VA_START (args, first);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
first = va_arg (args, char *);
#endif
if ((STR)->limit - (STR)->ptr < (COUNT)) make_sstring_space (STR, COUNT);
#ifndef _PARAMS
-#if defined(__STDC__) || defined(__cplusplus)
+#if defined(ANSI_PROTOTYPES) || defined(__cplusplus)
#define _PARAMS(args) args
#else
#define _PARAMS(args) ()
#define __GCC_SYSTEM_H__
/* We must include stdarg.h/varargs.h before stdio.h. */
-#ifdef __STDC__
+#ifdef ANSI_PROTOTYPES
#include <stdarg.h>
#else
#include <varargs.h>
void
error_with_file_and_line VPROTO((char *file, int line, char *s, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char *file;
int line;
char *s;
VA_START (ap, s);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
file = va_arg (ap, char *);
line = va_arg (ap, int);
s = va_arg (ap, char *);
void
error_with_decl VPROTO((tree decl, char *s, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
tree decl;
char *s;
#endif
VA_START (ap, s);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
decl = va_arg (ap, tree);
s = va_arg (ap, char *);
#endif
void
error_for_asm VPROTO((rtx insn, char *s, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
rtx insn;
char *s;
#endif
VA_START (ap, s);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
insn = va_arg (ap, rtx);
s = va_arg (ap, char *);
#endif
void
error VPROTO((char *s, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char *s;
#endif
va_list ap;
VA_START (ap, s);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
s = va_arg (ap, char *);
#endif
void
fatal VPROTO((char *s, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char *s;
#endif
va_list ap;
VA_START (ap, s);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
s = va_arg (ap, char *);
#endif
void
warning_with_file_and_line VPROTO((char *file, int line, char *s, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char *file;
int line;
char *s;
VA_START (ap, s);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
file = va_arg (ap, char *);
line = va_arg (ap, int);
s = va_arg (ap, char *);
void
warning_with_decl VPROTO((tree decl, char *s, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
tree decl;
char *s;
#endif
VA_START (ap, s);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
decl = va_arg (ap, tree);
s = va_arg (ap, char *);
#endif
void
warning_for_asm VPROTO((rtx insn, char *s, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
rtx insn;
char *s;
#endif
VA_START (ap, s);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
insn = va_arg (ap, rtx);
s = va_arg (ap, char *);
#endif
void
warning VPROTO((char *s, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char *s;
#endif
va_list ap;
VA_START (ap, s);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
s = va_arg (ap, char *);
#endif
void
pedwarn VPROTO((char *s, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char *s;
#endif
va_list ap;
VA_START (ap, s);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
s = va_arg (ap, char *);
#endif
void
pedwarn_with_decl VPROTO((tree decl, char *s, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
tree decl;
char *s;
#endif
VA_START (ap, s);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
decl = va_arg (ap, tree);
s = va_arg (ap, char *);
#endif
void
pedwarn_with_file_and_line VPROTO((char *file, int line, char *s, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char *file;
int line;
char *s;
VA_START (ap, s);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
file = va_arg (ap, char *);
line = va_arg (ap, int);
s = va_arg (ap, char *);
void
sorry VPROTO((char *s, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char *s;
#endif
va_list ap;
VA_START (ap, s);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
s = va_arg (ap, char *);
#endif
void
really_sorry VPROTO((char *s, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char *s;
#endif
va_list ap;
VA_START (ap, s);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
s = va_arg (ap, char *);
#endif
#ifndef __GCC_TOPLEV_H__
#define __GCC_TOPLEV_H__
-#ifdef __STDC__
+#ifdef ANSI_PROTOTYPES
union tree_node;
struct rtx_def;
#endif
tree
build VPROTO((enum tree_code code, tree tt, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
enum tree_code code;
tree tt;
#endif
VA_START (p, tt);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
code = va_arg (p, enum tree_code);
tt = va_arg (p, tree);
#endif
tree
build_nt VPROTO((enum tree_code code, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
enum tree_code code;
#endif
va_list p;
VA_START (p, code);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
code = va_arg (p, enum tree_code);
#endif
tree
build_parse_node VPROTO((enum tree_code code, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
enum tree_code code;
#endif
register struct obstack *ambient_obstack = expression_obstack;
VA_START (p, code);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
code = va_arg (p, enum tree_code);
#endif