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.
This commit is contained in:
Giuliano Belinassi 2022-05-18 16:16:48 -03:00
parent 19258b1138
commit 16e02662c0
2 changed files with 4 additions and 4 deletions

View File

@ -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. */

View File

@ -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. */