summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2008-02-27 14:04:47 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2008-02-27 14:04:47 +0000
commit8e6bf2b14894c0ad24b59b42fb393f9163a02292 (patch)
tree2720293389a99add00736ae1a7c4088b1042e463 /contrib
parentUpgrade to gcc-4.3.0-RC-20080222. (diff)
downloadrtems-8e6bf2b14894c0ad24b59b42fb393f9163a02292.tar.bz2
Upgrade to gcc-4.3.0-RC-20080222.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/crossrpms/rtems4.9/sh/Makefile.am6
-rw-r--r--contrib/crossrpms/rtems4.9/sh/gcc-sources.add13
-rw-r--r--contrib/crossrpms/rtems4.9/sh/rtems-4.9-sh-rtems4.9-gcc.spec46
3 files changed, 54 insertions, 11 deletions
diff --git a/contrib/crossrpms/rtems4.9/sh/Makefile.am b/contrib/crossrpms/rtems4.9/sh/Makefile.am
index 9f5470f250..671468eceb 100644
--- a/contrib/crossrpms/rtems4.9/sh/Makefile.am
+++ b/contrib/crossrpms/rtems4.9/sh/Makefile.am
@@ -10,9 +10,9 @@ BINUTILS_RPMREL = 4%{?dist}
include ../binutils.am
BINUTILS_OPTS +=
-GCC_VERS = 4.2.3
-GCC_PKGVERS = $(GCC_VERS)
-GCC_RPMREL = 10%{?dist}
+GCC_VERS = 4.3.0
+GCC_PKGVERS = 4.3.0-RC-20080222
+GCC_RPMREL = 0.20080222.1%{?dist}
NEWLIB_VERS = 1.16.0
include ../gcc.am
GCC_OPTS += --languages=cxx
diff --git a/contrib/crossrpms/rtems4.9/sh/gcc-sources.add b/contrib/crossrpms/rtems4.9/sh/gcc-sources.add
index f8b8a0f6f5..ce296d0e8a 100644
--- a/contrib/crossrpms/rtems4.9/sh/gcc-sources.add
+++ b/contrib/crossrpms/rtems4.9/sh/gcc-sources.add
@@ -1,11 +1,20 @@
+%if "%{gcc_version}" == "4.3.0"
+Source0: ftp://gcc.gnu.org/pub/gcc/snapshots/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
+Patch0: gcc-core-%{gcc_pkgvers}-rtems4.9-20080225.diff
+%endif
%if "%{gcc_version}" == "4.2.3"
-Source0: ftp://gcc.gnu.org/pub/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
+Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
Patch0: gcc-core-4.2.3-rtems4.9-20080205.diff
%endif
%{?_without_sources:NoSource: 0}
%if %build_cxx
-Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_pkgvers}.tar.bz2
+%if "%{gcc_version}" == "4.3.0"
+Source1: ftp://gcc.gnu.org/pub/gcc/snapshots/%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
+%endif
+%if "%{gcc_version}" == "4.2.3"
+Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
+%endif
%{?_without_sources:NoSource: 1}
%endif
diff --git a/contrib/crossrpms/rtems4.9/sh/rtems-4.9-sh-rtems4.9-gcc.spec b/contrib/crossrpms/rtems4.9/sh/rtems-4.9-sh-rtems4.9-gcc.spec
index 6778557d8e..18aa2e71ea 100644
--- a/contrib/crossrpms/rtems4.9/sh/rtems-4.9-sh-rtems4.9-gcc.spec
+++ b/contrib/crossrpms/rtems4.9/sh/rtems-4.9-sh-rtems4.9-gcc.spec
@@ -14,25 +14,39 @@
%endif
-%define gcc_pkgvers 4.2.3
-%define gcc_version 4.2.3
-%define gcc_rpmvers %{expand:%(echo "4.2.3" | tr - _ )}
+%define gcc_pkgvers 4.3.0-RC-20080222
+%define gcc_version 4.3.0
+%define gcc_rpmvers %{expand:%(echo "4.3.0" | tr - _ )}
%define newlib_version 1.16.0
%define gccnewlib_version gcc%{gcc_version}newlib%{newlib_version}
+%define mpfr_version 2.3.1
+
Name: rtems-4.9-sh-rtems4.9-gcc
Summary: sh-rtems4.9 gcc
Group: Development/Tools
Version: %{gcc_rpmvers}
-Release: 10%{?dist}
+Release: 0.20080222.1%{?dist}
License: GPL
URL: http://gcc.gnu.org
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%define _use_internal_dependency_generator 0
+%if "%{gcc_version}" >= "4.3.0"
+BuildRequires: gmp-devel >= 4.1
+%if "%{?fedora}" >= "8"
+BuildRequires: mpfr-devel >= 2.3.0
+%endif
+%if "%{?suse}" >= "10.3"
+BuildRequires: mpfr-devel >= 2.3.0
+%endif
+# These distros ship an insufficient mpfr
+%{?el4:%define _build_mpfr 1}
+%endif
+
%if "%{gcc_version}" >= "4.2.0"
BuildRequires: flex bison
%endif
@@ -53,13 +67,22 @@ Requires: rtems-4.9-sh-rtems4.9-newlib = %{newlib_version}-%{release}
%define gccexec %{_libdir}/gcc-lib
%endif
+%if "%{gcc_version}" == "4.3.0"
+Source0: ftp://gcc.gnu.org/pub/gcc/snapshots/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
+Patch0: gcc-core-%{gcc_pkgvers}-rtems4.9-20080225.diff
+%endif
%if "%{gcc_version}" == "4.2.3"
-Source0: ftp://gcc.gnu.org/pub/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
+Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
Patch0: gcc-core-4.2.3-rtems4.9-20080205.diff
%endif
%{?_without_sources:NoSource: 0}
-Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_pkgvers}.tar.bz2
+%if "%{gcc_version}" == "4.3.0"
+Source1: ftp://gcc.gnu.org/pub/gcc/snapshots/%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
+%endif
+%if "%{gcc_version}" == "4.2.3"
+Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
+%endif
%{?_without_sources:NoSource: 1}
Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
@@ -68,6 +91,10 @@ Patch50: newlib-1.16.0-rtems4.9-20080131.diff
%endif
%{?_without_sources:NoSource: 50}
+%if "%{gcc_version}" >= "4.3.0"
+Source60: http://www.mpfr.org/mpfr-current/mpfr-%{mpfr_version}.tar.bz2
+%endif
+
%description
Cross gcc for sh-rtems4.9.
@@ -91,6 +118,13 @@ cd ..
# Copy the C library into gcc's source tree
ln -s ../newlib-%{newlib_version}/newlib gcc-%{gcc_pkgvers}
+%if 0%{?_build_mpfr}
+%setup -q -T -D -n %{name}-%{version} -a60
+%{?PATCH60:%patch60 -p1}
+ # Build mpfr one-tree style
+ ln -s ../mpfr-%{mpfr_version} gcc-%{gcc_pkgvers}/mpfr
+%endif
+
%if "%{gcc_version}" < "4.1.0"
sed -e 's/\(version_string.* = \"[^\"]*\)/\1 (RTEMS gcc-%{gcc_version}\/newlib-%{newlib_version}-%release)/' \
gcc-%{gcc_pkgvers}/gcc/version.c > gcc-%{gcc_pkgvers}/gcc/version.c~