From 8bf31117bc2036dc64e410ecd603ac3c2dbfb4f8 Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Sat, 16 Sep 2017 12:19:26 -0700 Subject: [PATCH] Propagate xtensa fix to Linaro versions Signed-off-by: Alexey Neyman --- .../875-xtensa-fix-PR-target-82181.patch | 31 +++++++++++++++++++ .../876-xtensa-fix-PR-target-82181.patch | 31 +++++++++++++++++++ .../880-xtensa-fix-PR-target-82181.patch | 31 +++++++++++++++++++ .../870-xtensa-fix-PR-target-82181.patch | 31 +++++++++++++++++++ .../870-xtensa-fix-PR-target-82181.patch | 31 +++++++++++++++++++ 5 files changed, 155 insertions(+) create mode 100644 packages/gcc-linaro/4.8-2015.06/875-xtensa-fix-PR-target-82181.patch create mode 100644 packages/gcc-linaro/4.9-2017.01/876-xtensa-fix-PR-target-82181.patch create mode 100644 packages/gcc-linaro/5.4-2017.05/880-xtensa-fix-PR-target-82181.patch create mode 100644 packages/gcc-linaro/6.3-2017.05/870-xtensa-fix-PR-target-82181.patch create mode 100644 packages/gcc-linaro/7.1-2017.05/870-xtensa-fix-PR-target-82181.patch diff --git a/packages/gcc-linaro/4.8-2015.06/875-xtensa-fix-PR-target-82181.patch b/packages/gcc-linaro/4.8-2015.06/875-xtensa-fix-PR-target-82181.patch new file mode 100644 index 00000000..0a011a6b --- /dev/null +++ b/packages/gcc-linaro/4.8-2015.06/875-xtensa-fix-PR-target-82181.patch @@ -0,0 +1,31 @@ +From 91f3a82de1e43362a0ab2cb2e1fd6b89c5a00525 Mon Sep 17 00:00:00 2001 +From: jcmvbkbc +Date: Mon, 11 Sep 2017 21:53:38 +0000 +Subject: [PATCH] xtensa: fix PR target/82181 + +2017-09-11 Max Filippov +gcc/ + Backport from mainline + * config/xtensa/xtensa.c (xtensa_mem_offset): Check that both + words of DImode object are reachable by xtensa_uimm8x4 access. + +Signed-off-by: Max Filippov +--- + gcc/config/xtensa/xtensa.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c +index 466adb5103ca..3ba2965ecf5e 100644 +--- a/gcc/config/xtensa/xtensa.c ++++ b/gcc/config/xtensa/xtensa.c +@@ -599,6 +599,7 @@ xtensa_mem_offset (unsigned v, enum machine_mode mode) + case HImode: + return xtensa_uimm8x2 (v); + ++ case DImode: + case DFmode: + return (xtensa_uimm8x4 (v) && xtensa_uimm8x4 (v + 4)); + +-- +2.1.4 + diff --git a/packages/gcc-linaro/4.9-2017.01/876-xtensa-fix-PR-target-82181.patch b/packages/gcc-linaro/4.9-2017.01/876-xtensa-fix-PR-target-82181.patch new file mode 100644 index 00000000..a613bb38 --- /dev/null +++ b/packages/gcc-linaro/4.9-2017.01/876-xtensa-fix-PR-target-82181.patch @@ -0,0 +1,31 @@ +From c8fad280eb4cbfe2711e6715aed5749ff400bb80 Mon Sep 17 00:00:00 2001 +From: jcmvbkbc +Date: Mon, 11 Sep 2017 21:53:38 +0000 +Subject: [PATCH] xtensa: fix PR target/82181 + +2017-09-11 Max Filippov +gcc/ + Backport from mainline + * config/xtensa/xtensa.c (xtensa_mem_offset): Check that both + words of DImode object are reachable by xtensa_uimm8x4 access. + +Signed-off-by: Max Filippov +--- + gcc/config/xtensa/xtensa.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c +index 3c0096113775..3eb4db85b971 100644 +--- a/gcc/config/xtensa/xtensa.c ++++ b/gcc/config/xtensa/xtensa.c +@@ -612,6 +612,7 @@ xtensa_mem_offset (unsigned v, enum machine_mode mode) + case HImode: + return xtensa_uimm8x2 (v); + ++ case DImode: + case DFmode: + return (xtensa_uimm8x4 (v) && xtensa_uimm8x4 (v + 4)); + +-- +2.1.4 + diff --git a/packages/gcc-linaro/5.4-2017.05/880-xtensa-fix-PR-target-82181.patch b/packages/gcc-linaro/5.4-2017.05/880-xtensa-fix-PR-target-82181.patch new file mode 100644 index 00000000..b8c2263e --- /dev/null +++ b/packages/gcc-linaro/5.4-2017.05/880-xtensa-fix-PR-target-82181.patch @@ -0,0 +1,31 @@ +From 82314225ca735a726d9e14dd69354814240419e1 Mon Sep 17 00:00:00 2001 +From: jcmvbkbc +Date: Mon, 11 Sep 2017 21:53:38 +0000 +Subject: [PATCH] xtensa: fix PR target/82181 + +2017-09-11 Max Filippov +gcc/ + Backport from mainline + * config/xtensa/xtensa.c (xtensa_mem_offset): Check that both + words of DImode object are reachable by xtensa_uimm8x4 access. + +Signed-off-by: Max Filippov +--- + gcc/config/xtensa/xtensa.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c +index 8e62d631bce0..a30aa1bcfc33 100644 +--- a/gcc/config/xtensa/xtensa.c ++++ b/gcc/config/xtensa/xtensa.c +@@ -637,6 +637,7 @@ xtensa_mem_offset (unsigned v, machine_mode mode) + case HImode: + return xtensa_uimm8x2 (v); + ++ case DImode: + case DFmode: + return (xtensa_uimm8x4 (v) && xtensa_uimm8x4 (v + 4)); + +-- +2.1.4 + diff --git a/packages/gcc-linaro/6.3-2017.05/870-xtensa-fix-PR-target-82181.patch b/packages/gcc-linaro/6.3-2017.05/870-xtensa-fix-PR-target-82181.patch new file mode 100644 index 00000000..5fe38414 --- /dev/null +++ b/packages/gcc-linaro/6.3-2017.05/870-xtensa-fix-PR-target-82181.patch @@ -0,0 +1,31 @@ +From 3bc2ee6886f1619bc6a2257a0775142526b1a57a Mon Sep 17 00:00:00 2001 +From: jcmvbkbc +Date: Mon, 11 Sep 2017 21:53:38 +0000 +Subject: [PATCH] xtensa: fix PR target/82181 + +2017-09-11 Max Filippov +gcc/ + Backport from mainline + * config/xtensa/xtensa.c (xtensa_mem_offset): Check that both + words of DImode object are reachable by xtensa_uimm8x4 access. + +Signed-off-by: Max Filippov +--- + gcc/config/xtensa/xtensa.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c +index 2bdf5ccef979..92fdeb08046d 100644 +--- a/gcc/config/xtensa/xtensa.c ++++ b/gcc/config/xtensa/xtensa.c +@@ -601,6 +601,7 @@ xtensa_mem_offset (unsigned v, machine_mode mode) + case HImode: + return xtensa_uimm8x2 (v); + ++ case DImode: + case DFmode: + return (xtensa_uimm8x4 (v) && xtensa_uimm8x4 (v + 4)); + +-- +2.1.4 + diff --git a/packages/gcc-linaro/7.1-2017.05/870-xtensa-fix-PR-target-82181.patch b/packages/gcc-linaro/7.1-2017.05/870-xtensa-fix-PR-target-82181.patch new file mode 100644 index 00000000..7ac7cd95 --- /dev/null +++ b/packages/gcc-linaro/7.1-2017.05/870-xtensa-fix-PR-target-82181.patch @@ -0,0 +1,31 @@ +From 3ed0c49a8d52e88648c7bb9f21a204b23595a6a9 Mon Sep 17 00:00:00 2001 +From: jcmvbkbc +Date: Mon, 11 Sep 2017 21:53:38 +0000 +Subject: [PATCH] xtensa: fix PR target/82181 + +2017-09-11 Max Filippov +gcc/ + Backport from mainline + * config/xtensa/xtensa.c (xtensa_mem_offset): Check that both + words of DImode object are reachable by xtensa_uimm8x4 access. + +Signed-off-by: Max Filippov +--- + gcc/config/xtensa/xtensa.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c +index 25e4a2894c3b..8c404187107b 100644 +--- a/gcc/config/xtensa/xtensa.c ++++ b/gcc/config/xtensa/xtensa.c +@@ -605,6 +605,7 @@ xtensa_mem_offset (unsigned v, machine_mode mode) + case HImode: + return xtensa_uimm8x2 (v); + ++ case DImode: + case DFmode: + return (xtensa_uimm8x4 (v) && xtensa_uimm8x4 (v + 4)); + +-- +2.1.4 +