All of lore.kernel.org
 help / color / mirror / Atom feed
* [pyro][PATCH 1/2] Revert "gcc: Remove patch causing ICE on x86_64 valgrind compile"
@ 2018-05-11  8:10 André Draszik
  2018-05-11  8:10 ` [pyro][PATCH 2/2] gcc: Remove patch causing ICE on x86_64 valgrind compile (on x86-64 only) André Draszik
  0 siblings, 1 reply; 5+ messages in thread
From: André Draszik @ 2018-05-11  8:10 UTC (permalink / raw)
  To: openembedded-core

From: André Draszik <andre.draszik@jci.com>

This reverts commit f76ee525a75dd6e443743bf723ad4511707c7f49.

With the patch removed we otherwise get QEMU (mipsel) segfaults:
--- SIGSEGV {si_signo=SIGSEGV, si_code=1, si_addr = 0x000d4e40} ---
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault

Signed-off-by: André Draszik <andre.draszik@jci.com>
---
 meta/recipes-devtools/gcc/gcc-6.4.inc              |  1 +
 ...-relax-the-restriction-on-subreg-reload-f.patch | 51 ++++++++++++++++++++++
 2 files changed, 52 insertions(+)
 create mode 100644 meta/recipes-devtools/gcc/gcc-6.4/0056-LRA-PR70904-relax-the-restriction-on-subreg-reload-f.patch

diff --git a/meta/recipes-devtools/gcc/gcc-6.4.inc b/meta/recipes-devtools/gcc/gcc-6.4.inc
index daa9e42af8..1803917f01 100644
--- a/meta/recipes-devtools/gcc/gcc-6.4.inc
+++ b/meta/recipes-devtools/gcc/gcc-6.4.inc
@@ -81,6 +81,7 @@ SRC_URI = "\
            file://0048-sync-gcc-stddef.h-with-musl.patch \
            file://0054_all_nopie-all-flags.patch \
            file://0055-unwind_h-glibc26.patch \
+           file://0056-LRA-PR70904-relax-the-restriction-on-subreg-reload-f.patch \
            ${BACKPORTS} \
 "
 BACKPORTS = "\
diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0056-LRA-PR70904-relax-the-restriction-on-subreg-reload-f.patch b/meta/recipes-devtools/gcc/gcc-6.4/0056-LRA-PR70904-relax-the-restriction-on-subreg-reload-f.patch
new file mode 100644
index 0000000000..231f147619
--- /dev/null
+++ b/meta/recipes-devtools/gcc/gcc-6.4/0056-LRA-PR70904-relax-the-restriction-on-subreg-reload-f.patch
@@ -0,0 +1,51 @@
+From a582b0a53d1dc8604a201348b99ca8de48784e7e Mon Sep 17 00:00:00 2001
+From: jiwang <jiwang@138bc75d-0d04-0410-961f-82ee72b054a4>
+Date: Thu, 12 May 2016 17:00:52 +0000
+Subject: [PATCH] [LRA] PR70904, relax the restriction on subreg reload for
+ wide mode
+
+2016-05-12  Jiong Wang  <jiong.wang@arm.com>
+
+gcc/
+  PR rtl-optimization/70904
+  * lra-constraint.c (process_addr_reg): Relax the restriction on
+  subreg reload for wide mode.
+
+git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@236181 138bc75d-0d04-0410-961f-82ee72b054a4
+---
+Upstream-Status: Backport
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+
+ gcc/lra-constraints.c | 16 +++++++++++++++-
+ 1 file changed, 15 insertions(+), 1 deletion(-)
+
+diff --git a/gcc/lra-constraints.c b/gcc/lra-constraints.c
+index f96fd458e23..73fb72a2ea5 100644
+--- a/gcc/lra-constraints.c
++++ b/gcc/lra-constraints.c
+@@ -1326,7 +1326,21 @@ process_addr_reg (rtx *loc, bool check_only_p, rtx_insn **before, rtx_insn **aft
+ 
+   subreg_p = GET_CODE (*loc) == SUBREG;
+   if (subreg_p)
+-    loc = &SUBREG_REG (*loc);
++    {
++      reg = SUBREG_REG (*loc);
++      mode = GET_MODE (reg);
++
++      /* For mode with size bigger than ptr_mode, there unlikely to be "mov"
++	 between two registers with different classes, but there normally will
++	 be "mov" which transfers element of vector register into the general
++	 register, and this normally will be a subreg which should be reloaded
++	 as a whole.  This is particularly likely to be triggered when
++	 -fno-split-wide-types specified.  */
++      if (in_class_p (reg, cl, &new_class)
++	  || GET_MODE_SIZE (mode) <= GET_MODE_SIZE (ptr_mode))
++       loc = &SUBREG_REG (*loc);
++    }
++
+   reg = *loc;
+   mode = GET_MODE (reg);
+   if (! REG_P (reg))
+-- 
+2.14.2
+
-- 
2.16.2



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [pyro][PATCH 2/2] gcc: Remove patch causing ICE on x86_64 valgrind compile (on x86-64 only)
  2018-05-11  8:10 [pyro][PATCH 1/2] Revert "gcc: Remove patch causing ICE on x86_64 valgrind compile" André Draszik
@ 2018-05-11  8:10 ` André Draszik
  2018-05-11 10:49   ` Peter Kjellerstedt
                     ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: André Draszik @ 2018-05-11  8:10 UTC (permalink / raw)
  To: openembedded-core

From: André Draszik <andre.draszik@jci.com>

This is similar to commit f76ee525a75d, but instead of disabling
the patch on all builds, we only remove it for x86-64 builds, as
the original change's commit message mentined issues with this
patch applied on that architecture only.

Signed-off-by: André Draszik <andre.draszik@jci.com>
---
 meta/recipes-devtools/gcc/gcc-6.4.inc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/gcc/gcc-6.4.inc b/meta/recipes-devtools/gcc/gcc-6.4.inc
index 1803917f01..9a23863022 100644
--- a/meta/recipes-devtools/gcc/gcc-6.4.inc
+++ b/meta/recipes-devtools/gcc/gcc-6.4.inc
@@ -81,9 +81,11 @@ SRC_URI = "\
            file://0048-sync-gcc-stddef.h-with-musl.patch \
            file://0054_all_nopie-all-flags.patch \
            file://0055-unwind_h-glibc26.patch \
-           file://0056-LRA-PR70904-relax-the-restriction-on-subreg-reload-f.patch \
+           ${LRA_PR70904_PATCH} \
            ${BACKPORTS} \
 "
+LRA_PR70904_PATCH = "file://0056-LRA-PR70904-relax-the-restriction-on-subreg-reload-f.patch"
+LRA_PR70904_PATCH_x86-64 = ""
 BACKPORTS = "\
            file://CVE-2016-6131.patch \
            file://0057-ARM-PR-82445-suppress-32-bit-aligned-ldrd-strd-peeph.patch \
-- 
2.16.2



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [pyro][PATCH 2/2] gcc: Remove patch causing ICE on x86_64 valgrind compile (on x86-64 only)
  2018-05-11  8:10 ` [pyro][PATCH 2/2] gcc: Remove patch causing ICE on x86_64 valgrind compile (on x86-64 only) André Draszik
