summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99367.patch
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2010-11-02 22:03:58 +0100
committerKoen Kooi <koen@dominion.thruhere.net>2010-11-02 22:12:02 +0100
commitbe10a6b1321f250b1034c7d9d0a8ef18b296eef1 (patch)
tree9249025cbfbfbee4cc430d62b27f75301dd4dfde /recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99367.patch
parent93b28937ac67ba46d65f55637e42552e224aa7e2 (diff)
downloadmeta-openembedded-be10a6b1321f250b1034c7d9d0a8ef18b296eef1.tar.gz
angstrom-layers: meta-openembedded: replace poky gcc 4.5 sources with OE ones
This needs further investigation, but for now we can get the tested sources into the poky gcc harness Signed-off-by: Koen Kooi <k-kooi@ti.com>
Diffstat (limited to 'recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99367.patch')
-rw-r--r--recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99367.patch49
1 files changed, 49 insertions, 0 deletions
diff --git a/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99367.patch b/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99367.patch
new file mode 100644
index 0000000000..2d572b1bb0
--- /dev/null
+++ b/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99367.patch
@@ -0,0 +1,49 @@
12010-08-18 Jie Zhang <jie@codesourcery.com>
2
3 Backport from mainline:
4
5 gcc/testsuite/
6 2010-08-18 Jie Zhang <jie@codesourcery.com>
7 * gcc.dg/builtin-apply2.c (STACK_ARGUMENTS_SIZE): Define to
8 20 if __ARM_PCS is defined otherwise 64.
9 (bar): Use STACK_ARGUMENTS_SIZE for the third argument
10 instead of hard coded 64.
11
12 2010-08-13 Jie Zhang <jie@codesourcery.com>
13
14 Backport from mainline:
15
16=== modified file 'gcc/testsuite/gcc.dg/builtin-apply2.c'
17--- old/gcc/testsuite/gcc.dg/builtin-apply2.c 2009-08-06 13:27:45 +0000
18+++ new/gcc/testsuite/gcc.dg/builtin-apply2.c 2010-08-23 13:59:02 +0000
19@@ -8,10 +8,19 @@
20 /* Verify that __builtin_apply behaves correctly on targets
21 with pre-pushed arguments (e.g. SPARC). */
22
23-
24+
25
26 #define INTEGER_ARG 5
27
28+#ifdef __ARM_PCS
29+/* For Base AAPCS, NAME is passed in r0. D is passed in r2 and r3.
30+ E, F and G are passed on stack. So the size of the stack argument
31+ data is 20. */
32+#define STACK_ARGUMENTS_SIZE 20
33+#else
34+#define STACK_ARGUMENTS_SIZE 64
35+#endif
36+
37 extern void abort(void);
38
39 void foo(char *name, double d, double e, double f, int g)
40@@ -22,7 +31,7 @@
41
42 void bar(char *name, ...)
43 {
44- __builtin_apply(foo, __builtin_apply_args(), 64);
45+ __builtin_apply(foo, __builtin_apply_args(), STACK_ARGUMENTS_SIZE);
46 }
47
48 int main(void)
49