From: Alan Modra Date: Fri, 10 Aug 2001 02:49:27 +0000 (+0000) Subject: * as.h (alloca): Don't declare if __GNUC__. Remove an old comment. X-Git-Tag: cygnus_cvs_20020108_pre~1727 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fa6e93186bb6c78690978386cdb6e71999288921;p=external%2Fbinutils.git * as.h (alloca): Don't declare if __GNUC__. Remove an old comment. Comment indentation of #pragma. * macro.c (alloca): Likewise. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 4df8f3a..3858797 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,9 @@ 2001-08-10 Alan Modra + * as.h (alloca): Don't declare if __GNUC__. Remove an old comment. + Comment indentation of #pragma. + * macro.c (alloca): Likewise. + * config/tc-ppc.c: Revert 2001-08-08. 2001-08-09 Alan Modra diff --git a/gas/as.h b/gas/as.h index 75abfa9..7da5ed2 100644 --- a/gas/as.h +++ b/gas/as.h @@ -43,28 +43,19 @@ /* This is the code recommended in the autoconf documentation, almost verbatim. If it doesn't work for you, let me know, and notify djm@gnu.ai.mit.edu as well. */ -/* Added #undef for DJ Delorie. The right fix is to ensure that as.h - is included first, before even any system header files, in all files - that use it. KR 1994.11.03 */ /* Added void* version for STDC case. This is to be compatible with the declaration in bison.simple, used for m68k operand parsing. --KR 1995.08.08 */ /* Force void* decl for hpux. This is what Bison uses. --KR 1995.08.16 */ -/* AIX requires this to be the first thing in the file. */ -#ifdef __GNUC__ -# ifndef alloca -# ifdef __STDC__ -extern void *alloca (); -# else -extern char *alloca (); -# endif -# endif -#else +#ifndef __GNUC__ # if HAVE_ALLOCA_H # include # else # ifdef _AIX +/* Indented so that pre-ansi C compilers will ignore it, rather than + choke on it. Some versions of AIX require this to be the first + thing in the file. */ #pragma alloca # else # ifndef alloca /* predefined by HP cc +Olibcalls */ @@ -76,7 +67,7 @@ extern void *alloca (); # endif /* alloca */ # endif /* _AIX */ # endif /* HAVE_ALLOCA_H */ -#endif +#endif /* __GNUC__ */ /* Now, tend to the rest of the configuration. */ diff --git a/gas/macro.c b/gas/macro.c index e93cdce..e78855b 100644 --- a/gas/macro.c +++ b/gas/macro.c @@ -24,20 +24,14 @@ #include "config.h" -/* AIX requires this to be the first thing in the file. */ -#ifdef __GNUC__ -# ifndef alloca -# ifdef __STDC__ -extern void *alloca (); -# else -extern char *alloca (); -# endif -# endif -#else +#ifndef __GNUC__ # if HAVE_ALLOCA_H # include # else # ifdef _AIX +/* Indented so that pre-ansi C compilers will ignore it, rather than + choke on it. Some versions of AIX require this to be the first + thing in the file. */ #pragma alloca # else # ifndef alloca /* predefined by HP cc +Olibcalls */ @@ -49,7 +43,7 @@ extern void *alloca (); # endif /* alloca */ # endif /* _AIX */ # endif /* HAVE_ALLOCA_H */ -#endif +#endif /* __GNUC__ */ #include #ifdef HAVE_STRING_H