summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0410-lib-target-supports.exp.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0410-lib-target-supports.exp.patch')
-rw-r--r--meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0410-lib-target-supports.exp.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0410-lib-target-supports.exp.patch b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0410-lib-target-supports.exp.patch
new file mode 100644
index 0000000000..ae3e16cef3
--- /dev/null
+++ b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0410-lib-target-supports.exp.patch
@@ -0,0 +1,34 @@
1From 5aac027a2e060e22e5fd400e57c021ef0e82fe4c Mon Sep 17 00:00:00 2001
2From: janis <janis@138bc75d-0d04-0410-961f-82ee72b054a4>
3Date: Fri, 10 Jun 2011 18:26:28 +0000
4Subject: [PATCH] * lib/target-supports.exp
5 (check_effective_target_arm_neon_fp16_ok_nocache): Return 0 if
6 multilib flags use -mfpu with a value other than neon-fp16.
7
8git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174921 138bc75d-0d04-0410-961f-82ee72b054a4
9
10index d2c6fff..a1d94d9 100644
11--- a/gcc/testsuite/lib/target-supports.exp
12+++ b/gcc/testsuite/lib/target-supports.exp
13@@ -1941,7 +1941,7 @@ proc add_options_for_arm_neon_fp16 { flags } {
14 }
15
16 # Return 1 if this is an ARM target supporting -mfpu=neon-fp16
17-# -mfloat-abi=softfp or equivalent options. Some multilibs may be
18+# -mfloat-abi=softfp or equivalent options. Skip multilibs that are
19 # incompatible with these options. Also set et_arm_neon_flags to the
20 # best options to add.
21
22@@ -1949,6 +1949,9 @@ proc check_effective_target_arm_neon_fp16_ok_nocache { } {
23 global et_arm_neon_fp16_flags
24 set et_arm_neon_fp16_flags ""
25 if { [check_effective_target_arm32] } {
26+ if [check-flags [list "" { *-*-* } { "-mfpu=*" } { "-mfpu=neon-fp16*" } ]] {
27+ return 0
28+ }
29 # Always add -mfpu=neon-fp16, since there is no preprocessor
30 # macro for FP16 support.
31 foreach flags {"-mfpu=neon-fp16" "-mfpu=neon-fp16 -mfloat-abi=softfp"} {
32--
331.7.0.4
34