This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Mark -fstack-protect as optimization flag (PR middle-end/71585)
- From: Martin LiÅka <mliska at suse dot cz>
- To: Richard Biener <richard dot guenther at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 29 Jun 2016 11:02:38 +0200
- Subject: Re: [PATCH] Mark -fstack-protect as optimization flag (PR middle-end/71585)
- Authentication-results: sourceware.org; auth=none
- References: <42796b14-9685-eabd-e6d7-3366de8efb51 at suse dot cz> <CAFiYyc3qOiRk=XDBT62Nk5s24gOF7Ls1C3Dx1AXs1wu_xtVmXA at mail dot gmail dot com>
On 06/28/2016 03:54 PM, Richard Biener wrote:
> I wonder about the inliner change. If one marks a single function
> with -fstack-protector
> that implicitely marks callers with -fno-stack-protector. So I'd
> rather disable inlining
> between different settings here?
It works in the opposite way, if a caller has the flag disabled and a callee has,
than the flag is also set to the caller. Honza asked me to propagate the flag in such manner.
If you prefer to not to inline, I can prepare a patch?
Martin