1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-09 17:39:31 +00:00

gcc: Use 4.7.2 release tarball

This avoids the SVN or git fetcher issues for gcc
and the tar is mirrored around the world so it will
not be slow

Fixes [YOCTO #2908]

(From OE-Core rev: 5e03d1e83d0536a2fc69a88d3e5407108836203f)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Khem Raj
2012-09-20 13:54:35 -07:00
committed by Richard Purdie
parent 3c101af5e3
commit df74f8d9a8
4 changed files with 56 additions and 58 deletions
+6 -9
View File
@@ -8,10 +8,7 @@ PR = "r13"
# on branch then PV should be incremented to 4.7.2+svnr${SRCPV} # on branch then PV should be incremented to 4.7.2+svnr${SRCPV}
# to reflect that change # to reflect that change
# using 4.7.1.0 for upgrade path when we move past 4.7.2 release PV = "4.7.2"
# then we should drop the last 0 as well.
PV = "4.7.1.0+git${SRCPV}"
# BINV should be incremented after updating to a revision # BINV should be incremented after updating to a revision
# after a minor gcc release (e.g. 4.7.1 or 4.7.2) has been made # after a minor gcc release (e.g. 4.7.1 or 4.7.2) has been made
@@ -21,8 +18,6 @@ PV = "4.7.1.0+git${SRCPV}"
BINV = "4.7.2" BINV = "4.7.2"
SRCREV = "d07e24f4ab59f264d68d21838795349faab5dede"
BRANCH = "gcc-4_7-branch"
FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/gcc-4.7' ], d)}" FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/gcc-4.7' ], d)}"
DEPENDS =+ "mpfr gmp libmpc" DEPENDS =+ "mpfr gmp libmpc"
@@ -36,7 +31,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \ file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \
file://COPYING.RUNTIME;md5=fe60d87048567d4fe8c8a0ed2448bcc8" file://COPYING.RUNTIME;md5=fe60d87048567d4fe8c8a0ed2448bcc8"
SRC_URI = "git://github.com/mirrors/gcc.git;branch=${BRANCH};protocol=git \ SRC_URI = "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.bz2 \
file://gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch \ file://gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch \
file://100-uclibc-conf.patch \ file://100-uclibc-conf.patch \
file://gcc-uclibc-locale-ctype_touplow_t.patch \ file://gcc-uclibc-locale-ctype_touplow_t.patch \
@@ -80,9 +75,11 @@ SRC_URI = "git://github.com/mirrors/gcc.git;branch=${BRANCH};protocol=git \
file://0001-crtstuff.c-USE_PT_GNU_EH_FRAME-Define-for-systems-us.patch \ file://0001-crtstuff.c-USE_PT_GNU_EH_FRAME-Define-for-systems-us.patch \
file://0001-Makefile.in-vis_hide-gen-hide-list-Do-not-make-defin.patch \ file://0001-Makefile.in-vis_hide-gen-hide-list-Do-not-make-defin.patch \
" "
SRC_URI[md5sum] = "cc308a0891e778cfda7a151ab8a6e762"
SRC_URI[sha256sum] = "8a9283d7010fb9fe5ece3ca507e0af5c19412626384f8a5e9434251ae100b084"
S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/git" S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${PV}"
B = "${WORKDIR}/${BRANCH}/build.${HOST_SYS}.${TARGET_SYS}" B = "${WORKDIR}/gcc-${PV}/build.${HOST_SYS}.${TARGET_SYS}"
# Language Overrides # Language Overrides
FORTRAN = "" FORTRAN = ""
@@ -6,10 +6,10 @@ Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Index: gcc-4_7-branch/gcc/configure.ac Index: gcc-4.7.2/gcc/configure.ac
=================================================================== ===================================================================
--- gcc-4_7-branch.orig/gcc/configure.ac 2012-06-20 00:21:52.182955919 -0700 --- gcc-4.7.2.orig/gcc/configure.ac 2012-09-20 07:42:30.284941174 -0700
+++ gcc-4_7-branch/gcc/configure.ac 2012-06-20 00:28:01.386973785 -0700 +++ gcc-4.7.2/gcc/configure.ac 2012-09-20 07:55:23.148970564 -0700
@@ -118,6 +118,72 @@ @@ -118,6 +118,72 @@
local_prefix=/usr/local local_prefix=/usr/local
fi fi
@@ -163,10 +163,10 @@ Index: gcc-4_7-branch/gcc/configure.ac
AC_ARG_WITH(specs, AC_ARG_WITH(specs,
[AS_HELP_STRING([--with-specs=SPECS], [AS_HELP_STRING([--with-specs=SPECS],
[add SPECS to driver command-line processing])], [add SPECS to driver command-line processing])],
Index: gcc-4_7-branch/gcc/configure Index: gcc-4.7.2/gcc/configure
=================================================================== ===================================================================
--- gcc-4_7-branch.orig/gcc/configure 2012-06-20 00:27:18.778971725 -0700 --- gcc-4.7.2.orig/gcc/configure 2012-09-20 07:42:30.284941174 -0700
+++ gcc-4_7-branch/gcc/configure 2012-06-20 00:28:06.634974041 -0700 +++ gcc-4.7.2/gcc/configure 2012-09-20 07:55:31.788970893 -0700
@@ -757,10 +757,6 @@ @@ -757,10 +757,6 @@
REPORT_BUGS_TO REPORT_BUGS_TO
PKGVERSION PKGVERSION
@@ -408,21 +408,21 @@ Index: gcc-4_7-branch/gcc/configure
# Check whether --with-specs was given. # Check whether --with-specs was given.
if test "${with_specs+set}" = set; then : if test "${with_specs+set}" = set; then :
withval=$with_specs; CONFIGURE_SPECS=$withval withval=$with_specs; CONFIGURE_SPECS=$withval
@@ -17973,7 +17979,7 @@ @@ -18013,7 +18019,7 @@
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF cat > conftest.$ac_ext <<_LT_EOF
-#line 17976 "configure" -#line 18016 "configure"
+#line 17982 "configure" +#line 18022 "configure"
#include "confdefs.h" #include "confdefs.h"
#if HAVE_DLFCN_H #if HAVE_DLFCN_H
@@ -18079,7 +18085,7 @@ @@ -18119,7 +18125,7 @@
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF cat > conftest.$ac_ext <<_LT_EOF
-#line 18082 "configure" -#line 18122 "configure"
+#line 18088 "configure" +#line 18128 "configure"
#include "confdefs.h" #include "confdefs.h"
#if HAVE_DLFCN_H #if HAVE_DLFCN_H
@@ -27,10 +27,10 @@ Upstream-Status: Inappropriate [distribution: codesourcery]
ENABLE_POISON_SYSTEM_DIRECTORIES defined, warn for use of ENABLE_POISON_SYSTEM_DIRECTORIES defined, warn for use of
/usr/include, /usr/local/include or /usr/X11R6/include. /usr/include, /usr/local/include or /usr/X11R6/include.
Index: gcc-4_7-branch/gcc/common.opt Index: gcc-4.7.2/gcc/common.opt
=================================================================== ===================================================================
--- gcc-4_7-branch.orig/gcc/common.opt 2012-04-10 10:54:04.000000000 -0700 --- gcc-4.7.2.orig/gcc/common.opt 2012-08-06 07:34:27.000000000 -0700
+++ gcc-4_7-branch/gcc/common.opt 2012-04-10 10:56:02.259442274 -0700 +++ gcc-4.7.2/gcc/common.opt 2012-09-20 07:40:54.708937540 -0700
@@ -582,6 +582,10 @@ @@ -582,6 +582,10 @@
Common Var(warn_padded) Warning Common Var(warn_padded) Warning
Warn when padding is required to align structure members Warn when padding is required to align structure members
@@ -42,10 +42,10 @@ Index: gcc-4_7-branch/gcc/common.opt
Wshadow Wshadow
Common Var(warn_shadow) Warning Common Var(warn_shadow) Warning
Warn when one local variable shadows another Warn when one local variable shadows another
Index: gcc-4_7-branch/gcc/config.in Index: gcc-4.7.2/gcc/config.in
=================================================================== ===================================================================
--- gcc-4_7-branch.orig/gcc/config.in 2012-04-10 10:54:04.000000000 -0700 --- gcc-4.7.2.orig/gcc/config.in 2012-09-20 00:23:55.000000000 -0700
+++ gcc-4_7-branch/gcc/config.in 2012-04-10 10:56:02.259442274 -0700 +++ gcc-4.7.2/gcc/config.in 2012-09-20 07:40:54.708937540 -0700
@@ -144,6 +144,12 @@ @@ -144,6 +144,12 @@
#endif #endif
@@ -59,11 +59,11 @@ Index: gcc-4_7-branch/gcc/config.in
/* Define if you want all operations on RTL (the basic data structure of the /* Define if you want all operations on RTL (the basic data structure of the
optimizer and back end) to be checked for dynamic type safety at runtime. optimizer and back end) to be checked for dynamic type safety at runtime.
This is quite expensive. */ This is quite expensive. */
Index: gcc-4_7-branch/gcc/configure.ac Index: gcc-4.7.2/gcc/configure.ac
=================================================================== ===================================================================
--- gcc-4_7-branch.orig/gcc/configure.ac 2012-04-10 10:55:32.000000000 -0700 --- gcc-4.7.2.orig/gcc/configure.ac 2012-09-20 07:30:27.000000000 -0700
+++ gcc-4_7-branch/gcc/configure.ac 2012-04-10 10:56:02.259442274 -0700 +++ gcc-4.7.2/gcc/configure.ac 2012-09-20 07:40:54.708937540 -0700
@@ -4959,6 +4959,16 @@ @@ -4989,6 +4989,16 @@
[specify that runtime libraries should be [specify that runtime libraries should be
installed in a compiler-specific directory])]) installed in a compiler-specific directory])])
@@ -80,10 +80,10 @@ Index: gcc-4_7-branch/gcc/configure.ac
# Substitute configuration variables # Substitute configuration variables
AC_SUBST(subdirs) AC_SUBST(subdirs)
AC_SUBST(srcdir) AC_SUBST(srcdir)
Index: gcc-4_7-branch/gcc/doc/invoke.texi Index: gcc-4.7.2/gcc/doc/invoke.texi
=================================================================== ===================================================================
--- gcc-4_7-branch.orig/gcc/doc/invoke.texi 2012-04-10 10:54:04.000000000 -0700 --- gcc-4.7.2.orig/gcc/doc/invoke.texi 2012-09-14 13:45:27.000000000 -0700
+++ gcc-4_7-branch/gcc/doc/invoke.texi 2012-04-10 10:56:02.263442231 -0700 +++ gcc-4.7.2/gcc/doc/invoke.texi 2012-09-20 07:40:54.712937541 -0700
@@ -260,6 +260,7 @@ @@ -260,6 +260,7 @@
-Woverlength-strings -Wpacked -Wpacked-bitfield-compat -Wpadded @gol -Woverlength-strings -Wpacked -Wpacked-bitfield-compat -Wpadded @gol
-Wparentheses -Wpedantic-ms-format -Wno-pedantic-ms-format @gol -Wparentheses -Wpedantic-ms-format -Wno-pedantic-ms-format @gol
@@ -92,7 +92,7 @@ Index: gcc-4_7-branch/gcc/doc/invoke.texi
-Wredundant-decls @gol -Wredundant-decls @gol
-Wreturn-type -Wsequence-point -Wshadow @gol -Wreturn-type -Wsequence-point -Wshadow @gol
-Wsign-compare -Wsign-conversion -Wstack-protector @gol -Wsign-compare -Wsign-conversion -Wstack-protector @gol
@@ -3878,6 +3879,14 @@ @@ -3879,6 +3880,14 @@
for most targets, it is made up of code and thus requires the stack for most targets, it is made up of code and thus requires the stack
to be made executable in order for the program to work properly. to be made executable in order for the program to work properly.
@@ -107,10 +107,10 @@ Index: gcc-4_7-branch/gcc/doc/invoke.texi
@item -Wfloat-equal @item -Wfloat-equal
@opindex Wfloat-equal @opindex Wfloat-equal
@opindex Wno-float-equal @opindex Wno-float-equal
Index: gcc-4_7-branch/gcc/gcc.c Index: gcc-4.7.2/gcc/gcc.c
=================================================================== ===================================================================
--- gcc-4_7-branch.orig/gcc/gcc.c 2012-04-10 10:54:04.000000000 -0700 --- gcc-4.7.2.orig/gcc/gcc.c 2012-08-06 07:34:27.000000000 -0700
+++ gcc-4_7-branch/gcc/gcc.c 2012-04-10 10:56:02.267442207 -0700 +++ gcc-4.7.2/gcc/gcc.c 2012-09-20 07:40:54.716937541 -0700
@@ -673,6 +673,8 @@ @@ -673,6 +673,8 @@
%{flto} %{flto=*} %l " LINK_PIE_SPEC \ %{flto} %{flto=*} %l " LINK_PIE_SPEC \
"%X %{o*} %{e*} %{N} %{n} %{r}\ "%X %{o*} %{e*} %{N} %{n} %{r}\
@@ -120,10 +120,10 @@ Index: gcc-4_7-branch/gcc/gcc.c
%{static:} %{L*} %(mfwrap) %(link_libgcc) %o\ %{static:} %{L*} %(mfwrap) %(link_libgcc) %o\
%{fopenmp|ftree-parallelize-loops=*:%:include(libgomp.spec)%(link_gomp)}\ %{fopenmp|ftree-parallelize-loops=*:%:include(libgomp.spec)%(link_gomp)}\
%{fgnu-tm:%:include(libitm.spec)%(link_itm)}\ %{fgnu-tm:%:include(libitm.spec)%(link_itm)}\
Index: gcc-4_7-branch/gcc/incpath.c Index: gcc-4.7.2/gcc/incpath.c
=================================================================== ===================================================================
--- gcc-4_7-branch.orig/gcc/incpath.c 2012-04-10 10:54:04.000000000 -0700 --- gcc-4.7.2.orig/gcc/incpath.c 2012-01-26 15:34:58.000000000 -0800
+++ gcc-4_7-branch/gcc/incpath.c 2012-04-10 10:56:02.267442207 -0700 +++ gcc-4.7.2/gcc/incpath.c 2012-09-20 07:40:54.716937541 -0700
@@ -361,6 +361,24 @@ @@ -361,6 +361,24 @@
} }
fprintf (stderr, _("End of search list.\n")); fprintf (stderr, _("End of search list.\n"));
@@ -149,10 +149,10 @@ Index: gcc-4_7-branch/gcc/incpath.c
} }
/* Use given -I paths for #include "..." but not #include <...>, and /* Use given -I paths for #include "..." but not #include <...>, and
Index: gcc-4_7-branch/gcc/Makefile.in Index: gcc-4.7.2/gcc/Makefile.in
=================================================================== ===================================================================
--- gcc-4_7-branch.orig/gcc/Makefile.in 2012-04-10 10:54:05.000000000 -0700 --- gcc-4.7.2.orig/gcc/Makefile.in 2012-08-06 07:34:27.000000000 -0700
+++ gcc-4_7-branch/gcc/Makefile.in 2012-04-10 10:56:02.267442207 -0700 +++ gcc-4.7.2/gcc/Makefile.in 2012-09-20 07:40:54.716937541 -0700
@@ -2065,7 +2065,7 @@ @@ -2065,7 +2065,7 @@
incpath.o: incpath.c incpath.h $(CONFIG_H) $(SYSTEM_H) $(CPPLIB_H) \ incpath.o: incpath.c incpath.h $(CONFIG_H) $(SYSTEM_H) $(CPPLIB_H) \
@@ -162,10 +162,10 @@ Index: gcc-4_7-branch/gcc/Makefile.in
CFLAGS-prefix.o += -DPREFIX=\"$(prefix)\" -DBASEVER=$(BASEVER_s) CFLAGS-prefix.o += -DPREFIX=\"$(prefix)\" -DBASEVER=$(BASEVER_s)
prefix.o: prefix.c $(CONFIG_H) $(SYSTEM_H) coretypes.h prefix.h \ prefix.o: prefix.c $(CONFIG_H) $(SYSTEM_H) coretypes.h prefix.h \
Index: gcc-4_7-branch/gcc/configure Index: gcc-4.7.2/gcc/configure
=================================================================== ===================================================================
--- gcc-4_7-branch.orig/gcc/configure 2012-04-10 10:55:32.000000000 -0700 --- gcc-4.7.2.orig/gcc/configure 2012-09-20 07:30:27.000000000 -0700
+++ gcc-4_7-branch/gcc/configure 2012-04-10 10:56:12.183442720 -0700 +++ gcc-4.7.2/gcc/configure 2012-09-20 07:41:08.548938066 -0700
@@ -914,6 +914,7 @@ @@ -914,6 +914,7 @@
with_system_zlib with_system_zlib
enable_maintainer_mode enable_maintainer_mode
@@ -183,25 +183,25 @@ Index: gcc-4_7-branch/gcc/configure
--enable-plugin enable plugin support --enable-plugin enable plugin support
--disable-libquadmath-support --disable-libquadmath-support
disable libquadmath support for Fortran disable libquadmath support for Fortran
@@ -17970,7 +17973,7 @@ @@ -18010,7 +18013,7 @@
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF cat > conftest.$ac_ext <<_LT_EOF
-#line 17973 "configure" -#line 18013 "configure"
+#line 17976 "configure" +#line 18016 "configure"
#include "confdefs.h" #include "confdefs.h"
#if HAVE_DLFCN_H #if HAVE_DLFCN_H
@@ -18076,7 +18079,7 @@ @@ -18116,7 +18119,7 @@
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF cat > conftest.$ac_ext <<_LT_EOF
-#line 18079 "configure" -#line 18119 "configure"
+#line 18082 "configure" +#line 18122 "configure"
#include "confdefs.h" #include "confdefs.h"
#if HAVE_DLFCN_H #if HAVE_DLFCN_H
@@ -27075,6 +27078,19 @@ @@ -27129,6 +27132,19 @@
fi fi
+5 -4
View File
@@ -43,10 +43,11 @@ SHLIBSDIR = "${STAGING_DIR_TARGET}/shlibs"
DEBIANNAME_libgcc = "libgcc1" DEBIANNAME_libgcc = "libgcc1"
MIRRORS =+ "\ MIRRORS =+ "\
${GNU_MIRROR}/gcc/releases/ ftp://gcc.gnu.org/pub/gcc/releases/ \n \ ${GNU_MIRROR}/gcc ftp://gcc.gnu.org/pub/gcc/releases/ \n \
${GNU_MIRROR}/gcc/ http://mirrors.rcn.net/pub/sourceware/gcc/releases/ \n \ ${GNU_MIRROR}/gcc ftp://gd.tuwien.ac.at/gnu/gcc/ \n \
${GNU_MIRROR}/gcc/releases/ http://gcc.get-software.com/releases/ \n \ ${GNU_MIRROR}/gcc http://mirrors.rcn.net/pub/sourceware/gcc/releases/ \n \
${GNU_MIRROR}/gcc/ http://gcc.get-software.com/releases/ \n \ ${GNU_MIRROR}/gcc http://gcc.get-software.com/releases/ \n \
${GNU_MIRROR}/gcc http://gcc.get-software.com/releases/ \n \
" "
# #