summaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1999-01-29 12:10:52 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1999-01-29 12:10:52 +0000
commit7a63b8f5a0a2b398cbe99718d33c102a023da090 (patch)
tree929cd2bac5789b1d08a7d2c81ceb2b000acd406d /gcc/toplev.c
parent6531382f0617ac2c34f320fe0dd8b2c65dfaa6cc (diff)
downloadgcc-7a63b8f5a0a2b398cbe99718d33c102a023da090.tar.gz
* toplev.c (notice, fnotice): Check ANSI_PROTOTYPES, not __STDC__,
when declaring arguments and calling va_arg() to initialize them. * collect2.c (notice): Likewise. * loop.c (find_life_end): Use PROTO() macro in the prototype. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24905 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 4ecc9c9b172..46f0c6a4fc6 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -1541,14 +1541,14 @@ vnotice (file, msgid, ap)
void
notice VPROTO((const char *msgid, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
char *msgid;
#endif
va_list ap;
VA_START (ap, msgid);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
msgid = va_arg (ap, char *);
#endif
@@ -1559,7 +1559,7 @@ notice VPROTO((const char *msgid, ...))
void
fnotice VPROTO((FILE *file, char *msgid, ...))
{
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
FILE *file;
char *msgid;
#endif
@@ -1567,7 +1567,7 @@ fnotice VPROTO((FILE *file, char *msgid, ...))
VA_START (ap, msgid);
-#ifndef __STDC__
+#ifndef ANSI_PROTOTYPES
file = va_arg (ap, FILE *);
msgid = va_arg (ap, char *);
#endif