From bdc374886d94b8c8e7848cfa82c123f76bf0c6b5 Mon Sep 17 00:00:00 2001 From: kaloz Date: Fri, 1 Jul 2011 11:35:21 +0000 Subject: [toolchain]: add the latest avr32 toolchain patches (with additional fixes) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27332 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../gcc/patches/4.4.5/933-avr32_bug_7435.patch | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 toolchain/gcc/patches/4.4.5/933-avr32_bug_7435.patch (limited to 'toolchain/gcc/patches/4.4.5/933-avr32_bug_7435.patch') diff --git a/toolchain/gcc/patches/4.4.5/933-avr32_bug_7435.patch b/toolchain/gcc/patches/4.4.5/933-avr32_bug_7435.patch new file mode 100644 index 000000000..021c62ecf --- /dev/null +++ b/toolchain/gcc/patches/4.4.5/933-avr32_bug_7435.patch @@ -0,0 +1,32 @@ +--- a/gcc/config/avr32/avr32.c ++++ b/gcc/config/avr32/avr32.c +@@ -222,14 +222,14 @@ void + avr32_override_options (void) + { + const struct part_type_s *part; +- const struct arch_type_s *arch; ++ const struct arch_type_s *arch, *part_arch; + + /*Add backward compability*/ + if (strcmp ("uc", avr32_arch_name)== 0) + { + fprintf (stderr, "Warning: Deprecated arch `%s' specified. " + "Please use '-march=ucr1' instead. " +- "Converting to arch 'ucr1'\n", ++ "Using arch 'ucr1'\n", + avr32_arch_name); + avr32_arch_name="ucr1"; + } +@@ -277,6 +277,12 @@ avr32_override_options (void) + if (!arch->name) + avr32_arch = &avr32_arch_types[avr32_part->arch_type]; + ++ /* When architecture implied by -mpart and one passed in -march are ++ * conflicting, issue an error message */ ++ part_arch = &avr32_arch_types[avr32_part->arch_type]; ++ if (strcmp("none",avr32_part_name) && strcmp("none", avr32_arch_name) && strcmp(avr32_arch_name,part_arch->name)) ++ error ("Conflicting architectures implied by -mpart and -march\n"); ++ + /* If optimization level is two or greater, then align start of loops to a + word boundary since this will allow folding the first insn of the loop. + Do this only for targets supporting branch prediction. */ -- cgit v1.2.3