aboutsummaryrefslogtreecommitdiff
path: root/gcc/cccp.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1998-11-08 15:10:24 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1998-11-08 15:10:24 +0000
commit5148a72b3319b75dd84da77751d43da8442fa8c7 (patch)
treebb484d02aaa49afd3477050555c29914fce3ef3d /gcc/cccp.c
parent78651e7ad09ee224964287b88f2f326674654723 (diff)
downloadgcc-5148a72b3319b75dd84da77751d43da8442fa8c7.zip
gcc-5148a72b3319b75dd84da77751d43da8442fa8c7.tar.gz
gcc-5148a72b3319b75dd84da77751d43da8442fa8c7.tar.bz2
gansidecl.h: Prepend a "G" to the macro wrapping this file (to distinguish it from the macro...
* 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. From-SVN: r23577
Diffstat (limited to 'gcc/cccp.c')
-rw-r--r--gcc/cccp.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/gcc/cccp.c b/gcc/cccp.c
index 40e9663..e3568da 100644
--- a/gcc/cccp.c
+++ b/gcc/cccp.c
@@ -9312,14 +9312,14 @@ my_strerror (errnum)
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
@@ -9385,14 +9385,14 @@ error_from_errno (name)
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
@@ -9434,7 +9434,7 @@ vwarning (msg, args)
static void
error_with_line VPROTO ((int line, char * msg, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
int line;
char * msg;
#endif
@@ -9442,7 +9442,7 @@ error_with_line VPROTO ((int line, char * msg, ...))
VA_START (args, msg);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
line = va_arg (args, int);
msg = va_arg (args, char *);
#endif
@@ -9480,7 +9480,7 @@ verror_with_line (line, msg, args)
static void
warning_with_line VPROTO ((int line, char * msg, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
int line;
char * msg;
#endif
@@ -9488,7 +9488,7 @@ warning_with_line VPROTO ((int line, char * msg, ...))
VA_START (args, msg);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
line = va_arg (args, int);
msg = va_arg (args, char *);
#endif
@@ -9534,14 +9534,14 @@ vwarning_with_line (line, msg, args)
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
@@ -9555,7 +9555,7 @@ pedwarn VPROTO ((char * msg, ...))
void
pedwarn_with_line VPROTO ((int line, char * msg, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
int line;
char * msg;
#endif
@@ -9563,7 +9563,7 @@ pedwarn_with_line VPROTO ((int line, char * msg, ...))
VA_START (args, msg);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
line = va_arg (args, int);
msg = va_arg (args, char *);
#endif
@@ -9582,7 +9582,7 @@ static void
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;
@@ -9595,7 +9595,7 @@ pedwarn_with_file_and_line VPROTO ((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);
@@ -10623,7 +10623,7 @@ deps_output (string, spacer)
static void
fatal VPROTO ((char * msg, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char * msg;
#endif
va_list args;
@@ -10631,7 +10631,7 @@ fatal VPROTO ((char * msg, ...))
fprintf (stderr, "%s: ", progname);
VA_START (args, msg);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
msg = va_arg (args, char *);
#endif