diff options
Diffstat (limited to 'arm-unknown-riscos/recipes/patches/gcc4')
5 files changed, 237 insertions, 0 deletions
diff --git a/arm-unknown-riscos/recipes/patches/gcc4/binutils-download.p b/arm-unknown-riscos/recipes/patches/gcc4/binutils-download.p new file mode 100644 index 0000000..54720f5 --- /dev/null +++ b/arm-unknown-riscos/recipes/patches/gcc4/binutils-download.p @@ -0,0 +1,12 @@ +--- gcc4/Makefile.orig 2018-01-26 10:37:32.006594122 +0000 ++++ gcc4/Makefile 2018-01-26 10:38:42.316723336 +0000 +@@ -677,8 +677,7 @@ + # Download binutils source: + $(SRCORIGDIR)/binutils-$(BINUTILS_VERSION).tar.bz2: + -mkdir -p $(SRCORIGDIR) +- cd $(SRCORIGDIR) && wget -c http://ftpmirror.gnu.org/binutils/binutils-$(BINUTILS_VERSION).tar.bz2 +- touch $@ ++ wget -O $@ -c http://ci.netsurf-browser.org/toolchain/arm-unknown-riscos/binutils-$(BINUTILS_VERSION).tar.bz2 + + ifeq "$(GCC_USE_SCM)" "yes" + # Checkout gcc source: diff --git a/arm-unknown-riscos/recipes/patches/gcc4/cloog-ppl-download.p b/arm-unknown-riscos/recipes/patches/gcc4/cloog-ppl-download.p new file mode 100644 index 0000000..194ef7f --- /dev/null +++ b/arm-unknown-riscos/recipes/patches/gcc4/cloog-ppl-download.p @@ -0,0 +1,12 @@ +--- gcc4/Makefile.orig 2018-01-26 10:40:26.623881778 +0000 ++++ gcc4/Makefile 2018-01-26 10:41:24.141623273 +0000 +@@ -719,8 +719,7 @@ + # Download CLooG source: + $(SRCORIGDIR)/cloog-ppl-$(CLOOG_VERSION).tar.gz: + -mkdir -p $(SRCORIGDIR) +- cd $(SRCORIGDIR) && wget -c ftp://gcc.gnu.org/pub/gcc/infrastructure/cloog-ppl-$(CLOOG_VERSION).tar.gz +- touch $@ ++ wget -O $@ -c http://ci.netsurf-browser.org/toolchain/arm-unknown-riscos/cloog-ppl-$(CLOOG_VERSION).tar.gz + + # Download newlib source: + $(SRCORIGDIR)/newlib-$(NEWLIB_VERSION).tar.gz: diff --git a/arm-unknown-riscos/recipes/patches/gcc4/gmp-download.p b/arm-unknown-riscos/recipes/patches/gcc4/gmp-download.p new file mode 100644 index 0000000..0bfd4ec --- /dev/null +++ b/arm-unknown-riscos/recipes/patches/gcc4/gmp-download.p @@ -0,0 +1,11 @@ +--- gcc4/Makefile.orig 2018-01-25 22:42:43.937180762 +0000 ++++ gcc4/Makefile 2018-01-25 22:44:46.680863288 +0000 +@@ -703,7 +703,7 @@ + # Download mpc source: + $(SRCORIGDIR)/mpc-$(MPC_VERSION).tar.gz: + -mkdir -p $(SRCORIGDIR) +- cd $(SRCORIGDIR) && wget -c http://www.multiprecision.org/mpc/download/mpc-$(MPC_VERSION).tar.gz ++ cd $(SRCORIGDIR) && wget -c http://ci.netsurf-browser.org/toolchain/arm-unknown-riscos/mpc-$(MPC_VERSION).tar.gz + touch $@ + + # Download mpfr source: diff --git a/arm-unknown-riscos/recipes/patches/gcc4/ppl-download.p b/arm-unknown-riscos/recipes/patches/gcc4/ppl-download.p new file mode 100644 index 0000000..7eb77c3 --- /dev/null +++ b/arm-unknown-riscos/recipes/patches/gcc4/ppl-download.p @@ -0,0 +1,27 @@ +--- gcc4/Makefile.orig 2018-01-26 08:03:49.745541843 +0000 ++++ gcc4/Makefile 2018-01-26 08:05:15.256056177 +0000 +@@ -586,9 +586,9 @@ + touch $(BUILDSTEPSDIR)/$@ + + # Unpack & copy ppl source: +-src-ppl-copied: $(SRCORIGDIR)/ppl-$(PPL_VERSION).tar.gz ++src-ppl-copied: $(SRCORIGDIR)/ppl-$(PPL_VERSION).tar.xz + -rm -rf $(SRCORIGDIR)/ppl-$(PPL_VERSION) $(SRCDIR)/ppl +- cd $(SRCORIGDIR) && tar xf $< ++ cd $(SRCORIGDIR) && tar axf $< + -mkdir -p $(SRCDIR)/ppl + cp -T -p -r $(SRCORIGDIR)/ppl-$(PPL_VERSION) $(SRCDIR)/ppl + cd $(SRCDIR)/ppl && PATH="$(PREFIX_BUILDTOOL_GCC)/bin:$(PATH)" && $(SCRIPTSDIR)/do-patch-and-copy $(RECIPEDIR) +@@ -713,10 +713,9 @@ + touch $@ + + # Download ppl source: +-$(SRCORIGDIR)/ppl-$(PPL_VERSION).tar.gz: ++$(SRCORIGDIR)/ppl-$(PPL_VERSION).tar.xz: + -mkdir -p $(SRCORIGDIR) +- cd $(SRCORIGDIR) && wget -c http://www.cs.unipr.it/ppl/download/ftp/releases/$(PPL_VERSION)/ppl-$(PPL_VERSION).tar.gz +- touch $@ ++ wget -O $@ -c http://ci.netsurf-browser.org/toolchain/arm-unknown-riscos/ppl-$(PPL_VERSION).tar.xz + + # Download CLooG source: + $(SRCORIGDIR)/cloog-ppl-$(CLOOG_VERSION).tar.gz: diff --git a/arm-unknown-riscos/recipes/patches/gcc4/ppl-version.p b/arm-unknown-riscos/recipes/patches/gcc4/ppl-version.p new file mode 100644 index 0000000..7631c68 --- /dev/null +++ b/arm-unknown-riscos/recipes/patches/gcc4/ppl-version.p @@ -0,0 +1,175 @@ +Index: gcc4/Makefile +=================================================================== +--- gcc4/Makefile (revision 7156) ++++ gcc4/Makefile (working copy) +@@ -45,7 +45,7 @@ + MPFR_VERSION=3.0.1 + MPC_VERSION=0.8.2 + GCC_USE_PPL_CLOOG=yes +-PPL_VERSION=0.11.2 ++PPL_VERSION=1.2 + CLOOG_VERSION=0.15.11 + GCC_USE_LTO=yes + +@@ -182,8 +182,8 @@ + RONATIVE_MPFR_CONFIG_ARGS := --disable-shared --with-gmp=$(PREFIX_RONATIVEGCC_LIBS) --host=$(TARGET) --prefix=$(PREFIX_RONATIVEGCC_LIBS) + + # Configure arguments PPL: +-CROSS_PPL_CONFIG_ARGS := --disable-shared --disable-watchdog --with-gnu-ld --with-gmp-prefix=$(PREFIX_CROSSGCC_LIBS) --prefix=$(PREFIX_CROSSGCC_LIBS) +-RONATIVE_PPL_CONFIG_ARGS := --disable-shared --disable-watchdog --with-gnu-ld --with-gmp-prefix=$(PREFIX_RONATIVEGCC_LIBS) --host=$(TARGET) --prefix=$(PREFIX_RONATIVEGCC_LIBS) ++CROSS_PPL_CONFIG_ARGS := --disable-shared --disable-watchdog --with-gnu-ld --with-gmp=$(PREFIX_CROSSGCC_LIBS) --prefix=$(PREFIX_CROSSGCC_LIBS) ++RONATIVE_PPL_CONFIG_ARGS := --disable-shared --disable-watchdog --with-gnu-ld --with-gmp=$(PREFIX_RONATIVEGCC_LIBS) --host=$(TARGET) --prefix=$(PREFIX_RONATIVEGCC_LIBS) + + # Configure arguments CLooG: + CROSS_CLOOG_CONFIG_ARGS := --disable-shared --with-gmp=$(PREFIX_CROSSGCC_LIBS) --with-bits=gmp --with-ppl=$(PREFIX_CROSSGCC_LIBS) --with-host-libstdcxx='-lstdc++' --prefix=$(PREFIX_CROSSGCC_LIBS) +Index: gcc4/recipe/patches/cloog/configure.in.p +=================================================================== +--- gcc4/recipe/patches/cloog/configure.in.p (revision 7156) ++++ gcc4/recipe/patches/cloog/configure.in.p (working copy) +@@ -1,5 +1,5 @@ +---- configure.in.orig 2013-05-01 16:15:33.235945936 +0200 +-+++ configure.in 2013-05-01 16:15:15.484169106 +0200 ++--- configure.in.orig 2017-04-23 11:55:00.956204411 +0100 +++++ configure.in 2017-04-23 11:50:39.385519538 +0100 + @@ -41,7 +41,7 @@ dnl ************************************ + AC_PREREQ(2.13) + AC_INIT(source/cloog.c) +@@ -9,7 +9,13 @@ + dnl Every other copy of the package version number gets its value from here. + AM_INIT_AUTOMAKE(cloog, 0.15) + AC_CONFIG_HEADER(include/cloog/cloog-config.h) +-@@ -343,7 +343,7 @@ if test "x$with_ppl" != "x" -a "x$with_p ++@@ -338,12 +338,12 @@ if test "x$with_ppl" != "x" -a "x$with_p ++ ++ AC_MSG_CHECKING([for version 0.10 (or later revision) of PPL]) ++ AC_TRY_COMPILE([#include "ppl_c.h"],[ ++- #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10 +++ #if PPL_VERSION_MAJOR == 0 && PPL_VERSION_MINOR < 10 ++ choke me + #endif + ], [AC_MSG_RESULT([yes])], [AC_MSG_ERROR(Can't find correct version of PPL.) ]) + +Index: gcc4/recipe/patches/gcc/configure.ac.p +=================================================================== +--- gcc4/recipe/patches/gcc/configure.ac.p (revision 7156) ++++ gcc4/recipe/patches/gcc/configure.ac.p (working copy) +@@ -1,6 +1,6 @@ + Index: configure.ac + =================================================================== +---- configure.ac (revision 197339) ++--- configure.ac (revision 247077) + +++ configure.ac (working copy) + @@ -152,6 +152,7 @@ + # Note that libiberty is not a target library. +@@ -34,6 +34,15 @@ + + if test "$enable_ppl_version_check" != no; then + saved_CFLAGS="$CFLAGS" ++@@ -1577,7 +1586,7 @@ ++ CFLAGS="$CFLAGS $pplinc $gmpinc" ++ AC_MSG_CHECKING([for version 0.11 (revision 0 or later) of PPL]) ++ AC_TRY_COMPILE([#include "ppl_c.h"],[ ++- #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11 +++ #if PPL_VERSION_MAJOR == 0 && PPL_VERSION_MINOR < 11 ++ choke me ++ #endif ++ ], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]); ppllibs= ; pplinc= ; with_ppl=no ]) + @@ -2895,6 +2904,10 @@ + ;; + esac +Index: gcc4/recipe/patches/ppl/src.Congruence_System.defs.hh.p +=================================================================== +--- gcc4/recipe/patches/ppl/src.Congruence_System.defs.hh.p (revision 7156) ++++ gcc4/recipe/patches/ppl/src.Congruence_System.defs.hh.p (nonexistent) +@@ -1,19 +0,0 @@ +---- src/Congruence_System.defs.hh.orig 2015-03-01 19:57:52.887328139 +0100 +-+++ src/Congruence_System.defs.hh 2015-03-01 19:57:12.315328259 +0100 +-@@ -33,6 +33,7 @@ site: http://www.cs.unipr.it/ppl/ . */ +- #include "Grid.types.hh" +- #include "Grid_Certificate.types.hh" +- #include <iosfwd> +-+#include <cstddef> +- +- namespace Parma_Polyhedra_Library { +- +-@@ -235,7 +236,7 @@ public: +- class const_iterator +- : public std::iterator<std::forward_iterator_tag, +- Congruence, +-- ptrdiff_t, +-+ std::ptrdiff_t, +- const Congruence*, +- const Congruence&> { +- public: +Index: gcc4/recipe/patches/ppl/src.Constraint_System.defs.hh.p +=================================================================== +--- gcc4/recipe/patches/ppl/src.Constraint_System.defs.hh.p (revision 7156) ++++ gcc4/recipe/patches/ppl/src.Constraint_System.defs.hh.p (nonexistent) +@@ -1,19 +0,0 @@ +---- src/Constraint_System.defs.hh.orig 2015-03-01 19:58:03.831328106 +0100 +-+++ src/Constraint_System.defs.hh 2015-03-01 19:57:12.315328259 +0100 +-@@ -33,6 +33,7 @@ site: http://www.cs.unipr.it/ppl/ . */ +- #include "Congruence_System.types.hh" +- #include <iterator> +- #include <iosfwd> +-+#include <cstddef> +- +- namespace Parma_Polyhedra_Library { +- +-@@ -204,7 +205,7 @@ public: +- class const_iterator +- : public std::iterator<std::forward_iterator_tag, +- Constraint, +-- ptrdiff_t, +-+ std::ptrdiff_t, +- const Constraint*, +- const Constraint&> { +- public: +Index: gcc4/recipe/patches/ppl/src.Generator_System.defs.hh.p +=================================================================== +--- gcc4/recipe/patches/ppl/src.Generator_System.defs.hh.p (revision 7156) ++++ gcc4/recipe/patches/ppl/src.Generator_System.defs.hh.p (nonexistent) +@@ -1,19 +0,0 @@ +---- src/Generator_System.defs.hh.orig 2015-03-01 19:58:13.511328077 +0100 +-+++ src/Generator_System.defs.hh 2015-03-01 19:57:12.319328259 +0100 +-@@ -33,6 +33,7 @@ site: http://www.cs.unipr.it/ppl/ . */ +- #include "Polyhedron.types.hh" +- #include "Poly_Con_Relation.defs.hh" +- #include <iosfwd> +-+#include <cstddef> +- +- namespace Parma_Polyhedra_Library { +- +-@@ -250,7 +251,7 @@ public: +- class const_iterator +- : public std::iterator<std::forward_iterator_tag, +- Generator, +-- ptrdiff_t, +-+ std::ptrdiff_t, +- const Generator*, +- const Generator&> { +- public: +Index: gcc4/recipe/patches/ppl/src.Grid_Generator_System.defs.hh.p +=================================================================== +--- gcc4/recipe/patches/ppl/src.Grid_Generator_System.defs.hh.p (revision 7156) ++++ gcc4/recipe/patches/ppl/src.Grid_Generator_System.defs.hh.p (nonexistent) +@@ -1,19 +0,0 @@ +---- src/Grid_Generator_System.defs.hh.orig 2015-03-01 19:57:31.127328203 +0100 +-+++ src/Grid_Generator_System.defs.hh 2015-03-01 19:57:12.315328259 +0100 +-@@ -30,6 +30,7 @@ site: http://www.cs.unipr.it/ppl/ . */ +- #include "Variables_Set.types.hh" +- #include "Grid.types.hh" +- #include <iosfwd> +-+#include <cstddef> +- +- namespace Parma_Polyhedra_Library { +- +-@@ -267,7 +268,7 @@ public: +- class const_iterator +- : public std::iterator<std::forward_iterator_tag, +- Grid_Generator, +-- ptrdiff_t, +-+ std::ptrdiff_t, +- const Grid_Generator*, +- const Grid_Generator&>, +- private Generator_System::const_iterator { |