Build fixes for powerpc.

ok aja@
This commit is contained in:
pascal 2012-08-19 15:11:21 +00:00
parent dcc7587643
commit ec96a5487f
2 changed files with 7 additions and 10 deletions

View File

@ -1,6 +1,6 @@
$OpenBSD: patch-gcc_config_gcc,v 1.2 2012/07/01 18:56:45 pascal Exp $
$OpenBSD: patch-gcc_config_gcc,v 1.3 2012/08/19 15:11:21 pascal Exp $
--- gcc/config.gcc.orig Mon Jun 4 11:51:00 2012
+++ gcc/config.gcc Sun Jun 24 13:18:33 2012
+++ gcc/config.gcc Sun Aug 19 11:20:58 2012
@@ -684,6 +684,14 @@ case ${target} in
*-*-openbsd2.*|*-*-openbsd3.[012])
tm_defines="${tm_defines} HAS_LIBC_R=1" ;;
@ -63,7 +63,7 @@ $OpenBSD: patch-gcc_config_gcc,v 1.2 2012/07/01 18:56:45 pascal Exp $
+powerpc-*-openbsd*)
+ tm_file="${tm_file} dbxelf.h elfos.h openbsd.h openbsd-libpthread.h freebsd-spec.h rs6000/sysv4.h rs6000/openbsd.h"
+ tmake_file="${tmake_file} rs6000/t-openbsd"
+ extra_options="${extra_options} rs6000/sysv4.opt"
+ extra_options="${extra_options} rs6000/sysv4.opt openbsd.opt"
+ ;;
powerpc-*-darwin*)
extra_options="${extra_options} rs6000/darwin.opt"

View File

@ -1,7 +1,7 @@
$OpenBSD: patch-gcc_config_rs6000_openbsd_h,v 1.1.1.1 2012/04/23 15:56:41 pascal Exp $
--- gcc/config/rs6000/openbsd.h.orig Sun Mar 11 19:10:40 2012
+++ gcc/config/rs6000/openbsd.h Sun Mar 11 19:25:45 2012
@@ -0,0 +1,135 @@
$OpenBSD: patch-gcc_config_rs6000_openbsd_h,v 1.2 2012/08/19 15:11:21 pascal Exp $
--- gcc/config/rs6000/openbsd.h.orig Tue Aug 14 10:43:58 2012
+++ gcc/config/rs6000/openbsd.h Tue Aug 14 10:44:18 2012
@@ -0,0 +1,132 @@
+/* Configuration file for an rs6000 OpenBSD target.
+ Copyright (C) 1999 Free Software Foundation, Inc.
+
@ -91,9 +91,6 @@ $OpenBSD: patch-gcc_config_rs6000_openbsd_h,v 1.1.1.1 2012/04/23 15:56:41 pascal
+#undef LINK_OS_DEFAULT_SPEC
+#define LINK_OS_DEFAULT_SPEC "%(link_os_openbsd)"
+
+#undef TARGET_VERSION
+#define TARGET_VERSION fprintf (stderr, " (PowerPC OpenBSD)");
+
+/* Default ABI to use */
+#undef RS6000_ABI_NAME
+#define RS6000_ABI_NAME "openbsd"