1 |
commit: 5277d012d4d21640d82ba9c82748d8b63523804c |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 26 16:33:17 2019 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 26 16:36:09 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5277d012 |
7 |
|
8 |
toolchain.eclass: filter out -mstackrealign, bug #688580 |
9 |
|
10 |
-mstackrealign breaks stack unwinding via _Unwind_RaiseException |
11 |
in libgcc_s.so.1. Not clear why exactly. Probably by breaking |
12 |
unwinding information during realignment. |
13 |
|
14 |
The change works it around by dropping -mstackrealign when building gcc. |
15 |
|
16 |
Reported-by: Erik |
17 |
Bug: https://bugs.gentoo.org/688580 |
18 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
19 |
|
20 |
eclass/toolchain.eclass | 7 +++++++ |
21 |
1 file changed, 7 insertions(+) |
22 |
|
23 |
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass |
24 |
index b1ba774ea0c..7e88900737a 100644 |
25 |
--- a/eclass/toolchain.eclass |
26 |
+++ b/eclass/toolchain.eclass |
27 |
@@ -1547,6 +1547,13 @@ gcc_do_filter_flags() { |
28 |
filter-flags -Wstack-protector |
29 |
fi |
30 |
|
31 |
+ if tc_version_is_between 6 8 ; then |
32 |
+ # -mstackrealign triggers crashes in exception throwing |
33 |
+ # at least on ada: bug #688580 |
34 |
+ # The reason is unknown. Drop the flag for now. |
35 |
+ filter-flags -mstackrealign |
36 |
+ fi |
37 |
+ |
38 |
if tc_version_is_at_least 3.4 ; then |
39 |
case $(tc-arch) in |
40 |
amd64|x86) |