Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gcc-patches:master commit in: 8.2.0/gentoo/
Date: Sun, 10 Feb 2019 12:12:41
Message-Id: 1549800501.1fe872f729f1361ee45fb0792ca4194cf9c1caeb.slyfox@gentoo
1 commit: 1fe872f729f1361ee45fb0792ca4194cf9c1caeb
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 10 12:08:21 2019 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 10 12:08:21 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=1fe872f7
7
8 8.2.0: don't enable -fstack-clach-protection by default
9
10 In bug #675050 I noticed that -fstack-clash-protection is enabled
11 not just for hardened users but for USE=ssp users as well.
12
13 That was not an intention of the patch. The change enables
14 -fstack-clach-protection only for -DEXTRA_OPTIONS (hardened users).
15
16 See https://bugs.gentoo.org/675050 for longer-term plans to
17 enable -fstack-clach-protection for more users.
18
19 Bug: https://bugs.gentoo.org/675050
20 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
21
22 8.2.0/gentoo/55_all_extra-options.patch | 2 +-
23 8.2.0/gentoo/README.history | 1 +
24 2 files changed, 2 insertions(+), 1 deletion(-)
25
26 diff --git a/8.2.0/gentoo/55_all_extra-options.patch b/8.2.0/gentoo/55_all_extra-options.patch
27 index 3e8275f..9187af8 100644
28 --- a/8.2.0/gentoo/55_all_extra-options.patch
29 +++ b/8.2.0/gentoo/55_all_extra-options.patch
30 @@ -19,7 +19,7 @@ On Hardened we add some options like -fstack-clash-protection and -z now
31
32 +/* Default value for flag_clash_protector when flag_clash_protector is
33 + initialized to -1. */
34 -+#ifdef ENABLE_ESP
35 ++#ifdef EXTRA_OPTIONS
36 +#define DEFAULT_FLAG_SCP 1
37 +#endif
38 +#ifndef DEFAULT_FLAG_SCP
39
40 diff --git a/8.2.0/gentoo/README.history b/8.2.0/gentoo/README.history
41 index a20d870..bf28171 100644
42 --- a/8.2.0/gentoo/README.history
43 +++ b/8.2.0/gentoo/README.history
44 @@ -1,5 +1,6 @@
45 1.8 TODO
46 + 116_all_ipa-pgo-PR88561-fix.patch
47 + U 55_all_extra-options.patch
48
49 1.7 26 Dec 2018
50 + 114_all_kr-decl-PR88214.patch