This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] [PR target/81861] Save target specific options after ix86_stack_protector_guard_reg was changed
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: Maxim Ostapenko <m dot ostapenko at samsung dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 17 Aug 2017 13:45:29 +0200
- Subject: Re: [PATCH] [PR target/81861] Save target specific options after ix86_stack_protector_guard_reg was changed
- Authentication-results: sourceware.org; auth=none
- References: <CGME20170817113752eucas1p1a3219e47207322297719884324cfaafd@eucas1p1.samsung.com> <5995800D.1080304@samsung.com>
On Thu, Aug 17, 2017 at 1:37 PM, Maxim Ostapenko
<m.ostapenko@samsung.com> wrote:
> Hi,
>
> as discussed in PR, currently we are missing some SSP related options when
> streaming target specific options in LTO mode. This leads to incorrect code
> and segfaults (e.g. in ASan's pr64820.c testcase).
> This patch fixes this by moving options saving machinery down to setting
> ix86_stack_protector_guard_reg thus all related options are propagated
> correctly.
>
> Tested on x86{_64}-unknown-linux-gnu and lto-bootstrapped, OK to apply?
OK.
I'll take care to backport the patch to other release branches.
Thanks,
Uros.