summaryrefslogtreecommitdiff
path: root/gas/macro.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2001-08-10 02:49:27 +0000
committerAlan Modra <amodra@bigpond.net.au>2001-08-10 02:49:27 +0000
commit789513ad524d013fbeb2652fd0100c5cc789cfc1 (patch)
treedb539ab64c6cb89d576b4c7362a66badcbac2f7a /gas/macro.c
parent191ca22f2d49791b675c6a25f2cd5a932c844b88 (diff)
downloadbinutils-redhat-789513ad524d013fbeb2652fd0100c5cc789cfc1.tar.gz
* as.h (alloca): Don't declare if __GNUC__. Remove an old comment.
Comment indentation of #pragma. * macro.c (alloca): Likewise.
Diffstat (limited to 'gas/macro.c')
-rw-r--r--gas/macro.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/gas/macro.c b/gas/macro.c
index e93cdce6e7..e78855b935 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 <alloca.h>
# 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 <stdio.h>
#ifdef HAVE_STRING_H