summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog13
-rw-r--r--gcc/config/i386/netware.h2
-rw-r--r--gcc/config/i386/nto.h1
-rw-r--r--gcc/config/ia64/hpux.h2
-rw-r--r--gcc/config/moxie/moxie.h6
-rw-r--r--gcc/config/openbsd.h1
-rw-r--r--gcc/config/rtems.h2
-rw-r--r--gcc/config/sh/embed-elf.h2
-rw-r--r--gcc/config/sol2.h2
-rw-r--r--gcc/config/svr4.h2
-rw-r--r--gcc/config/vxworksae.h3
11 files changed, 26 insertions, 10 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f444e51ecdf..29c1c32ba83 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,18 @@
2010-12-09 Joseph Myers <joseph@codesourcery.com>
+ * config/i386/netware.h (TARGET_POSIX_IO): Define.
+ * config/i386/nto.h (TARGET_POSIX_IO): Define.
+ * config/ia64/hpux.h (TARGET_POSIX_IO): Define.
+ * config/moxie/moxie.h (TARGET_POSIX_IO): Don't undefine.
+ * config/openbsd.h (TARGET_POSIX_IO): Define.
+ * config/rtems.h (TARGET_POSIX_IO): Define.
+ * config/sh/embed-elf.h (TARGET_POSIX_IO): Don't undefine.
+ * config/sol2.h (TARGET_POSIX_IO): Define.
+ * config/svr4.h (TARGET_POSIX_IO): Don't define.
+ * config/vxworksae.h (TARGET_POSIX_IO): Define.
+
+2010-12-09 Joseph Myers <joseph@codesourcery.com>
+
* config/i386/nto.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
* config/ia64/hpux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
Define.
diff --git a/gcc/config/i386/netware.h b/gcc/config/i386/netware.h
index 0b505668ddf..4b5e31f1462 100644
--- a/gcc/config/i386/netware.h
+++ b/gcc/config/i386/netware.h
@@ -165,3 +165,5 @@ const char *i386_nlm_strip_name_encoding (const char *);
#define TARGET_MANGLE_DECL_ASSEMBLER_NAME i386_nlm_mangle_decl_assembler_name
#undef TARGET_STRIP_NAME_ENCODING
#define TARGET_STRIP_NAME_ENCODING i386_nlm_strip_name_encoding
+
+#define TARGET_POSIX_IO
diff --git a/gcc/config/i386/nto.h b/gcc/config/i386/nto.h
index 8696abd0ac1..9a4cdec7508 100644
--- a/gcc/config/i386/nto.h
+++ b/gcc/config/i386/nto.h
@@ -98,3 +98,4 @@ crti.o%s \
#define NO_IMPLICIT_EXTERN_C 1
+#define TARGET_POSIX_IO
diff --git a/gcc/config/ia64/hpux.h b/gcc/config/ia64/hpux.h
index 804e0f8d50d..d4d8da57673 100644
--- a/gcc/config/ia64/hpux.h
+++ b/gcc/config/ia64/hpux.h
@@ -231,3 +231,5 @@ do { \
.text.hot. */
#define TARGET_ASM_FUNCTION_SECTION ia64_hpux_function_section
+
+#define TARGET_POSIX_IO
diff --git a/gcc/config/moxie/moxie.h b/gcc/config/moxie/moxie.h
index c3b3454354a..eae86cc67e8 100644
--- a/gcc/config/moxie/moxie.h
+++ b/gcc/config/moxie/moxie.h
@@ -21,12 +21,6 @@
#ifndef GCC_MOXIE_H
#define GCC_MOXIE_H
-/* This is defined by svr4.h, which is included prior to this file.
- However, we should undefine it for moxie-elf, since we don't provide
- functions like access() and mkdir() in newlib. This will have to
- be defined again for a Linux port. */
-#undef TARGET_POSIX_IO
-
/* Another C string constant used much like `LINK_SPEC'. The difference
between the two is that `STARTFILE_SPEC' is used at the very beginning of
the command given to the linker.
diff --git a/gcc/config/openbsd.h b/gcc/config/openbsd.h
index b1076a7b4d6..d4037c36b86 100644
--- a/gcc/config/openbsd.h
+++ b/gcc/config/openbsd.h
@@ -144,6 +144,7 @@ while (0)
#define LIB_SPEC OBSD_LIB_SPEC
#endif
+#define TARGET_POSIX_IO
/* Runtime target specification. */
diff --git a/gcc/config/rtems.h b/gcc/config/rtems.h
index 39ddcb7b55e..869b14b56d4 100644
--- a/gcc/config/rtems.h
+++ b/gcc/config/rtems.h
@@ -40,3 +40,5 @@ along with GCC; see the file COPYING3. If not see
"%{!nostdlib: %{qrtems: --start-group \
-lrtemsbsp -lrtemscpu \
-lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}}"
+
+#define TARGET_POSIX_IO
diff --git a/gcc/config/sh/embed-elf.h b/gcc/config/sh/embed-elf.h
index e6c2782ca2f..c84ae08b3ad 100644
--- a/gcc/config/sh/embed-elf.h
+++ b/gcc/config/sh/embed-elf.h
@@ -22,8 +22,6 @@ along with GCC; see the file COPYING3. If not see
#undef USER_LABEL_PREFIX
#define USER_LABEL_PREFIX "_"
-#undef TARGET_POSIX_IO
-
/* While the speed-optimized implementations of udivsi3_i4i / sdivsi3_i4i
in libgcc are not available for SH2, the space-optimized ones in
libgcc-Os-4-200 are. Thus, when not optimizing for space, link
diff --git a/gcc/config/sol2.h b/gcc/config/sol2.h
index 34911b63fef..e7fe4673e6e 100644
--- a/gcc/config/sol2.h
+++ b/gcc/config/sol2.h
@@ -310,3 +310,5 @@ extern GTY(()) tree solaris_pending_finis;
/* Allow macro expansion in #pragma pack. */
#define HANDLE_PRAGMA_PACK_WITH_EXPANSION
+
+#define TARGET_POSIX_IO
diff --git a/gcc/config/svr4.h b/gcc/config/svr4.h
index 40798a4b8f3..49bb9da6014 100644
--- a/gcc/config/svr4.h
+++ b/gcc/config/svr4.h
@@ -175,5 +175,3 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#undef WCHAR_TYPE_SIZE
#define WCHAR_TYPE_SIZE BITS_PER_WORD
-
-#define TARGET_POSIX_IO
diff --git a/gcc/config/vxworksae.h b/gcc/config/vxworksae.h
index d29b465eda0..6e1efa93c40 100644
--- a/gcc/config/vxworksae.h
+++ b/gcc/config/vxworksae.h
@@ -56,6 +56,9 @@ along with GCC; see the file COPYING3. If not see
#define VXWORKS_KIND VXWORKS_KIND_AE
+/* Both kernels and RTPs have the facilities required by this macro. */
+#define TARGET_POSIX_IO
+
/* A VxWorks 653 implementation of TARGET_OS_CPP_BUILTINS. */
#define VXWORKS_OS_CPP_BUILTINS() \
do \