From: Jeff Law Date: Wed, 17 Nov 2021 16:55:50 +0000 (-0500) Subject: Fix two mips target tests compromised by recent IPA work X-Git-Tag: basepoints/gcc-13~2972 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c70546482388951b5c9c19cff002ee6ab920b7f5;p=thirdparty%2Fgcc.git Fix two mips target tests compromised by recent IPA work gcc/testsuite * gcc.target/mips/frame-header-1.c (bar): Add noipa attribute. * gcc.target/mips/frame-header-2.c (bar): Likewise. --- diff --git a/gcc/testsuite/gcc.target/mips/frame-header-1.c b/gcc/testsuite/gcc.target/mips/frame-header-1.c index 971656ddaa35..55efc0b02f82 100644 --- a/gcc/testsuite/gcc.target/mips/frame-header-1.c +++ b/gcc/testsuite/gcc.target/mips/frame-header-1.c @@ -8,7 +8,7 @@ /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */ /* { dg-final { scan-assembler "\taddiu\t\\\$sp,\\\$sp,-24" } } */ -NOMIPS16 void __attribute__((noinline)) +NOMIPS16 void __attribute__((noinline)) __attribute__((noipa)) bar (int* a) { *a = 1; diff --git a/gcc/testsuite/gcc.target/mips/frame-header-2.c b/gcc/testsuite/gcc.target/mips/frame-header-2.c index 0e86bc91994d..31aa27e990f6 100644 --- a/gcc/testsuite/gcc.target/mips/frame-header-2.c +++ b/gcc/testsuite/gcc.target/mips/frame-header-2.c @@ -8,7 +8,7 @@ /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */ /* { dg-final { scan-assembler "\taddiu\t\\\$sp,\\\$sp,-8" } } */ -NOMIPS16 void __attribute__((noinline)) +NOMIPS16 void __attribute__((noinline)) __attribute__((noipa)) bar (int* a) { *a = 1;