]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: arm: change `noinline` to `noipa` for long call tests
authorTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Mon, 29 Jun 2026 06:26:12 +0000 (08:26 +0200)
committerTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Mon, 29 Jun 2026 13:57:52 +0000 (15:57 +0200)
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 <torbjorn.svensson@foss.st.com>
gcc/testsuite/gcc.target/arm/long-calls-1.c
gcc/testsuite/gcc.target/arm/long-calls-2.c
gcc/testsuite/gcc.target/arm/long-calls-3.c
gcc/testsuite/gcc.target/arm/long-calls-4.c

index f10f10606a6cfceedde69ade83c9174f5e9fdcd7..7b2933734bf28732c05b79ee56cac14559d30fb2 100644 (file)
@@ -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))
 
   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 (); }
 
index 8ce2404c1f7c86c35feda7ca979f27fcb272173d..97aa41a013716b2c7f7d68acc044117ab2e028f2 100644 (file)
@@ -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))
 
   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 (); }
 
index bd1891c008b148b19193b23a01554fbe8eb461e8..e40ac49b18795947109cfddda6c51b65613440bb 100644 (file)
@@ -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))
 
   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 (); }
 
index dc184b8f8be3e463321a1d1febd6f2a58c16e914..ebf74f85443a39d837b9f6fa7f718f1e811b6f09 100644 (file)
@@ -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))
 
   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 (); }