File tree 2 files changed +22
-0
lines changed
2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -172,6 +172,20 @@ njs_feature_test="__attribute__((no_sanitize(\"undefined\"))) int main(void) {
172
172
. auto/feature
173
173
174
174
175
+ njs_feature="GCC __attribute__ nonstring"
176
+ njs_feature_name=NJS_HAVE_GCC_ATTRIBUTE_NONSTRING
177
+ njs_feature_run=
178
+ njs_feature_incs=
179
+ njs_feature_libs=
180
+ njs_feature_test="int main(void) {
181
+ static const char str[3] __attribute__((nonstring)) =
182
+ \"ABC\";
183
+
184
+ return !!str[0];
185
+ }"
186
+ . auto/feature
187
+
188
+
175
189
njs_feature="Address sanitizer"
176
190
njs_feature_name=NJS_HAVE_ADDRESS_SANITIZER
177
191
njs_feature_run=no
Original file line number Diff line number Diff line change @@ -162,6 +162,14 @@ njs_leading_zeros64(uint64_t x)
162
162
#endif
163
163
164
164
165
+ #if (NJS_HAVE_GCC_ATTRIBUTE_NONSTRING )
166
+ #define NJS_NONSTRING __attribute__((nonstring))
167
+
168
+ #else
169
+ #define NJS_NONSTRING
170
+ #endif
171
+
172
+
165
173
#if (NJS_CLANG )
166
174
/* Any __asm__ directive disables loop vectorization in GCC and Clang. */
167
175
#define njs_pragma_loop_disable_vectorization __asm__("")
You can’t perform that action at this time.
0 commit comments