@ 2018-05-11 10:49   ` Peter Kjellerstedt
  2018-05-11 12:50   ` [pyro][PATCH v2 " André Draszik
  2018-05-11 18:01   ` [pyro][PATCH " Khem Raj
  2 siblings, 0 replies; 5+ messages in thread
From: Peter Kjellerstedt @ 2018-05-11 10:49 UTC (permalink / raw)
  To: André Draszik, openembedded-core

> -----Original Message-----
> From: openembedded-core-bounces@lists.openembedded.org
> [mailto:openembedded-core-bounces@lists.openembedded.org] On Behalf Of
> André Draszik
> Sent: den 11 maj 2018 10:10
> To: openembedded-core@lists.openembedded.org
> Subject: [OE-core] [pyro][PATCH 2/2] gcc: Remove patch causing ICE on
> x86_64 valgrind compile (on x86-64 only)
> 
> From: André Draszik <andre.draszik@jci.com>
> 
> This is similar to commit f76ee525a75d, but instead of disabling
> the patch on all builds, we only remove it for x86-64 builds, as
> the original change's commit message mentined issues with this

Change "mentined" to "mentioned".

> patch applied on that architecture only.
> 
> Signed-off-by: André Draszik <andre.draszik@jci.com>

//Peter


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [pyro][PATCH v2 2/2] gcc: Remove patch causing ICE on x86_64 valgrind compile (on x86-64 only)
  2018-05-11  8:10 ` [pyro][PATCH 2/2] gcc: Remove patch causing ICE on x86_64 valgrind compile (on x86-64 only) André Draszik
  2018-05-11 10:49   ` Peter Kjellerstedt
@ 2018-05-11 12:50   ` André Draszik
  2018-05-11 18:01   ` [pyro][PATCH " Khem Raj
  2 siblings, 0 replies; 5+ messages in thread
From: André Draszik @ 2018-05-11 12:50 UTC (permalink / raw)
  To: openembedded-core

From: André Draszik <andre.draszik@jci.com>

This is similar to commit f76ee525a75d, but instead of disabling
the patch on all builds, we only remove it for x86-64 builds, as
the original change's commit message mentioned issues with this
patch applied on that architecture only.

Signed-off-by: André Draszik <andre.draszik@jci.com>
---
 meta/recipes-devtools/gcc/gcc-6.4.inc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/gcc/gcc-6.4.inc b/meta/recipes-devtools/gcc/gcc-6.4.inc
index 1803917f01..9a23863022 100644
--- a/meta/recipes-devtools/gcc/gcc-6.4.inc
+++ b/meta/recipes-devtools/gcc/gcc-6.4.inc
@@ -81,9 +81,11 @@ SRC_URI = "\
            file://0048-sync-gcc-stddef.h-with-musl.patch \
            file://0054_all_nopie-all-flags.patch \
            file://0055-unwind_h-glibc26.patch \
-           file://0056-LRA-PR70904-relax-the-restriction-on-subreg-reload-f.patch \
+           ${LRA_PR70904_PATCH} \
            ${BACKPORTS} \
 "
+LRA_PR70904_PATCH = "file://0056-LRA-PR70904-relax-the-restriction-on-subreg-reload-f.patch"
+LRA_PR70904_PATCH_x86-64 = ""
 BACKPORTS = "\
            file://CVE-2016-6131.patch \
            file://0057-ARM-PR-82445-suppress-32-bit-aligned-ldrd-strd-peeph.patch \
-- 
2.16.2



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [pyro][PATCH 2/2] gcc: Remove patch causing ICE on x86_64 valgrind compile (on x86-64 only)
  2018-05-11  8:10 ` [pyro][PATCH 2/2] gcc: Remove patch causing ICE on x86_64 valgrind compile (on x86-64 only) André Draszik
  2018-05-11 10:49   ` Peter Kjellerstedt
  2018-05-11 12:50   ` [pyro][PATCH v2 " André Draszik
@ 2018-05-11 18:01   ` Khem Raj
  2 siblings, 0 replies; 5+ messages in thread
From: Khem Raj @ 2018-05-11 18:01 UTC (permalink / raw)
  To: André Draszik; +Cc: Patches and discussions about the oe-core layer

On Fri, May 11, 2018 at 1:10 AM, André Draszik <git@andred.net> wrote:
> From: André Draszik <andre.draszik@jci.com>
>
> This is similar to commit f76ee525a75d, but instead of disabling
> the patch on all builds, we only remove it for x86-64 builds, as
> the original change's commit message mentined issues with this
> patch applied on that architecture only.
>

this is better thanks

> Signed-off-by: André Draszik <andre.draszik@jci.com>
> ---
>  meta/recipes-devtools/gcc/gcc-6.4.inc | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/meta/recipes-devtools/gcc/gcc-6.4.inc b/meta/recipes-devtools/gcc/gcc-6.4.inc
> index 1803917f01..9a23863022 100644
> --- a/meta/recipes-devtools/gcc/gcc-6.4.inc
> +++ b/meta/recipes-devtools/gcc/gcc-6.4.inc
> @@ -81,9 +81,11 @@ SRC_URI = "\
>             file://0048-sync-gcc-stddef.h-with-musl.patch \
>             file://0054_all_nopie-all-flags.patch \
>             file://0055-unwind_h-glibc26.patch \
> -           file://0056-LRA-PR70904-relax-the-restriction-on-subreg-reload-f.patch \
> +           ${LRA_PR70904_PATCH} \
>             ${BACKPORTS} \
>  "
> +LRA_PR70904_PATCH = "file://0056-LRA-PR70904-relax-the-restriction-on-subreg-reload-f.patch"
> +LRA_PR70904_PATCH_x86-64 = ""
>  BACKPORTS = "\
>             file://CVE-2016-6131.patch \
>             file://0057-ARM-PR-82445-suppress-32-bit-aligned-ldrd-strd-peeph.patch \
> --
> 2.16.2
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-05-11 18:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-11  8:10 [pyro][PATCH 1/2] Revert "gcc: Remove patch causing ICE on x86_64 valgrind compile" André Draszik
2018-05-11  8:10 ` [pyro][PATCH 2/2] gcc: Remove patch causing ICE on x86_64 valgrind compile (on x86-64 only) André Draszik
2018-05-11 10:49   ` Peter Kjellerstedt
2018-05-11 12:50   ` [pyro][PATCH v2 " André Draszik
2018-05-11 18:01   ` [pyro][PATCH " Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.