]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
valgrind.h: FreeBSD cleanup
authorPaul Floyd <pjfloyd@wanadoo.fr>
Tue, 6 Jan 2026 19:33:16 +0000 (20:33 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Tue, 6 Jan 2026 19:33:16 +0000 (20:33 +0100)
Wasn't undefining the PLAT macros
Add FreeBSD to the head and tail comments for each arch

amd64 is getting crowded, if we add any more OSes then I think
just "amd64 platforms" will be enough rather than listing 5 or 6
or more platforms.

include/valgrind.h.in

index 24a65999851f5b7e771cfb4e3c666c988c101b94..c49be6b3c6513efdc9c472a604de2612bb818c69 100644 (file)
    inline asm stuff to be useful.
 */
 
-/* ----------------- x86-{linux,darwin,solaris} ---------------- */
+/* -------------- x86-{linux,darwin,solaris,freebsd} ------------- */
 
 #if defined(PLAT_x86_linux)  ||  defined(PLAT_x86_darwin)  \
     ||  (defined(PLAT_x86_win32) && defined(__GNUC__)) \
@@ -331,7 +331,7 @@ typedef
  } while (0)
 
 #endif /* PLAT_x86_linux || PLAT_x86_darwin || (PLAT_x86_win32 && __GNUC__)
-          || PLAT_x86_solaris */
+          || PLAT_x86_solaris || PLAT_x86_freebsd */
 
 /* ------------------------- x86-Win32 ------------------------- */
 
@@ -406,7 +406,7 @@ valgrind_do_client_request_expr(uintptr_t _zzq_default, uintptr_t _zzq_request,
 
 #endif /* PLAT_x86_win32 */
 
-/* ----------------- amd64-{linux,darwin,solaris} --------------- */
+/* -------------- amd64-{linux,darwin,solaris,freebsd} ------------ */
 
 #if defined(PLAT_amd64_linux)  ||  defined(PLAT_amd64_darwin) \
     ||  defined(PLAT_amd64_solaris) \
@@ -471,7 +471,8 @@ typedef
                     );                                           \
  } while (0)
 
-#endif /* PLAT_amd64_linux || PLAT_amd64_darwin || PLAT_amd64_solaris */
+#endif /* PLAT_amd64_linux || PLAT_amd64_darwin
+          || PLAT_amd64_solaris || PLAT_amd64_freebsd */
 
 /* ------------------------- amd64-Win64 ------------------------- */
 
@@ -774,7 +775,7 @@ typedef
 
 #endif /* PLAT_arm_linux */
 
-/* ------------------------ arm64-{linux,freebsd} ------------------------- */
+/* -------------------- arm64-{linux,freebsd} -------------------- */
 
 #if defined(PLAT_arm64_linux) || defined(PLAT_arm64_freebsd)
 
@@ -1310,7 +1311,7 @@ typedef
    do { volatile unsigned long _junk;                             \
         CALL_FN_W_7W(_junk,fnptr,arg1,arg2,arg3,arg4,arg5,arg6,arg7); } while (0)
 
-/* ----------------- x86-{linux,darwin,solaris} ---------------- */
+/* -------------- x86-{linux,darwin,solaris,freebsd} ------------- */
 
 #if defined(PLAT_x86_linux)  ||  defined(PLAT_x86_darwin) \
     ||  defined(PLAT_x86_solaris)  || defined(PLAT_x86_freebsd)
@@ -1740,9 +1741,10 @@ typedef
       lval = (__typeof__(lval)) _res;                             \
    } while (0)
 
-#endif /* PLAT_x86_linux || PLAT_x86_darwin || PLAT_x86_solaris */
+#endif /* PLAT_x86_linux || PLAT_x86_darwin
+          || PLAT_x86_solaris || PLAT_x86_freebsd */
 
-/* ---------------- amd64-{linux,darwin,solaris} --------------- */
+/* ------------- amd64-{linux,darwin,solaris,freebsd} ------------ */
 
 #if defined(PLAT_amd64_linux)  ||  defined(PLAT_amd64_darwin) \
     ||  defined(PLAT_amd64_solaris)  ||  defined(PLAT_amd64_freebsd)
@@ -2294,7 +2296,8 @@ typedef
       lval = (__typeof__(lval)) _res;                                  \
    } while (0)
 
-#endif /* PLAT_amd64_linux || PLAT_amd64_darwin || PLAT_amd64_solaris */
+#endif /* PLAT_amd64_linux || PLAT_amd64_darwin
+          || PLAT_amd64_solaris || PLAT_amd64_freebsd */
 
 /* ------------------------ ppc32-linux ------------------------ */
 
@@ -4368,7 +4371,7 @@ typedef
 
 #endif /* PLAT_arm_linux */
 
-/* ------------------------ arm64-linux ------------------------ */
+/* ------------------- arm64-{linux,freebsd} -------------------- */
 
 #if defined(PLAT_arm64_linux) || defined(PLAT_arm64_freebsd)
 
@@ -4817,7 +4820,7 @@ typedef
       lval = (__typeof__(lval)) _res;                             \
    } while (0)
 
-#endif /* PLAT_arm64_linux */
+#endif /* PLAT_arm64_linux || PLAT_arm64_freebsd */
 
 /* ------------------------- s390x-linux ------------------------- */
 
@@ -7684,6 +7687,9 @@ VALGRIND_PRINTF_BACKTRACE(const char *format, ...)
 
 #undef PLAT_x86_darwin
 #undef PLAT_amd64_darwin
+#undef PLAT_x86_freebsd
+#undef PLAT_amd64_freebsd
+#undef PLAT_arm64_freebsd
 #undef PLAT_x86_win32
 #undef PLAT_amd64_win64
 #undef PLAT_x86_linux