diff options
author | Harish Sadineni <Harish.Sadineni@windriver.com> | 2025-08-22 00:12:25 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-08-25 17:47:21 +0100 |
commit | a6ce306fd35e9734b09a2a5aff6de7eff67abc92 (patch) | |
tree | 91cf8981ea3483b1705626317e993b399d500eb0 | |
parent | 920334997ffa5c8adebcb2089f31f07e7790902a (diff) | |
download | poky-a6ce306fd35e9734b09a2a5aff6de7eff67abc92.tar.gz |
gcc: Oe-selftest failure analysis - fix for pr90579.c test failures
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]
(From OE-Core rev: 7641e08044203ac9dde9a53b91bd01f9432d11f2)
Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-15.2.inc | 1 | ||||
-rw-r--r-- | meta/recipes-devtools/gcc/gcc/0026-fix-pr90579-testcases.patch | 20 |
2 files changed, 21 insertions, 0 deletions
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} \ | |||
71 | file://0023-Fix-install-path-of-linux64.h.patch \ | 71 | file://0023-Fix-install-path-of-linux64.h.patch \ |
72 | file://0024-Avoid-hardcoded-build-paths-into-ppc-libgcc.patch \ | 72 | file://0024-Avoid-hardcoded-build-paths-into-ppc-libgcc.patch \ |
73 | file://0025-gcc-testsuite-tweaks-for-mips-OE.patch \ | 73 | file://0025-gcc-testsuite-tweaks-for-mips-OE.patch \ |
74 | file://0026-fix-pr90579-testcases.patch \ | ||
74 | " | 75 | " |
75 | 76 | ||
76 | UNPACKDIR = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/sources" | 77 | 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 @@ | |||
1 | Upstream-Status: Backport [https://gcc.gnu.org/cgit/gcc/commit/?id=679e24f5a751663998ff7202149a749e0f7251f9] | ||
2 | |||
3 | Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com> | ||
4 | --- | ||
5 | gcc/testsuite/gcc.target/i386/pr90579.c | 2 +- | ||
6 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
7 | |||
8 | diff --git a/gcc/testsuite/gcc.target/i386/pr90579.c b/gcc/testsuite/gcc.target/i386/pr90579.c | ||
9 | index ab48a44063c..19081ec9fdf 100644 | ||
10 | --- a/gcc/testsuite/gcc.target/i386/pr90579.c | ||
11 | +++ b/gcc/testsuite/gcc.target/i386/pr90579.c | ||
12 | @@ -1,5 +1,5 @@ | ||
13 | /* { dg-do compile } */ | ||
14 | -/* { dg-options "-O3 -mavx2 -mfpmath=sse" } */ | ||
15 | +/* { dg-options "-O3 -mavx2 -mfpmath=sse -fno-pie" } */ | ||
16 | |||
17 | extern double r[6]; | ||
18 | extern double a[]; | ||
19 | -- | ||
20 | 2.49.0 | ||