summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2008-02-27 09:45:07 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2008-02-27 09:45:07 +0000
commit1a2b7479c1a2c417383f0db162b80a626fdcd343 (patch)
tree37a3d756f8d2e96a603f9cc4ad8f48ce8fcf6ffc /contrib
parentUpgrade to gcc-4.3.0-RC-20080222. (diff)
downloadrtems-1a2b7479c1a2c417383f0db162b80a626fdcd343.tar.bz2
Upgrade to gcc-4.3.0-RC-20080222.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/crossrpms/rtems4.9/bfin/Makefile.am7
-rw-r--r--contrib/crossrpms/rtems4.9/bfin/gcc-sources.add13
-rw-r--r--contrib/crossrpms/rtems4.9/bfin/rtems-4.9-bfin-rtems4.9-gcc.spec39
3 files changed, 49 insertions, 10 deletions
diff --git a/contrib/crossrpms/rtems4.9/bfin/Makefile.am b/contrib/crossrpms/rtems4.9/bfin/Makefile.am
index 327e0efbd3..e91a419cff 100644
--- a/contrib/crossrpms/rtems4.9/bfin/Makefile.am
+++ b/contrib/crossrpms/rtems4.9/bfin/Makefile.am
@@ -10,11 +10,12 @@ 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 +=
GDB_VERS = 6.5
GDB_PKGVERS = $(GDB_VERS)
diff --git a/contrib/crossrpms/rtems4.9/bfin/gcc-sources.add b/contrib/crossrpms/rtems4.9/bfin/gcc-sources.add
index f8b8a0f6f5..ce296d0e8a 100644
--- a/contrib/crossrpms/rtems4.9/bfin/gcc-sources.add
+++ b/contrib/crossrpms/rtems4.9/bfin/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/bfin/rtems-4.9-bfin-rtems4.9-gcc.spec b/contrib/crossrpms/rtems4.9/bfin/rtems-4.9-bfin-rtems4.9-gcc.spec
index 99186526ed..2199d9f838 100644
--- a/contrib/crossrpms/rtems4.9/bfin/rtems-4.9-bfin-rtems4.9-gcc.spec
+++ b/contrib/crossrpms/rtems4.9/bfin/rtems-4.9-bfin-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-bfin-rtems4.9-gcc
Summary: bfin-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,8 +67,12 @@ Requires: rtems-4.9-bfin-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}
@@ -65,6 +83,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 bfin-rtems4.9.
@@ -86,6 +108,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~