diff options
author | Khem Raj <raj.khem@gmail.com> | 2014-03-19 15:20:56 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-05-06 17:59:15 +0100 |
commit | 3d094751c8712f6805f9303c75471ccd26be304e (patch) | |
tree | ad71efcdabe984882e814e5d775ba743adadb1c7 /meta/recipes-devtools/gcc/gcc-4.9/0049-Enable-SPE-AltiVec-generation-on-powepc-linux-target.patch | |
parent | 7b78c364b7de901f97cd8dbe56d5e02f545bf3d3 (diff) | |
download | poky-3d094751c8712f6805f9303c75471ccd26be304e.tar.gz |
gcc: Add 4.9 recipes
(From OE-Core rev: f051216ea373f166016b15bbd2a2a6f136430372)
(From OE-Core rev: d4573cb750bfde488682244d30266dfe675bac06)
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-4.9/0049-Enable-SPE-AltiVec-generation-on-powepc-linux-target.patch')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.9/0049-Enable-SPE-AltiVec-generation-on-powepc-linux-target.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.9/0049-Enable-SPE-AltiVec-generation-on-powepc-linux-target.patch b/meta/recipes-devtools/gcc/gcc-4.9/0049-Enable-SPE-AltiVec-generation-on-powepc-linux-target.patch new file mode 100644 index 0000000000..b98f8ff01d --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.9/0049-Enable-SPE-AltiVec-generation-on-powepc-linux-target.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | From 9e0e19eac2562f73858602fe26e2044eb8b20c47 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] 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 | 7 ++++++- | ||
20 | 1 file changed, 6 insertions(+), 1 deletion(-) | ||
21 | |||
22 | diff --git a/gcc/config.gcc b/gcc/config.gcc | ||
23 | index cb7a94e..d392c2b 100644 | ||
24 | --- a/gcc/config.gcc | ||
25 | +++ b/gcc/config.gcc | ||
26 | @@ -2068,7 +2068,12 @@ powerpc-*-rtems*) | ||
27 | tmake_file="rs6000/t-fprules rs6000/t-rtems t-rtems rs6000/t-ppccomm" | ||
28 | ;; | ||
29 | powerpc*-*-linux*) | ||
30 | - tm_file="${tm_file} dbxelf.h elfos.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 freebsd-spec.h rs6000/sysv4.h" ;; | ||
34 | + *) | ||
35 | + tm_file="${tm_file} dbxelf.h elfos.h freebsd-spec.h rs6000/sysv4.h rs6000/linuxaltivec.h rs6000/linuxspe.h rs6000/e500.h" ;; | ||
36 | + esac | ||
37 | extra_options="${extra_options} rs6000/sysv4.opt" | ||
38 | tmake_file="rs6000/t-fprules rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm" | ||
39 | case ${target} in | ||
40 | -- | ||
41 | 1.7.9.5 | ||
42 | |||