summaryrefslogtreecommitdiff
path: root/gcc/collect2.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-05-20 07:16:51 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1995-05-20 07:16:51 -0400
commitc102bba010c9dcd4b58d4a3ea1effe24c98d859e (patch)
tree6d33d22dcbc3f34bfd754a3e7085a3dea7d77530 /gcc/collect2.c
parentefffbf71b1aef7d3fb40e826a0a61535c8b74024 (diff)
downloadgcc-c102bba010c9dcd4b58d4a3ea1effe24c98d859e.tar.gz
#include config.h before any other .h file.
From-SVN: r9756
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r--gcc/collect2.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c
index cfc279088b8..e6b67f6bfb5 100644
--- a/gcc/collect2.c
+++ b/gcc/collect2.c
@@ -26,6 +26,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
/* Build tables of static constructors and destructors and run ld. */
+#include "config.h"
#include <sys/types.h>
#include <stdio.h>
#include <ctype.h>
@@ -37,6 +38,11 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <sys/wait.h>
#endif
+#define COLLECT
+
+#include "demangle.h"
+#include "obstack.h"
+
#ifndef errno
extern int errno;
#endif
@@ -52,13 +58,6 @@ extern int sys_nerr;
char *strerror();
#endif
-#define COLLECT
-
-#include "config.h"
-#include "demangle.h"
-
-#include "obstack.h"
-
/* Obstack allocation and deallocation routines. */
#define obstack_chunk_alloc xmalloc
#define obstack_chunk_free free