diff options
author | Khem Raj <raj.khem@gmail.com> | 2010-09-24 13:49:18 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2010-09-30 13:15:05 -0700 |
commit | 91aeba1aed9efd7e58f18e079ab1e7d622fa8f65 (patch) | |
tree | 65cbb4836fac98347a99efed8e11cb482940e56f /recipes/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99367.patch | |
parent | a820865e1189521dec861508df9cee9d37e82778 (diff) | |
download | openembedded-91aeba1aed9efd7e58f18e079ab1e7d622fa8f65.tar.gz |
gcc-4.5: Import Linaro patches
* Tested gcc on efikamx.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Diffstat (limited to 'recipes/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99367.patch')
-rw-r--r-- | recipes/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99367.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/recipes/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99367.patch b/recipes/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99367.patch new file mode 100644 index 0000000000..2d572b1bb0 --- /dev/null +++ b/recipes/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99367.patch @@ -0,0 +1,49 @@ +2010-08-18 Jie Zhang <jie@codesourcery.com> + + Backport from mainline: + + gcc/testsuite/ + 2010-08-18 Jie Zhang <jie@codesourcery.com> + * gcc.dg/builtin-apply2.c (STACK_ARGUMENTS_SIZE): Define to + 20 if __ARM_PCS is defined otherwise 64. + (bar): Use STACK_ARGUMENTS_SIZE for the third argument + instead of hard coded 64. + + 2010-08-13 Jie Zhang <jie@codesourcery.com> + + Backport from mainline: + +=== modified file 'gcc/testsuite/gcc.dg/builtin-apply2.c' +--- old/gcc/testsuite/gcc.dg/builtin-apply2.c 2009-08-06 13:27:45 +0000 ++++ new/gcc/testsuite/gcc.dg/builtin-apply2.c 2010-08-23 13:59:02 +0000 +@@ -8,10 +8,19 @@ + /* Verify that __builtin_apply behaves correctly on targets + with pre-pushed arguments (e.g. SPARC). */ + +- ++ + + #define INTEGER_ARG 5 + ++#ifdef __ARM_PCS ++/* For Base AAPCS, NAME is passed in r0. D is passed in r2 and r3. ++ E, F and G are passed on stack. So the size of the stack argument ++ data is 20. */ ++#define STACK_ARGUMENTS_SIZE 20 ++#else ++#define STACK_ARGUMENTS_SIZE 64 ++#endif ++ + extern void abort(void); + + void foo(char *name, double d, double e, double f, int g) +@@ -22,7 +31,7 @@ + + void bar(char *name, ...) + { +- __builtin_apply(foo, __builtin_apply_args(), 64); ++ __builtin_apply(foo, __builtin_apply_args(), STACK_ARGUMENTS_SIZE); + } + + int main(void) + |