summaryrefslogtreecommitdiffstats
path: root/gcc/genattrtab.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/genattrtab.c')
-rw-r--r--gcc/genattrtab.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/gcc/genattrtab.c b/gcc/genattrtab.c
index bef1c59bcba..025c61f7321 100644
--- a/gcc/genattrtab.c
+++ b/gcc/genattrtab.c
@@ -106,11 +106,19 @@ Boston, MA 02111-1307, USA. */
#include "rtl.h"
#include "insn-config.h" /* For REGISTER_CONSTRAINTS */
-#ifndef VMS
-#ifndef USG
-#include <sys/time.h>
-#include <sys/resource.h>
+#ifdef TIME_WITH_SYS_TIME
+# include <sys/time.h>
+# include <time.h>
+#else
+# if HAVE_SYS_TIME_H
+# include <sys/time.h>
+# else
+# include <time.h>
+#endif
#endif
+
+#ifdef HAVE_SYS_RESOURCE_H
+# include <sys/resource.h>
#endif
/* We must include obstack.h after <sys/time.h>, to avoid lossage with
@@ -1389,7 +1397,7 @@ make_canonical (attr, exp)
RTX_UNCHANGING_P (exp) = 1;
exp = check_attr_value (exp, attr);
/* Goto COND case since this is now a COND. Note that while the
- new expression is rescanned, all symbol_ref notes are mared as
+ new expression is rescanned, all symbol_ref notes are marked as
unchanging. */
goto cond;
OpenPOWER on IntegriCloud