diff options
author | Khem Raj <raj.khem@gmail.com> | 2015-07-24 13:11:28 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-27 12:28:00 +0100 |
commit | fd91e710774d91bc5ff2902b7d9ec665c532dab4 (patch) | |
tree | 2a40513f24b430062b06b5de4cd29b598297bec5 /meta/recipes-devtools/gcc/gcc-5.2/0030-Enable-SPE-AltiVec-generation-on-powepc-linux-target.patch | |
parent | 53caeebc716ae9caf6ca08fd46dc58232571cd38 (diff) | |
download | poky-fd91e710774d91bc5ff2902b7d9ec665c532dab4.tar.gz |
gcc5: Upgrade from 5.1 to 5.2
This is second bugfix release in gcc5 series
All backported patches are dropped
no other patches needed any rework
(From OE-Core rev: 2a212e56a814e5dc8a8bae4974b91109ed0486ef)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-5.2/0030-Enable-SPE-AltiVec-generation-on-powepc-linux-target.patch')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-5.2/0030-Enable-SPE-AltiVec-generation-on-powepc-linux-target.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-5.2/0030-Enable-SPE-AltiVec-generation-on-powepc-linux-target.patch b/meta/recipes-devtools/gcc/gcc-5.2/0030-Enable-SPE-AltiVec-generation-on-powepc-linux-target.patch new file mode 100644 index 0000000000..873dca9716 --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-5.2/0030-Enable-SPE-AltiVec-generation-on-powepc-linux-target.patch | |||
@@ -0,0 +1,44 @@ | |||
1 | From 3d870a184c05df1338db1870301c4144ba99fc3d Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexandru-Cezar Sardan <alexandru.sardan@freescale.com> | ||
3 | Date: Wed, 5 Feb 2014 16:52:31 +0200 | ||
4 | Subject: [PATCH 30/35] Enable SPE & AltiVec generation on powepc*linux target | ||
5 | |||
6 | When is configured with --target=powerpc-linux, the resulting GCC will | ||
7 | not be able to generate code for SPE targets (e500v1/v2). | ||
8 | GCC configured with --target=powerpc-linuxspe will not be able to | ||
9 | generate AltiVec instructions (for e6500). | ||
10 | This patch modifies the configured file such that SPE or AltiVec code | ||
11 | can be generated when gcc is configured with --target=powerpc-linux. | ||
12 | The ABI and speciffic instructions can be selected through the | ||
13 | "-mabi=spe or -mabi=altivec" and the "-mspe or -maltivec" parameters. | ||
14 | |||
15 | Upstream-Status: Inappropriate [configuration] | ||
16 | |||
17 | Signed-off-by: Alexandru-Cezar Sardan <alexandru.sardan@freescale.com> | ||
18 | --- | ||
19 | gcc/config.gcc | 9 ++++++++- | ||
20 | 1 file changed, 8 insertions(+), 1 deletion(-) | ||
21 | |||
22 | diff --git a/gcc/config.gcc b/gcc/config.gcc | ||
23 | index b155744..0541b8a 100644 | ||
24 | --- a/gcc/config.gcc | ||
25 | +++ b/gcc/config.gcc | ||
26 | @@ -2337,7 +2337,14 @@ powerpc-*-rtems*) | ||
27 | tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-rtems rs6000/t-ppccomm" | ||
28 | ;; | ||
29 | powerpc*-*-linux*) | ||
30 | - tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h freebsd-spec.h rs6000/sysv4.h" | ||
31 | + case ${target} in | ||
32 | + powerpc*-*-linux*spe* | powerpc*-*-linux*altivec*) | ||
33 | + tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h freebsd-spec.h rs6000/sysv4.h" | ||
34 | + ;; | ||
35 | + *) | ||
36 | + tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h freebsd-spec.h rs6000/sysv4.h rs6000/linuxaltivec.h rs6000/linuxspe.h rs6000/e500.h" | ||
37 | + ;; | ||
38 | + esac | ||
39 | extra_options="${extra_options} rs6000/sysv4.opt" | ||
40 | tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-ppccomm" | ||
41 | extra_objs="$extra_objs rs6000-linux.o" | ||
42 | -- | ||
43 | 2.1.4 | ||
44 | |||