|
@@ -105,6 +105,7 @@ FEATURE_TESTS = \
|
|
|
hello \
|
|
|
stackprotector-all \
|
|
|
stackprotector \
|
|
|
+ volatile-register-var \
|
|
|
libnuma
|
|
|
|
|
|
$(foreach test,$(FEATURE_TESTS),$(call feature_check,$(test),$(test)))
|
|
@@ -117,7 +118,7 @@ ifeq ($(feature-stackprotector), 1)
|
|
|
CFLAGS += -Wstack-protector
|
|
|
endif
|
|
|
|
|
|
-ifeq ($(call try-cc,$(SOURCE_HELLO),$(CFLAGS) -Werror -Wvolatile-register-var,-Wvolatile-register-var),y)
|
|
|
+ifeq ($(feature-volatile-register-var), 1)
|
|
|
CFLAGS += -Wvolatile-register-var
|
|
|
endif
|
|
|
|