Skip to content

Commit 57792c3

Browse files
committed
testsuite, rs6000: Adjust pcrel-sibcall-1.c with noipa [PR112751]
As PR112751 shows, commit r14-5628 caused pcrel-sibcall-1.c to fail as it enables ipa-vrp which makes return values of functions {x,y,xx} as known and propagated. This patch is to adjust it with noipa to make it not fragile. PR testsuite/112751 gcc/testsuite/ChangeLog: * gcc.target/powerpc/pcrel-sibcall-1.c: Replace noinline as noipa.
1 parent 6660904 commit 57792c3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gcc/testsuite/gcc.target/powerpc/pcrel-sibcall-1.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
generated when the caller preserves the TOC but the callee does not. */
99

1010
#pragma GCC target ("cpu=power10,pcrel")
11-
int x (void) __attribute__((noinline));
12-
int y (void) __attribute__((noinline));
13-
int xx (void) __attribute__((noinline));
14-
11+
int x (void) __attribute__((noipa));
12+
int y (void) __attribute__((noipa));
13+
int xx (void) __attribute__((noipa));
14+
1515
int x (void)
1616
{
1717
return 1;

0 commit comments

Comments
 (0)