aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMarc Lehmann <pcg@goof.com>1998-02-11 23:03:32 +0000
committerJeff Law <law@gcc.gnu.org>1998-02-11 16:03:32 -0700
commita49103407c5117a640a85bc35ec2bf43f1199ec0 (patch)
treeba6eabc43773daa401704485e0744d3db3fb00fd /gcc
parent06ab59dfa0a756ffa178714e54c91835aa484f0c (diff)
downloadgcc-a49103407c5117a640a85bc35ec2bf43f1199ec0.zip
gcc-a49103407c5117a640a85bc35ec2bf43f1199ec0.tar.gz
gcc-a49103407c5117a640a85bc35ec2bf43f1199ec0.tar.bz2
i386.c: Conditionally include <stdlib.h>, <string.h>, and <strings.h>.
* i386.c: Conditionally include <stdlib.h>, <string.h>, and <strings.h>. From-SVN: r17864
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/i386/i386.c12
2 files changed, 17 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 283653b..1dc02d3 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+Thu Feb 12 00:04:16 1998 Marc Lehmann <pcg@goof.com>
+
+ * i386.c: Conditionally include <stdlib.h>, <string.h>, and
+ <strings.h>.
+
Wed Feb 11 11:43:34 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* Makefile.in (WARN_CFLAGS): New variable.
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 796c3f5..75e44c1 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -37,6 +37,18 @@ Boston, MA 02111-1307, USA. */
#include "function.h"
#include "recog.h"
+#if HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#else
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+#endif
+
#ifdef EXTRA_CONSTRAINT
/* If EXTRA_CONSTRAINT is defined, then the 'S'
constraint in REG_CLASS_FROM_LETTER will no longer work, and various