toolchain.eclass: filter out -mstackrealign, bug #688580
authorSergei Trofimovich <slyfox@gentoo.org>
Sat, 26 Oct 2019 16:33:17 +0000 (17:33 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Sat, 26 Oct 2019 16:36:09 +0000 (17:36 +0100)
commit5277d012d4d21640d82ba9c82748d8b63523804c
treeed8fd2914643d3cee46c3a86289b652d365bdf3c
parent794fad9f9c72ed80d660c7c8c5454414e6f484a8
toolchain.eclass: filter out -mstackrealign, bug #688580

-mstackrealign breaks stack unwinding via _Unwind_RaiseException
in libgcc_s.so.1. Not clear why exactly. Probably by breaking
unwinding information during realignment.

The change works it around by dropping -mstackrealign when building gcc.

Reported-by: Erik
Bug: https://bugs.gentoo.org/688580
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
eclass/toolchain.eclass