From 87765ff26bd8ba8c5b3c2b22303eea0747e465f3 Mon Sep 17 00:00:00 2001 From: Dmitry Volyntsev Date: Mon, 31 May 2021 06:55:32 +0000 Subject: [PATCH] Removing the requirement of "aligned" attribute support. Before 0a2a0b5a74f4, the address of values used in runtime had to be the multiple of 16, because the address of a variable was used as its VM index. The first 4 bits of an index signified the scope of a varible. This is no longer the case, after 0a2a0b5a74f4 the address of a variable is never used as its VM index. --- src/njs_value.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/njs_value.h b/src/njs_value.h index 28aed7e1..b3049d2f 100644 --- a/src/njs_value.h +++ b/src/njs_value.h @@ -105,10 +105,6 @@ typedef struct njs_property_next_s njs_property_next_t; typedef struct njs_object_init_s njs_object_init_t; -#if (!NJS_HAVE_GCC_ATTRIBUTE_ALIGNED) -#error "aligned attribute is required" -#endif - union njs_value_s { /* * The njs_value_t size is 16 bytes and must be aligned to 16 bytes -- 2.47.3