toolchain/gcc: add 4.7.x series
PATCH 1/1 toolchain/gcc: add 4.7.x series
Add gcc 4.7.0 to the toolchain options.
--- target/Config.in.arch | 1 + .../gcc/0001-toolchain-gcc-add-4.7.x-series.txt | 659 ++++++++++++++++++++ toolchain/gcc/4.7.0/100-uclibc-conf.patch | 33 + toolchain/gcc/4.7.0/200-gcc-pr52734.patch | 115 ++++ toolchain/gcc/4.7.0/301-missing-execinfo_h.patch | 11 + toolchain/gcc/4.7.0/302-c99-snprintf.patch | 13 + .../gcc/4.7.0/305-libmudflap-susv3-legacy.patch | 49 ++ toolchain/gcc/4.7.0/810-arm-softfloat-libgcc.patch | 25 + toolchain/gcc/4.7.0/830-arm_unbreak_armv4t.patch | 13 + .../powerpc-link-with-math-lib.patch.conditional | 125 ++++ toolchain/gcc/Config.in | 5 + toolchain/gcc/Config.in.2 | 2 +- toolchain/gcc/gcc-uclibc-4.x.mk | 10 + 13 files changed, 1060 insertions(+), 1 deletions(-) create mode 100644 toolchain/gcc/0001-toolchain-gcc-add-4.7.x-series.txt create mode 100644 toolchain/gcc/4.7.0/100-uclibc-conf.patch create mode 100644 toolchain/gcc/4.7.0/200-gcc-pr52734.patch create mode 100644 toolchain/gcc/4.7.0/301-missing-execinfo_h.patch create mode 100644 toolchain/gcc/4.7.0/302-c99-snprintf.patch create mode 100644 toolchain/gcc/4.7.0/305-libmudflap-susv3-legacy.patch create mode 100644 toolchain/gcc/4.7.0/810-arm-softfloat-libgcc.patch create mode 100644 toolchain/gcc/4.7.0/830-arm_unbreak_armv4t.patch create mode 100644 toolchain/gcc/4.7.0/powerpc-link-with-math-lib.patch.conditional
target/Config.in.arch +1 -0
@@ -221,6 +221,7 @@ config BR2_ARM_EABI bool "EABI" config BR2_ARM_OABI bool "OABI" + depends on !BR2_GCC_VERSION_4_7_X endchoice choice
toolchain/gcc/0001-toolchain-gcc-add-4.7.x-series.txt new file +659 -0
659 lines not on this page · raw message
toolchain/gcc/4.7.0/100-uclibc-conf.patch new file +33 -0
@@ -0,0 +1,33 @@ +--- gcc/gcc/config/--- gcc/contrib/regression/objs-gcc.sh ++++ gcc/contrib/regression/objs-gcc.sh +@@ -105,6 +105,10 @@ + then + make all-gdb all-dejagnu all-ld || exit 1 + make install-gdb install-dejagnu install-ld || exit 1 ++elif [ $H_REAL_TARGET = $H_REAL_HOST -a $H_REAL_TARGET = i686-pc-linux-uclibc ] ++ then ++ make all-gdb all-dejagnu all-ld || exit 1 ++ make install-gdb install-dejagnu install-ld || exit 1 + elif [ $H_REAL_TARGET = $H_REAL_HOST ] ; then + make bootstrap || exit 1 + make install || exit 1 +--- gcc/libjava/classpath/ltconfig ++++ gcc/libjava/classpath/ltconfig +@@ -603,7 +603,7 @@ + + # Transform linux* to *-*-linux-gnu*, to support old configure scripts. + case $host_os in +-linux-gnu*) ;; ++linux-gnu*|linux-uclibc*) ;; + linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` + esac + +@@ -1251,7 +1251,7 @@ + ;; + + # This must be Linux ELF. +-linux-gnu*) ++linux*) + version_type=linux + need_lib_prefix=no + need_version=no
toolchain/gcc/4.7.0/200-gcc-pr52734.patch new file +115 -0
115 lines not on this page · raw message
toolchain/gcc/4.7.0/301-missing-execinfo_h.patch new file +11 -0
@@ -0,0 +1,11 @@ +--- gcc-4.0.0/boehm-gc/include/gc.h-orig 2005-04-28 22:28:57.000000000 -0500 ++++ gcc-4.0.0/boehm-gc/include/gc.h 2005-04-28 22:30:38.000000000 -0500 +@@ -500,7 +500,7 @@ + #ifdef __linux__ + # include <features.h> + # if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1 || __GLIBC__ > 2) \ +- && !defined(__ia64__) ++ && !defined(__ia64__) && !defined(__UCLIBC__) + # ifndef GC_HAVE_BUILTIN_BACKTRACE + # define GC_HAVE_BUILTIN_BACKTRACE + # endif
toolchain/gcc/4.7.0/302-c99-snprintf.patch new file +13 -0
@@ -0,0 +1,13 @@ +Index: gcc-4.3.0/libstdc++-v3/include/c_global/cstdio +=================================================================== +--- gcc-4.3.0/libstdc++-v3/include/c_global/cstdio (revision 129202) ++++ gcc-4.3.0/libstdc++-v3/include/c_global/cstdio (working copy) +@@ -144,7 +144,7 @@ + + _GLIBCXX_END_NAMESPACE + +-#if _GLIBCXX_USE_C99 ++#if _GLIBCXX_USE_C99 || defined __UCLIBC__ + + #undef snprintf + #undef vfscanf
toolchain/gcc/4.7.0/305-libmudflap-susv3-legacy.patch new file +49 -0
49 lines not on this page · raw message
toolchain/gcc/4.7.0/810-arm-softfloat-libgcc.patch new file +25 -0
@@ -0,0 +1,25 @@ +--- a/gcc/config/arm/linux-elf.h ++++ b/gcc/config/arm/linux-elf.h +@@ -57,7 +57,7 @@ + %{shared:-lc} \ + %{!shared:%{profile:-lc_p}%{!profile:-lc}}" + +-#define LIBGCC_SPEC "%{mfloat-abi=soft*:-lfloat} -lgcc" ++#define LIBGCC_SPEC "-lgcc" + + #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2" + +--- a/libgcc/config/arm/t-linux ++++ b/libgcc/config/arm/t-linux +@@ -1,6 +1,10 @@ + LIB1ASMSRC = arm/lib1funcs.S + LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx _clzsi2 _clzdi2 \ +- _arm_addsubdf3 _arm_addsubsf3 ++ _arm_addsubdf3 _arm_addsubsf3 \ ++ _arm_negdf2 _arm_muldivdf3 _arm_cmpdf2 _arm_unorddf2 \ ++ _arm_fixdfsi _arm_fixunsdfsi _arm_truncdfsf2 \ ++ _arm_negsf2 _arm_muldivsf3 _arm_cmpsf2 _arm_unordsf2 \ ++ _arm_fixsfsi _arm_fixunssfsi + + # Just for these, we omit the frame pointer since it makes such a big + # difference.
toolchain/gcc/4.7.0/830-arm_unbreak_armv4t.patch new file +13 -0
@@ -0,0 +1,13 @@ +http://sourceware.org/ml/crossgcc/2008-05/msg00009.html + +--- a/gcc/config/arm/linux-eabi.h ++++ b/gcc/config/arm/linux-eabi.h +@@ -45,7 +45,7 @@ + The ARM10TDMI core is the default for armv5t, so set + SUBTARGET_CPU_DEFAULT to achieve this. */ + #undef SUBTARGET_CPU_DEFAULT +-#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm10tdmi ++#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm9tdmi + + /* TARGET_BIG_ENDIAN_DEFAULT is set in + config.gcc for big endian configurations. */
toolchain/gcc/4.7.0/powerpc-link-with-math-lib.patch.conditional new file +125 -0
125 lines not on this page · raw message
toolchain/gcc/Config.in +5 -0
@@ -30,6 +30,10 @@ choice depends on !BR2_avr32 && !BR2_sparc_sparchfleon && !BR2_sparc_sparchfleonv8 && !BR2_sparc_sparcsfleon && !BR2_sparc_sparcsfleonv8 bool "gcc 4.6.x" + config BR2_GCC_VERSION_4_7_X + depends on !BR2_avr32 && !BR2_sparc_sparchfleon && !BR2_sparc_sparchfleonv8 && !BR2_sparc_sparcsfleon && !BR2_sparc_sparcsfleonv8 + bool "gcc 4.7.x" + config BR2_GCC_VERSION_SNAP depends on !BR2_avr32 && !BR2_sparc_sparchfleon && !BR2_sparc_sparchfleonv8 && !BR2_sparc_sparcsfleon && !BR2_sparc_sparcsfleonv8 bool "gcc snapshot"
@@ -60,6 +64,7 @@ config BR2_GCC_VERSION default "4.4.7" if BR2_GCC_VERSION_4_4_X default "4.5.3" if BR2_GCC_VERSION_4_5_X default "4.6.3" if BR2_GCC_VERSION_4_6_X + default "4.7.0" if BR2_GCC_VERSION_4_7_X default $BR2_GCC_SNAP_DATE if BR2_GCC_VERSION_SNAP config BR2_EXTRA_GCC_CONFIG_OPTIONS
toolchain/gcc/Config.in.2 +1 -1
@@ -3,7 +3,7 @@ config BR2_PACKAGE_GCC_TARGET depends on BR2_HAVE_DEVFILES && BR2_TOOLCHAIN_BUILDROOT select BR2_PACKAGE_BINUTILS select BR2_PACKAGE_BINUTILS_TARGET - select BR2_PACKAGE_MPC if (BR2_GCC_VERSION_4_5_X || BR2_GCC_VERSION_4_6_X || BR2_GCC_VERSION_SNAP) + select BR2_PACKAGE_MPC if (BR2_GCC_VERSION_4_5_X || BR2_GCC_VERSION_4_6_X || BR2_GCC_VERSION_4_7_X || BR2_GCC_VERSION_SNAP) select BR2_PACKAGE_MPFR select BR2_PACKAGE_GMP help
toolchain/gcc/gcc-uclibc-4.x.mk +10 -0
@@ -120,6 +120,16 @@ endif GCC_HOST_PREREQ += host-mpc endif +# GCC 4.7.x prerequisites +ifeq ($(findstring x4.7.,x$(GCC_VERSION)),x4.7.) +GCC_WITH_HOST_MPC = --with-mpc=$(HOST_DIR)/usr +GCC_TARGET_PREREQ += mpc +ifeq ($(BR2_TOOLCHAIN_BUILDROOT),y) +HOST_SOURCE += host-mpc-source +endif +GCC_HOST_PREREQ += host-mpc +endif + # GCC snapshot prerequisites # Since we don't know and it can be quite new just ask for everything known ifneq ($(GCC_SNAP_DATE),)
Signature · 1 line
1.7.3.4
PATCH 1/1 toolchain/gcc: add 4.7.x series
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gustavo" == Gustavo Zacarias <[email protected]> writes:
Gustavo> Add gcc 4.7.0 to the toolchain options. Gustavo> Signed-off-by: Gustavo Zacarias <[email protected]> Gustavo> ---
Gustavo> target/Config.in.arch | 1 + Gustavo> .../gcc/0001-toolchain-gcc-add-4.7.x-series.txt | 659 ++++++++++++++++++++
It looks like that file shouldn't have been included, so I removed it. Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/1 toolchain/gcc: add 4.7.x series
Quoted 5 lines · Peter Korsgaard
Gustavo> .../gcc/0001-toolchain-gcc-add-4.7.x-series.txt | 659++++++++++++++++++++
It looks like that file shouldn't have been included, so I removed it. Committed, thanks.
Oops :)
Yeah, it was a previous revision with the first tentative pr52734 fix. Regards.