aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuliano Belinassi <gbelinassi@suse.de>2022-05-18 16:16:48 -0300
committerGiuliano Belinassi <gbelinassi@suse.de>2022-05-19 10:00:09 -0300
commit16e02662c092c6e3087628ef0030e7daa2f71485 (patch)
tree26bbb7619efcedd07c638b294d6707b41bb42191
parent19258b113872bd6774f215c63d82dc48ee1198b6 (diff)
downloadgcc-16e02662c092c6e3087628ef0030e7daa2f71485.zip
gcc-16e02662c092c6e3087628ef0030e7daa2f71485.tar.gz
gcc-16e02662c092c6e3087628ef0030e7daa2f71485.tar.bz2
PR105647 Update pr105169* so it does not fail on powerpc64le
On powerpc64le, the tests related to pr105169 failed because the .localentry was not on a power of two address due to the extra nop instruction taking one byte and thus moving its position one byte further. Generating two nops instead moves .localentry to a valid position. gcc/testsuite/ChangeLog 2022-05-18 Giuliano Belinassi <gbelinassi@suse.de> PR target/105647 * g++.dg/modules/pr105169_a.C: Change -fpatchable-function-entry to 2. * g++.dg/modules/pr105169_b.C: Likewise.
-rw-r--r--gcc/testsuite/g++.dg/modules/pr105169_a.C4
-rw-r--r--gcc/testsuite/g++.dg/modules/pr105169_b.C4
2 files changed, 4 insertions, 4 deletions
diff --git a/gcc/testsuite/g++.dg/modules/pr105169_a.C b/gcc/testsuite/g++.dg/modules/pr105169_a.C
index 66dc4b7..02660b3 100644
--- a/gcc/testsuite/g++.dg/modules/pr105169_a.C
+++ b/gcc/testsuite/g++.dg/modules/pr105169_a.C
@@ -1,6 +1,6 @@
/* { dg-module-do link } */
-/* { dg-options "-std=c++11 -fpatchable-function-entry=1 -O2" } */
-/* { dg-additional-options "-std=c++11 -fpatchable-function-entry=1 -O2" } */
+/* { dg-options "-std=c++11 -fpatchable-function-entry=2 -O2" } */
+/* { dg-additional-options "-std=c++11 -fpatchable-function-entry=2 -O2" } */
/* This test is in the "modules" package because it supports multiple files
linkage. */
diff --git a/gcc/testsuite/g++.dg/modules/pr105169_b.C b/gcc/testsuite/g++.dg/modules/pr105169_b.C
index 5f8b00d..7a9c586 100644
--- a/gcc/testsuite/g++.dg/modules/pr105169_b.C
+++ b/gcc/testsuite/g++.dg/modules/pr105169_b.C
@@ -1,6 +1,6 @@
/* { dg-module-do link } */
-/* { dg-options "-std=c++11 -fpatchable-function-entry=1 -O2" } */
-/* { dg-additional-options "-std=c++11 -fpatchable-function-entry=1 -O2" } */
+/* { dg-options "-std=c++11 -fpatchable-function-entry=2 -O2" } */
+/* { dg-additional-options "-std=c++11 -fpatchable-function-entry=2 -O2" } */
/* This test is in the "modules" package because it supports multiple files
linkage. */