diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1999-01-29 12:10:52 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 1999-01-29 12:10:52 +0000 |
commit | 96df87b8f6828d819eee23414505ec2735074985 (patch) | |
tree | 929cd2bac5789b1d08a7d2c81ceb2b000acd406d /gcc | |
parent | 1c5d09e4af5c154cea90ff98610c15b70f6ba606 (diff) | |
download | gcc-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')
-rw-r--r-- | gcc/ChangeLog | 9 | ||||
-rw-r--r-- | gcc/collect2.c | 4 | ||||
-rw-r--r-- | gcc/loop.c | 2 | ||||
-rw-r--r-- | gcc/toplev.c | 8 |
4 files changed, 16 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cbeb160..3e9552c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +Fri Jan 29 15:00:39 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * 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. + Fri Jan 29 14:36:11 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * collect2.c (error): Fix typo in declaration. 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 @@ -324,7 +324,7 @@ static rtx express_from PROTO((struct induction *, struct induction *)); static rtx combine_givs_p PROTO((struct induction *, struct induction *)); static void combine_givs PROTO((struct iv_class *)); struct recombine_givs_stats; -static int find_life_end (rtx, struct recombine_givs_stats *, rtx, rtx); +static int find_life_end PROTO((rtx, struct recombine_givs_stats *, rtx, rtx)); static void recombine_givs PROTO((struct iv_class *, rtx, rtx, int)); static int product_cheap_p PROTO((rtx, rtx)); static int maybe_eliminate_biv PROTO((struct iv_class *, rtx, rtx, int, int, int)); diff --git a/gcc/toplev.c b/gcc/toplev.c index 4ecc9c9..46f0c6a 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 |