change default behaviour for arm-elf targets to always pass '-mfpu=softfpa'

to GAS unless '-mhard-float' is specified
sync patches while here

from maintainer
This commit is contained in:
sturm 2007-10-05 13:14:12 +00:00
parent 980035561b
commit f72e1e2bdb
5 changed files with 29 additions and 17 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.2 2007/09/16 02:52:56 merdely Exp $
# $OpenBSD: Makefile,v 1.3 2007/10/05 13:14:12 sturm Exp $
COMMENT= gcc for arm-elf cross-development
VERSION= 3.4.5
FULL_VERSION= 3.4-20050913
DISTNAME= gcc-${FULL_VERSION}
PKGNAME= ${CONFIG}-gcc-${VERSION}
PKGNAME= ${CONFIG}-gcc-${VERSION}p0
# GPL
PERMIT_PACKAGE_FTP= Yes

View File

@ -1,6 +1,6 @@
$OpenBSD: patch-Makefile_in,v 1.1.1.1 2007/04/02 15:35:02 sturm Exp $
--- Makefile.in.orig Sat Oct 14 18:12:49 2006
+++ Makefile.in Sat Oct 14 18:22:26 2006
$OpenBSD: patch-Makefile_in,v 1.2 2007/10/05 13:14:13 sturm Exp $
--- Makefile.in.orig Wed Sep 14 01:56:45 2005
+++ Makefile.in Fri Oct 5 15:04:31 2007
@@ -597,22 +597,7 @@ configure-host: maybe-configure-gcc \
maybe-configure-utils
.PHONY: configure-target
@ -116,7 +116,7 @@ $OpenBSD: patch-Makefile_in,v 1.1.1.1 2007/04/02 15:35:02 sturm Exp $
# GCC, the eternal special case
.PHONY: maybe-TAGS-gcc TAGS-gcc
@@ -6408,22 +6333,7 @@ install-info-host: maybe-install-info-gc
@@ -6408,22 +6333,7 @@ install-info-host: maybe-install-info-gcc \
.PHONY: install-info-target
install-info-target: \
@ -139,7 +139,7 @@ $OpenBSD: patch-Makefile_in,v 1.1.1.1 2007/04/02 15:35:02 sturm Exp $
# GCC, the eternal special case
.PHONY: maybe-install-info-gcc install-info-gcc
@@ -8365,22 +8275,7 @@ installcheck-host: maybe-installcheck-gc
@@ -8365,22 +8275,7 @@ installcheck-host: maybe-installcheck-gcc \
.PHONY: installcheck-target
installcheck-target: \
@ -162,7 +162,7 @@ $OpenBSD: patch-Makefile_in,v 1.1.1.1 2007/04/02 15:35:02 sturm Exp $
# GCC, the eternal special case
.PHONY: maybe-installcheck-gcc installcheck-gcc
@@ -10241,22 +10136,7 @@ mostlyclean-host: maybe-mostlyclean-gcc
@@ -10241,22 +10136,7 @@ mostlyclean-host: maybe-mostlyclean-gcc \
.PHONY: mostlyclean-target
mostlyclean-target: \
@ -231,7 +231,7 @@ $OpenBSD: patch-Makefile_in,v 1.1.1.1 2007/04/02 15:35:02 sturm Exp $
# GCC, the eternal special case
.PHONY: maybe-distclean-gcc distclean-gcc
@@ -15528,22 +15378,7 @@ maintainer-clean-host: maybe-maintainer-
@@ -15528,22 +15378,7 @@ maintainer-clean-host: maybe-maintainer-clean-gcc \
.PHONY: maintainer-clean-target
maintainer-clean-target: \

View File

@ -1,7 +1,7 @@
$OpenBSD: patch-gcc_Makefile_in,v 1.1.1.1 2007/04/02 15:35:02 sturm Exp $
--- gcc/Makefile.in.orig Sat Oct 14 18:39:29 2006
+++ gcc/Makefile.in Sat Oct 14 18:42:44 2006
@@ -2963,12 +2963,7 @@ install-driver: installdirs xgcc$(exeext
$OpenBSD: patch-gcc_Makefile_in,v 1.2 2007/10/05 13:14:13 sturm Exp $
--- gcc/Makefile.in.orig Thu Feb 24 10:26:57 2005
+++ gcc/Makefile.in Fri Oct 5 15:04:31 2007
@@ -2963,12 +2963,7 @@ install-driver: installdirs xgcc$(exeext)
# Install the info files.
# $(INSTALL_DATA) might be a relative pathname, so we can't cd into srcdir
# to do the install.

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-gcc_config_arm_elf_h,v 1.1 2007/10/05 13:14:13 sturm Exp $
--- gcc/config/arm/elf.h.orig Fri Oct 5 15:05:10 2007
+++ gcc/config/arm/elf.h Fri Oct 5 15:05:42 2007
@@ -46,7 +46,7 @@
#ifndef SUBTARGET_ASM_FLOAT_SPEC
#define SUBTARGET_ASM_FLOAT_SPEC "\
-%{mapcs-float:-mfloat} %{msoft-float:-mfpu=softfpa}"
+%{mapcs-float:-mfloat} %{!mhard-float:-mfpu=softfpa} %{mhard-float:-mfpu=fpa}"
#endif
#ifndef ASM_SPEC

View File

@ -1,7 +1,7 @@
$OpenBSD: patch-libiberty_Makefile_in,v 1.1.1.1 2007/04/02 15:35:02 sturm Exp $
--- libiberty/Makefile.in.orig Sat Oct 14 18:43:16 2006
+++ libiberty/Makefile.in Sat Oct 14 18:43:47 2006
@@ -267,7 +267,7 @@ libiberty.html : $(srcdir)/libiberty.tex
$OpenBSD: patch-libiberty_Makefile_in,v 1.2 2007/10/05 13:14:13 sturm Exp $
--- libiberty/Makefile.in.orig Wed Jan 14 22:27:28 2004
+++ libiberty/Makefile.in Fri Oct 5 15:04:31 2007
@@ -267,7 +267,7 @@ libiberty.html : $(srcdir)/libiberty.texi $(TEXISRC)
@MAINT@ echo stamp > stamp-functions
INSTALL_DEST = @INSTALL_DEST@