aboutsummaryrefslogtreecommitdiff
path: root/gcc/collect2.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1999-01-29 12:10:52 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1999-01-29 12:10:52 +0000
commit96df87b8f6828d819eee23414505ec2735074985 (patch)
tree929cd2bac5789b1d08a7d2c81ceb2b000acd406d /gcc/collect2.c
parent1c5d09e4af5c154cea90ff98610c15b70f6ba606 (diff)
downloadgcc-96df87b8f6828d819eee23414505ec2735074985.zip
gcc-96df87b8f6828d819eee23414505ec2735074985.tar.gz
gcc-96df87b8f6828d819eee23414505ec2735074985.tar.bz2
toplev.c (notice, fnotice): Check ANSI_PROTOTYPES...
* 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. From-SVN: r24905
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r--gcc/collect2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c
index 6ec9f31..f273bb8 100644
--- a/gcc/collect2.c
+++ b/gcc/collect2.c
@@ -406,14 +406,14 @@ collect_exit (status)
void
notice VPROTO((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