lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 10 Oct 2013 14:55:57 +0900
From:	Namhyung Kim <namhyung@...nel.org>
To:	Ingo Molnar <mingo@...nel.org>
Cc:	linux-kernel@...r.kernel.org,
	Peter Zijlstra <a.p.zijlstra@...llo.nl>,
	Arnaldo Carvalho de Melo <acme@...hat.com>,
	David Ahern <dsahern@...il.com>, Jiri Olsa <jolsa@...hat.com>
Subject: Re: [PATCH 07/52] tools/perf/build: Split out feature check: 'volatile-register-var'

On Tue,  8 Oct 2013 12:10:37 +0200, Ingo Molnar wrote:
> -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
>  
> diff --git a/tools/perf/config/feature-checks/Makefile b/tools/perf/config/feature-checks/Makefile
> index 46b7650..5693299 100644
> --- a/tools/perf/config/feature-checks/Makefile
> +++ b/tools/perf/config/feature-checks/Makefile
> @@ -3,6 +3,7 @@ FILES=					\
>  	test-hello			\
>  	test-stackprotector-all		\
>  	test-stackprotector		\
> +	test-volatile-register-var	\
>  	test-libnuma
>  
>  CC := $(CC) -MD
> @@ -22,6 +23,9 @@ test-stackprotector-all:
>  test-stackprotector:
>  	$(BUILD) -Werror -fstack-protector
>  
> +test-volatile-register-var:
> +	$(BUILD) -Werror -Wvolatile-register-var

I'm not sure this test is necessary at all.

The gcc manpage says this warning is enabled by -Wall, and we add -Wall
to CFLAGS before doing feature checks.  So all gcc versions that support
-Wvolatile-register-var enables it by default without this check and
older gcc versions will always fail the feature check.

Thanks,
Namhyung
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