]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
VEX: Remove VEXGLO_N_ALWAYSDEFD
authorFlorian Krohm <flo2030@eich-krohm.de>
Fri, 27 Mar 2026 15:14:59 +0000 (15:14 +0000)
committerFlorian Krohm <flo2030@eich-krohm.de>
Fri, 27 Mar 2026 15:14:59 +0000 (15:14 +0000)
Use flexible array instead.

Part of fixing https://bugs.kde.org/show_bug.cgi?id=337869

VEX/pub/libvex.h

index fe41048d9ef1365fc7e83816f4ad0035d780d732..c7de6273ac458ef461e3bf0900f0a7a57477c76f 100644 (file)
@@ -589,11 +589,6 @@ extern void LibVEX_ShowAllocStats ( void );
 
 /* Describe the guest state enough that the instrumentation
    functions can work. */
-
-/* The max number of guest state chunks which we can describe as
-   always defined (for the benefit of Memcheck). */
-#define VEXGLO_N_ALWAYSDEFD  24
-
 typedef
    struct {
       /* Total size of the guest state, in bytes.  Must be
@@ -614,7 +609,7 @@ typedef
       struct {
          Int offset;
          Int size;
-      } alwaysDefd[VEXGLO_N_ALWAYSDEFD];
+      } alwaysDefd[];
    }
    VexGuestLayout;