diff options
author | Kewen Lin <linkw@linux.ibm.com> | 2024-01-09 23:06:13 -0600 |
---|---|---|
committer | Kewen Lin <linkw@linux.ibm.com> | 2024-01-09 23:06:13 -0600 |
commit | 57792c33042d17605a6b6ad9027f5e6d5199eb26 (patch) | |
tree | d6989dbe2a442987cd5935bb9bc3251933bd99a7 /gcc | |
parent | 6660904c3f5872262f466b5cbbd48fb11e9fe966 (diff) | |
download | gcc-57792c33042d17605a6b6ad9027f5e6d5199eb26.zip gcc-57792c33042d17605a6b6ad9027f5e6d5199eb26.tar.gz gcc-57792c33042d17605a6b6ad9027f5e6d5199eb26.tar.bz2 |
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gcc.target/powerpc/pcrel-sibcall-1.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/testsuite/gcc.target/powerpc/pcrel-sibcall-1.c b/gcc/testsuite/gcc.target/powerpc/pcrel-sibcall-1.c index 9197788..1b6dffd 100644 --- a/gcc/testsuite/gcc.target/powerpc/pcrel-sibcall-1.c +++ b/gcc/testsuite/gcc.target/powerpc/pcrel-sibcall-1.c @@ -8,10 +8,10 @@ generated when the caller preserves the TOC but the callee does not. */ #pragma GCC target ("cpu=power10,pcrel") -int x (void) __attribute__((noinline)); -int y (void) __attribute__((noinline)); -int xx (void) __attribute__((noinline)); - +int x (void) __attribute__((noipa)); +int y (void) __attribute__((noipa)); +int xx (void) __attribute__((noipa)); + int x (void) { return 1; |