aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Thorpe <thorpej@wasabisystems.com>2002-05-29 21:31:48 +0000
committerJason Thorpe <thorpej@gcc.gnu.org>2002-05-29 21:31:48 +0000
commit4528173ea3cb69787c3dfc00cc6e9521d4e6b4ef (patch)
tree321962a589b2cdad7f5cea264c420a476b393410
parentbd09bdeb98100cc49f511ad51a167a9bfdd82e4f (diff)
downloadgcc-4528173ea3cb69787c3dfc00cc6e9521d4e6b4ef.zip
gcc-4528173ea3cb69787c3dfc00cc6e9521d4e6b4ef.tar.gz
gcc-4528173ea3cb69787c3dfc00cc6e9521d4e6b4ef.tar.bz2
netbsd.h (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_AOUT.
* config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_AOUT. (SUBTARGET_EXTRA_SPECS): Define. (CPP_SPEC): Use %(netbsd_cpp_spec). From-SVN: r54022
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/arm/netbsd.h12
2 files changed, 13 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ed6849e..c7c6650 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
+
+ * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
+ NETBSD_OS_CPP_BUILTINS_AOUT.
+ (SUBTARGET_EXTRA_SPECS): Define.
+ (CPP_SPEC): Use %(netbsd_cpp_spec).
+
2002-05-29 Richard Henderson <rth@redhat.com>
* config/i386/i386.c (ix86_output_function_epilogue): New.
diff --git a/gcc/config/arm/netbsd.h b/gcc/config/arm/netbsd.h
index 17d3d2c..5a080d3 100644
--- a/gcc/config/arm/netbsd.h
+++ b/gcc/config/arm/netbsd.h
@@ -46,19 +46,19 @@ Boston, MA 02111-1307, USA. */
arm32 is the NetBSD port name, so we always define arm32 and __arm32__. */
#define TARGET_OS_CPP_BUILTINS() \
do { \
+ NETBSD_OS_CPP_BUILTINS_AOUT(); \
builtin_define_std ("arm32"); \
builtin_define_std ("unix"); \
builtin_define_std ("riscbsd"); \
- builtin_define ("__NetBSD__"); \
- builtin_assert ("system=unix"); \
- builtin_assert ("system=NetBSD"); \
} while (0)
-/* Define _POSIX_SOURCE if necessary. */
+#undef SUBTARGET_EXTRA_SPECS
+#define SUBTARGET_EXTRA_SPECS \
+ { "netbsd_cpp_spec", NETBSD_CPP_SPEC },
+
#undef CPP_SPEC
#define CPP_SPEC "\
-%(cpp_cpu_arch) %(cpp_apcs_pc) %(cpp_float) %(cpp_endian) \
-%{posix:-D_POSIX_SOURCE} \
+%(cpp_cpu_arch) %(cpp_apcs_pc) %(cpp_float) %(cpp_endian) %(netbsd_cpp_spec) \
"
/* Because TARGET_DEFAULT sets ARM_FLAG_APCS_32 */