diff options
Diffstat (limited to 'recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99325.patch')
-rw-r--r-- | recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99325.patch | 174 |
1 files changed, 174 insertions, 0 deletions
diff --git a/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99325.patch b/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99325.patch new file mode 100644 index 0000000000..0dbb3dbf7f --- /dev/null +++ b/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99325.patch | |||
@@ -0,0 +1,174 @@ | |||
1 | http://gcc.gnu.org/ml/gcc-patches/2006-04/msg00811.html | ||
2 | |||
3 | Kazu Hirata <kazu@codesourcery.com> | ||
4 | |||
5 | gcc/testsuite/ | ||
6 | * gcc.target/arm/vfp-ldmdbd.c, gcc.target/arm/vfp-ldmdbs.c, | ||
7 | gcc.target/arm/vfp-ldmiad.c, gcc.target/arm/vfp-ldmias.c, | ||
8 | gcc.target/arm/vfp-stmdbd.c, gcc.target/arm/vfp-stmdbs.c, | ||
9 | gcc.target/arm/vfp-stmiad.c, gcc.target/arm/vfp-stmias.c: New. | ||
10 | |||
11 | 2010-07-26 Julian Brown <julian@codesourcery.com> | ||
12 | |||
13 | Merge from Sourcery G++ 4.4: | ||
14 | |||
15 | Julian Brown <julian@codesourcery.com> | ||
16 | Mark Shinwell <mark@codesourcery.com> | ||
17 | |||
18 | |||
19 | === added file 'gcc/testsuite/gcc.target/arm/vfp-ldmdbd.c' | ||
20 | --- old/gcc/testsuite/gcc.target/arm/vfp-ldmdbd.c 1970-01-01 00:00:00 +0000 | ||
21 | +++ new/gcc/testsuite/gcc.target/arm/vfp-ldmdbd.c 2010-08-05 15:37:24 +0000 | ||
22 | @@ -0,0 +1,15 @@ | ||
23 | +/* { dg-do compile } */ | ||
24 | +/* { dg-require-effective-target arm_vfp_ok } */ | ||
25 | +/* { dg-options "-O2 -mfpu=vfp -mfloat-abi=softfp" } */ | ||
26 | + | ||
27 | +extern void bar (double); | ||
28 | + | ||
29 | +void | ||
30 | +foo (double *p, double a, int n) | ||
31 | +{ | ||
32 | + do | ||
33 | + bar (*--p + a); | ||
34 | + while (n--); | ||
35 | +} | ||
36 | + | ||
37 | +/* { dg-final { scan-assembler "fldmdbd" } } */ | ||
38 | |||
39 | === added file 'gcc/testsuite/gcc.target/arm/vfp-ldmdbs.c' | ||
40 | --- old/gcc/testsuite/gcc.target/arm/vfp-ldmdbs.c 1970-01-01 00:00:00 +0000 | ||
41 | +++ new/gcc/testsuite/gcc.target/arm/vfp-ldmdbs.c 2010-08-05 15:37:24 +0000 | ||
42 | @@ -0,0 +1,15 @@ | ||
43 | +/* { dg-do compile } */ | ||
44 | +/* { dg-require-effective-target arm_vfp_ok } */ | ||
45 | +/* { dg-options "-O2 -mfpu=vfp -mfloat-abi=softfp" } */ | ||
46 | + | ||
47 | +extern void baz (float); | ||
48 | + | ||
49 | +void | ||
50 | +foo (float *p, float a, int n) | ||
51 | +{ | ||
52 | + do | ||
53 | + bar (*--p + a); | ||
54 | + while (n--); | ||
55 | +} | ||
56 | + | ||
57 | +/* { dg-final { scan-assembler "fldmdbs" } } */ | ||
58 | |||
59 | === added file 'gcc/testsuite/gcc.target/arm/vfp-ldmiad.c' | ||
60 | --- old/gcc/testsuite/gcc.target/arm/vfp-ldmiad.c 1970-01-01 00:00:00 +0000 | ||
61 | +++ new/gcc/testsuite/gcc.target/arm/vfp-ldmiad.c 2010-08-05 15:37:24 +0000 | ||
62 | @@ -0,0 +1,15 @@ | ||
63 | +/* { dg-do compile } */ | ||
64 | +/* { dg-require-effective-target arm_vfp_ok } */ | ||
65 | +/* { dg-options "-O2 -mfpu=vfp -mfloat-abi=softfp" } */ | ||
66 | + | ||
67 | +extern void bar (double); | ||
68 | + | ||
69 | +void | ||
70 | +foo (double *p, double a, int n) | ||
71 | +{ | ||
72 | + do | ||
73 | + bar (*p++ + a); | ||
74 | + while (n--); | ||
75 | +} | ||
76 | + | ||
77 | +/* { dg-final { scan-assembler "fldmiad" } } */ | ||
78 | |||
79 | === added file 'gcc/testsuite/gcc.target/arm/vfp-ldmias.c' | ||
80 | --- old/gcc/testsuite/gcc.target/arm/vfp-ldmias.c 1970-01-01 00:00:00 +0000 | ||
81 | +++ new/gcc/testsuite/gcc.target/arm/vfp-ldmias.c 2010-08-05 15:37:24 +0000 | ||
82 | @@ -0,0 +1,15 @@ | ||
83 | +/* { dg-do compile } */ | ||
84 | +/* { dg-require-effective-target arm_vfp_ok } */ | ||
85 | +/* { dg-options "-O2 -mfpu=vfp -mfloat-abi=softfp" } */ | ||
86 | + | ||
87 | +extern void baz (float); | ||
88 | + | ||
89 | +void | ||
90 | +foo (float *p, float a, int n) | ||
91 | +{ | ||
92 | + do | ||
93 | + bar (*p++ + a); | ||
94 | + while (n--); | ||
95 | +} | ||
96 | + | ||
97 | +/* { dg-final { scan-assembler "fldmias" } } */ | ||
98 | |||
99 | === added file 'gcc/testsuite/gcc.target/arm/vfp-stmdbd.c' | ||
100 | --- old/gcc/testsuite/gcc.target/arm/vfp-stmdbd.c 1970-01-01 00:00:00 +0000 | ||
101 | +++ new/gcc/testsuite/gcc.target/arm/vfp-stmdbd.c 2010-08-05 15:37:24 +0000 | ||
102 | @@ -0,0 +1,14 @@ | ||
103 | +/* { dg-do compile } */ | ||
104 | +/* { dg-require-effective-target arm_vfp_ok } */ | ||
105 | +/* { dg-options "-O2 -mfpu=vfp -mfloat-abi=softfp" } */ | ||
106 | + | ||
107 | +void | ||
108 | +foo (double *p, double a, double b, int n) | ||
109 | +{ | ||
110 | + double c = a + b; | ||
111 | + do | ||
112 | + *--p = c; | ||
113 | + while (n--); | ||
114 | +} | ||
115 | + | ||
116 | +/* { dg-final { scan-assembler "fstmdbd" } } */ | ||
117 | |||
118 | === added file 'gcc/testsuite/gcc.target/arm/vfp-stmdbs.c' | ||
119 | --- old/gcc/testsuite/gcc.target/arm/vfp-stmdbs.c 1970-01-01 00:00:00 +0000 | ||
120 | +++ new/gcc/testsuite/gcc.target/arm/vfp-stmdbs.c 2010-08-05 15:37:24 +0000 | ||
121 | @@ -0,0 +1,14 @@ | ||
122 | +/* { dg-do compile } */ | ||
123 | +/* { dg-require-effective-target arm_vfp_ok } */ | ||
124 | +/* { dg-options "-O2 -mfpu=vfp -mfloat-abi=softfp" } */ | ||
125 | + | ||
126 | +void | ||
127 | +foo (float *p, float a, float b, int n) | ||
128 | +{ | ||
129 | + float c = a + b; | ||
130 | + do | ||
131 | + *--p = c; | ||
132 | + while (n--); | ||
133 | +} | ||
134 | + | ||
135 | +/* { dg-final { scan-assembler "fstmdbs" } } */ | ||
136 | |||
137 | === added file 'gcc/testsuite/gcc.target/arm/vfp-stmiad.c' | ||
138 | --- old/gcc/testsuite/gcc.target/arm/vfp-stmiad.c 1970-01-01 00:00:00 +0000 | ||
139 | +++ new/gcc/testsuite/gcc.target/arm/vfp-stmiad.c 2010-08-05 15:37:24 +0000 | ||
140 | @@ -0,0 +1,14 @@ | ||
141 | +/* { dg-do compile } */ | ||
142 | +/* { dg-require-effective-target arm_vfp_ok } */ | ||
143 | +/* { dg-options "-O2 -mfpu=vfp -mfloat-abi=softfp" } */ | ||
144 | + | ||
145 | +void | ||
146 | +foo (double *p, double a, double b, int n) | ||
147 | +{ | ||
148 | + double c = a + b; | ||
149 | + do | ||
150 | + *p++ = c; | ||
151 | + while (n--); | ||
152 | +} | ||
153 | + | ||
154 | +/* { dg-final { scan-assembler "fstmiad" } } */ | ||
155 | |||
156 | === added file 'gcc/testsuite/gcc.target/arm/vfp-stmias.c' | ||
157 | --- old/gcc/testsuite/gcc.target/arm/vfp-stmias.c 1970-01-01 00:00:00 +0000 | ||
158 | +++ new/gcc/testsuite/gcc.target/arm/vfp-stmias.c 2010-08-05 15:37:24 +0000 | ||
159 | @@ -0,0 +1,14 @@ | ||
160 | +/* { dg-do compile } */ | ||
161 | +/* { dg-require-effective-target arm_vfp_ok } */ | ||
162 | +/* { dg-options "-O2 -mfpu=vfp -mfloat-abi=softfp" } */ | ||
163 | + | ||
164 | +void | ||
165 | +foo (float *p, float a, float b, int n) | ||
166 | +{ | ||
167 | + float c = a + b; | ||
168 | + do | ||
169 | + *p++ = c; | ||
170 | + while (n--); | ||
171 | +} | ||
172 | + | ||
173 | +/* { dg-final { scan-assembler "fstmias" } } */ | ||
174 | |||