diff --git a/recipes/gcc/gcc-4.5.inc b/recipes/gcc/gcc-4.5.inc index bac15ef..3e6fb75 100644 --- a/recipes/gcc/gcc-4.5.inc +++ b/recipes/gcc/gcc-4.5.inc @@ -32,6 +32,7 @@ SRC_URI = "svn://gcc.gnu.org/svn/gcc/branches;module=${BRANCH} \ file://arm-bswapsi2.patch \ file://Makefile.in.patch \ file://gcc-armv4-pass-fix-v4bx-to-ld.patch \ + file://arm-default-to-armv4t.patch \ file://linaro/gcc-4.5-linaro-r99297.patch \ file://linaro/gcc-4.5-linaro-r99298.patch \ file://linaro/gcc-4.5-linaro-r99299.patch \ diff --git a/recipes/gcc/gcc-4.5/arm-default-to-armv4t.patch b/recipes/gcc/gcc-4.5/arm-default-to-armv4t.patch new file mode 100644 index 0000000..580fccb --- /dev/null +++ b/recipes/gcc/gcc-4.5/arm-default-to-armv4t.patch @@ -0,0 +1,13 @@ +Index: gcc-4_5-branch/gcc/config/arm/linux-eabi.h +=================================================================== +--- gcc-4_5-branch.orig/gcc/config/arm/linux-eabi.h ++++ gcc-4_5-branch/gcc/config/arm/linux-eabi.h +@@ -44,7 +44,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. */