diff mbox series

[1/3] gcc: Oe-selftest failure analysis - fix for pr90579.c test failures

Message ID 20250821032424.92606-1-Harish.Sadineni@windriver.com
State New
Headers show
Series [1/3] gcc: Oe-selftest failure analysis - fix for pr90579.c test failures | expand

Commit Message

Sadineni, Harish Aug. 21, 2025, 3:24 a.m. UTC
From: Harish Sadineni <Harish.Sadineni@windriver.com>

When gcc build with PIE enabled the following tests
were getting failed:
 FAIL: gcc.target/i386/pr90579.c scan-assembler vaddsd\tr\\+40
 FAIL: gcc.target/i386/pr90579.c scan-assembler vaddsd\tr\\+32
 FAIL: gcc.target/i386/pr90579.c scan-assembler vaddsd\tr\\+24
 FAIL: gcc.target/i386/pr90579.c scan-assembler vaddsd\tr\\+16

Detailed bug info & upstream fix is here:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118885

Upstream Status: Backport [https://gcc.gnu.org/cgit/gcc/commit/?id=679e24f5a751663998ff7202149a749e0f7251f9]

Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com>
---
 meta/recipes-devtools/gcc/gcc-15.2.inc        |  1 +
 .../gcc/gcc/0026-fix-pr90579-testcases.patch  | 20 +++++++++++++++++++
 2 files changed, 21 insertions(+)
 create mode 100644 meta/recipes-devtools/gcc/gcc/0026-fix-pr90579-testcases.patch

Comments

Khem Raj Aug. 21, 2025, 5:18 a.m. UTC | #1
looks good.

On Wed, Aug 20, 2025 at 8:25 PM Sadineni, Harish via
lists.openembedded.org
<Harish.Sadineni=windriver.com@lists.openembedded.org> wrote:
>
> From: Harish Sadineni <Harish.Sadineni@windriver.com>
>
> When gcc build with PIE enabled the following tests
> were getting failed:
>  FAIL: gcc.target/i386/pr90579.c scan-assembler vaddsd\tr\\+40
>  FAIL: gcc.target/i386/pr90579.c scan-assembler vaddsd\tr\\+32
>  FAIL: gcc.target/i386/pr90579.c scan-assembler vaddsd\tr\\+24
>  FAIL: gcc.target/i386/pr90579.c scan-assembler vaddsd\tr\\+16
>
> Detailed bug info & upstream fix is here:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118885
>
> Upstream Status: Backport [https://gcc.gnu.org/cgit/gcc/commit/?id=679e24f5a751663998ff7202149a749e0f7251f9]
>
> Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com>
> ---
>  meta/recipes-devtools/gcc/gcc-15.2.inc        |  1 +
>  .../gcc/gcc/0026-fix-pr90579-testcases.patch  | 20 +++++++++++++++++++
>  2 files changed, 21 insertions(+)
>  create mode 100644 meta/recipes-devtools/gcc/gcc/0026-fix-pr90579-testcases.patch
>
> diff --git a/meta/recipes-devtools/gcc/gcc-15.2.inc b/meta/recipes-devtools/gcc/gcc-15.2.inc
> index 41e4c004dd..3583e40f55 100644
> --- a/meta/recipes-devtools/gcc/gcc-15.2.inc
> +++ b/meta/recipes-devtools/gcc/gcc-15.2.inc
> @@ -71,6 +71,7 @@ SRC_URI = "${BASEURI} \
>             file://0023-Fix-install-path-of-linux64.h.patch \
>             file://0024-Avoid-hardcoded-build-paths-into-ppc-libgcc.patch \
>             file://0025-gcc-testsuite-tweaks-for-mips-OE.patch \
> +          file://0026-fix-pr90579-testcases.patch \
>  "
>
>  UNPACKDIR = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/sources"
> diff --git a/meta/recipes-devtools/gcc/gcc/0026-fix-pr90579-testcases.patch b/meta/recipes-devtools/gcc/gcc/0026-fix-pr90579-testcases.patch
> new file mode 100644
> index 0000000000..bee147abc1
> --- /dev/null
> +++ b/meta/recipes-devtools/gcc/gcc/0026-fix-pr90579-testcases.patch
> @@ -0,0 +1,20 @@
> +Upstream-Status: Backport [https://gcc.gnu.org/cgit/gcc/commit/?id=679e24f5a751663998ff7202149a749e0f7251f9]
> +
> +Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com>
> +---
> + gcc/testsuite/gcc.target/i386/pr90579.c | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/gcc/testsuite/gcc.target/i386/pr90579.c b/gcc/testsuite/gcc.target/i386/pr90579.c
> +index ab48a44063c..19081ec9fdf 100644
> +--- a/gcc/testsuite/gcc.target/i386/pr90579.c
> ++++ b/gcc/testsuite/gcc.target/i386/pr90579.c
> +@@ -1,5 +1,5 @@
> + /* { dg-do compile } */
> +-/* { dg-options "-O3 -mavx2 -mfpmath=sse" } */
> ++/* { dg-options "-O3 -mavx2 -mfpmath=sse -fno-pie" } */
> +
> + extern double r[6];
> + extern double a[];
> +--
> +2.49.0
> --
> 2.49.0
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#222200): https://lists.openembedded.org/g/openembedded-core/message/222200
> Mute This Topic: https://lists.openembedded.org/mt/114812115/1997914
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
diff mbox series

Patch

diff --git a/meta/recipes-devtools/gcc/gcc-15.2.inc b/meta/recipes-devtools/gcc/gcc-15.2.inc
index 41e4c004dd..3583e40f55 100644
--- a/meta/recipes-devtools/gcc/gcc-15.2.inc
+++ b/meta/recipes-devtools/gcc/gcc-15.2.inc
@@ -71,6 +71,7 @@  SRC_URI = "${BASEURI} \
            file://0023-Fix-install-path-of-linux64.h.patch \
            file://0024-Avoid-hardcoded-build-paths-into-ppc-libgcc.patch \
            file://0025-gcc-testsuite-tweaks-for-mips-OE.patch \
+	   file://0026-fix-pr90579-testcases.patch \
 "
 
 UNPACKDIR = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/sources"
diff --git a/meta/recipes-devtools/gcc/gcc/0026-fix-pr90579-testcases.patch b/meta/recipes-devtools/gcc/gcc/0026-fix-pr90579-testcases.patch
new file mode 100644
index 0000000000..bee147abc1
--- /dev/null
+++ b/meta/recipes-devtools/gcc/gcc/0026-fix-pr90579-testcases.patch
@@ -0,0 +1,20 @@ 
+Upstream-Status: Backport [https://gcc.gnu.org/cgit/gcc/commit/?id=679e24f5a751663998ff7202149a749e0f7251f9]
+
+Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com>
+---
+ gcc/testsuite/gcc.target/i386/pr90579.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/gcc/testsuite/gcc.target/i386/pr90579.c b/gcc/testsuite/gcc.target/i386/pr90579.c
+index ab48a44063c..19081ec9fdf 100644
+--- a/gcc/testsuite/gcc.target/i386/pr90579.c
++++ b/gcc/testsuite/gcc.target/i386/pr90579.c
+@@ -1,5 +1,5 @@
+ /* { dg-do compile } */
+-/* { dg-options "-O3 -mavx2 -mfpmath=sse" } */
++/* { dg-options "-O3 -mavx2 -mfpmath=sse -fno-pie" } */
+ 
+ extern double r[6];
+ extern double a[];
+-- 
+2.49.0