https://gcc.gnu.org/g:822ffdda4630d7cded883126d392c58c2b526690
commit r17-1976-g822ffdda4630d7cded883126d392c58c2b526690 Author: Torbjörn SVENSSON <[email protected]> Date: Mon Jun 29 08:26:12 2026 +0200 testsuite: arm: change `noinline` to `noipa` for long call tests Since r17-1602-ga5ab19d9db2d13, the tests starts to fail due to that GCC thinks it can optimize away the function. With `noipa`, the function is preserved. gcc/testsuite/ChangeLog: * gcc.target/arm/long-calls-1.c: Change to `noipa` to prevent optimizing away the functions. * gcc.target/arm/long-calls-2.c: Likewise. * gcc.target/arm/long-calls-3.c: Likewise. * gcc.target/arm/long-calls-4.c: Likewise. Signed-off-by: Torbjörn SVENSSON <[email protected]> Diff: --- gcc/testsuite/gcc.target/arm/long-calls-1.c | 6 +++--- gcc/testsuite/gcc.target/arm/long-calls-2.c | 6 +++--- gcc/testsuite/gcc.target/arm/long-calls-3.c | 6 +++--- gcc/testsuite/gcc.target/arm/long-calls-4.c | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/gcc/testsuite/gcc.target/arm/long-calls-1.c b/gcc/testsuite/gcc.target/arm/long-calls-1.c index f10f10606a6c..7b2933734bf2 100644 --- a/gcc/testsuite/gcc.target/arm/long-calls-1.c +++ b/gcc/testsuite/gcc.target/arm/long-calls-1.c @@ -6,7 +6,7 @@ #define section(S) __attribute__((section(S))) #define weak __attribute__((weak)) -#define noinline __attribute__((noinline)) +#define noipa __attribute__((noipa)) #define long_call __attribute__((long_call)) #define short_call __attribute__((short_call)) @@ -15,12 +15,12 @@ const char *CALL_ATTRS call_##ID (void) { return ID () + 1; } #define EXTERN_CALL(ID, TARGET_ATTRS, CALL_ATTRS) \ - const char *TARGET_ATTRS noinline ID (void) { return #ID; } \ + const char *TARGET_ATTRS noipa ID (void) { return #ID; } \ const char *CALL_ATTRS call_##ID (void) { return ID () + 1; } \ const char *CALL_ATTRS sibcall_##ID (void) { return ID (); } #define STATIC_CALL(ID, TARGET_ATTRS, CALL_ATTRS) \ - static const char *TARGET_ATTRS noinline ID (void) { return #ID; } \ + static const char *TARGET_ATTRS noipa ID (void) { return #ID; } \ const char *CALL_ATTRS call_##ID (void) { return ID () + 1; } \ const char *CALL_ATTRS sibcall_##ID (void) { return ID (); } diff --git a/gcc/testsuite/gcc.target/arm/long-calls-2.c b/gcc/testsuite/gcc.target/arm/long-calls-2.c index 8ce2404c1f7c..97aa41a01371 100644 --- a/gcc/testsuite/gcc.target/arm/long-calls-2.c +++ b/gcc/testsuite/gcc.target/arm/long-calls-2.c @@ -4,7 +4,7 @@ #define section(S) __attribute__((section(S))) #define weak __attribute__((weak)) -#define noinline __attribute__((noinline)) +#define noipa __attribute__((noipa)) #define long_call __attribute__((long_call)) #define short_call __attribute__((short_call)) @@ -13,12 +13,12 @@ const char *CALL_ATTRS call_##ID (void) { return ID () + 1; } #define EXTERN_CALL(ID, TARGET_ATTRS, CALL_ATTRS) \ - const char *TARGET_ATTRS noinline ID (void) { return #ID; } \ + const char *TARGET_ATTRS noipa ID (void) { return #ID; } \ const char *CALL_ATTRS call_##ID (void) { return ID () + 1; } \ const char *CALL_ATTRS sibcall_##ID (void) { return ID (); } #define STATIC_CALL(ID, TARGET_ATTRS, CALL_ATTRS) \ - static const char *TARGET_ATTRS noinline ID (void) { return #ID; } \ + static const char *TARGET_ATTRS noipa ID (void) { return #ID; } \ const char *CALL_ATTRS call_##ID (void) { return ID () + 1; } \ const char *CALL_ATTRS sibcall_##ID (void) { return ID (); } diff --git a/gcc/testsuite/gcc.target/arm/long-calls-3.c b/gcc/testsuite/gcc.target/arm/long-calls-3.c index bd1891c008b1..e40ac49b1879 100644 --- a/gcc/testsuite/gcc.target/arm/long-calls-3.c +++ b/gcc/testsuite/gcc.target/arm/long-calls-3.c @@ -4,7 +4,7 @@ #define section(S) __attribute__((section(S))) #define weak __attribute__((weak)) -#define noinline __attribute__((noinline)) +#define noipa __attribute__((noipa)) #define long_call __attribute__((long_call)) #define short_call __attribute__((short_call)) @@ -13,12 +13,12 @@ const char *CALL_ATTRS call_##ID (void) { return ID () + 1; } #define EXTERN_CALL(ID, TARGET_ATTRS, CALL_ATTRS) \ - const char *TARGET_ATTRS noinline ID (void) { return #ID; } \ + const char *TARGET_ATTRS noipa ID (void) { return #ID; } \ const char *CALL_ATTRS call_##ID (void) { return ID () + 1; } \ const char *CALL_ATTRS sibcall_##ID (void) { return ID (); } #define STATIC_CALL(ID, TARGET_ATTRS, CALL_ATTRS) \ - static const char *TARGET_ATTRS noinline ID (void) { return #ID; } \ + static const char *TARGET_ATTRS noipa ID (void) { return #ID; } \ const char *CALL_ATTRS call_##ID (void) { return ID () + 1; } \ const char *CALL_ATTRS sibcall_##ID (void) { return ID (); } diff --git a/gcc/testsuite/gcc.target/arm/long-calls-4.c b/gcc/testsuite/gcc.target/arm/long-calls-4.c index dc184b8f8be3..ebf74f85443a 100644 --- a/gcc/testsuite/gcc.target/arm/long-calls-4.c +++ b/gcc/testsuite/gcc.target/arm/long-calls-4.c @@ -4,7 +4,7 @@ #define section(S) __attribute__((section(S))) #define weak __attribute__((weak)) -#define noinline __attribute__((noinline)) +#define noipa __attribute__((noipa)) #define long_call __attribute__((long_call)) #define short_call __attribute__((short_call)) @@ -13,12 +13,12 @@ const char *CALL_ATTRS call_##ID (void) { return ID () + 1; } #define EXTERN_CALL(ID, TARGET_ATTRS, CALL_ATTRS) \ - const char *TARGET_ATTRS noinline ID (void) { return #ID; } \ + const char *TARGET_ATTRS noipa ID (void) { return #ID; } \ const char *CALL_ATTRS call_##ID (void) { return ID () + 1; } \ const char *CALL_ATTRS sibcall_##ID (void) { return ID (); } #define STATIC_CALL(ID, TARGET_ATTRS, CALL_ATTRS) \ - static const char *TARGET_ATTRS noinline ID (void) { return #ID; } \ + static const char *TARGET_ATTRS noipa ID (void) { return #ID; } \ const char *CALL_ATTRS call_##ID (void) { return ID () + 1; } \ const char *CALL_ATTRS sibcall_##ID (void) { return ID (); }
