[committed] Fix two mips target tests compromised by recent IPA work

Message ID f5868615-977f-f575-dd30-e9fa91a65b3f@gmail.com
State Committed
Commit c70546482388951b5c9c19cff002ee6ab920b7f5
Headers
Series [committed] Fix two mips target tests compromised by recent IPA work |

Commit Message

Jeff Law Nov. 17, 2021, 4:59 p.m. UTC
  Jan's recent IPA work compromised two mips tests.   This restores the 
tests by disabling IPA analysis on the key function in both tests.

Committed to the trunk,

Jeff
commit c70546482388951b5c9c19cff002ee6ab920b7f5
Author: Jeff Law <jeffreyalaw@gmail.com>
Date:   Wed Nov 17 11:55:50 2021 -0500

    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.
  

Patch

diff --git a/gcc/testsuite/gcc.target/mips/frame-header-1.c b/gcc/testsuite/gcc.target/mips/frame-header-1.c
index 971656ddaa3..55efc0b02f8 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 0e86bc91994..31aa27e990f 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;