commit:     9dd010761f134da0f84ef8a86d77825d62953fe5
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sat Oct  6 09:13:14 2018 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sat Oct  6 09:25:03 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9dd01076

toolchain.eclass: filter out -Wextra -Wstack-protector

On gcc-3.x -Wextra -Wstack-protector were not yet present.
These options are seen occasionally in users' CFLAGS.

Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 eclass/toolchain.eclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index e2629d40393..0e44d922ebe 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1507,6 +1507,8 @@ gcc_do_filter_flags() {
                filter-flags -f{no-,}unit-at-a-time -f{no-,}web 
-mno-tls-direct-seg-refs
                filter-flags -f{no-,}stack-protector{,-all}
                filter-flags -fvisibility-inlines-hidden -fvisibility=hidden
+               # and warning options
+               filter-flags -Wextra -Wstack-protector
        fi
        if ! tc_version_is_at_least 4.1 ; then
                filter-flags -fdiagnostics-show-option

Reply via email to