summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-6.4/backport/0010-i386-Pass-INVALID_REGNUM-as-invalid-register-number.patch
diff options
context:
space:
mode:
authorJuro Bystricky <juro.bystricky@intel.com>2018-03-01 10:32:43 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-03-14 07:55:02 -0700
commitdc786f9841ea687fa46ee3f03a1a39da441336b3 (patch)
tree8153d5168ab784023eeb26c1e6e363826d300b19 /meta/recipes-devtools/gcc/gcc-6.4/backport/0010-i386-Pass-INVALID_REGNUM-as-invalid-register-number.patch
parentaa072d0162e51340b065092a440b775061911699 (diff)
downloadpoky-dc786f9841ea687fa46ee3f03a1a39da441336b3.tar.gz
gcc6: Backport few more patches
Backported series of patches from https://github.com/hjl-tools/gcc.git branch /hjl/indirect/gcc-6-branch/master which contains an IA patch series for security related issues (From OE-Core rev: 8283b4ee5290843b1033ca496759fce6229b8f91) Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-6.4/backport/0010-i386-Pass-INVALID_REGNUM-as-invalid-register-number.patch')
-rw-r--r--meta/recipes-devtools/gcc/gcc-6.4/backport/0010-i386-Pass-INVALID_REGNUM-as-invalid-register-number.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/backport/0010-i386-Pass-INVALID_REGNUM-as-invalid-register-number.patch b/meta/recipes-devtools/gcc/gcc-6.4/backport/0010-i386-Pass-INVALID_REGNUM-as-invalid-register-number.patch
new file mode 100644
index 0000000000..080d741983
--- /dev/null
+++ b/meta/recipes-devtools/gcc/gcc-6.4/backport/0010-i386-Pass-INVALID_REGNUM-as-invalid-register-number.patch
@@ -0,0 +1,46 @@
1From c4300d9ad683e693c90d02d4f1b13183bf2d4acc Mon Sep 17 00:00:00 2001
2From: hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
3Date: Fri, 2 Feb 2018 16:47:02 +0000
4Subject: [PATCH 10/12] i386: Pass INVALID_REGNUM as invalid register number
5
6 Backport from mainline
7 * config/i386/i386.c (ix86_output_function_return): Pass
8 INVALID_REGNUM, instead of -1, as invalid register number to
9 indirect_thunk_name and output_indirect_thunk.
10
11git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@257341 138bc75d-0d04-0410-961f-82ee72b054a4
12
13Upstream-Status: Pending
14
15Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
16
17---
18 gcc/config/i386/i386.c | 5 +++--
19 1 file changed, 3 insertions(+), 2 deletions(-)
20
21diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
22index 4012657..66502ee 100644
23--- a/gcc/config/i386/i386.c
24+++ b/gcc/config/i386/i386.c
25@@ -28056,7 +28056,8 @@ ix86_output_function_return (bool long_p)
26 {
27 bool need_thunk = (cfun->machine->function_return_type
28 == indirect_branch_thunk);
29- indirect_thunk_name (thunk_name, -1, need_bnd_p, true);
30+ indirect_thunk_name (thunk_name, INVALID_REGNUM, need_bnd_p,
31+ true);
32 if (need_bnd_p)
33 {
34 indirect_thunk_bnd_needed |= need_thunk;
35@@ -28069,7 +28070,7 @@ ix86_output_function_return (bool long_p)
36 }
37 }
38 else
39- output_indirect_thunk (need_bnd_p, -1);
40+ output_indirect_thunk (need_bnd_p, INVALID_REGNUM);
41
42 return "";
43 }
44--
452.7.4
46