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: Richard Biener <richard dot guenther at gmail dot com>
- To: Martin LiÅka <mliska at suse dot cz>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 28 Jun 2016 15:54:37 +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>
On Tue, Jun 28, 2016 at 3:38 PM, Martin LiÅka <mliska@suse.cz> wrote:
> Hello.
>
> Following patch marks -fstack-protect as Optimization flag.
> That let a user to mark a function with #pragma GCC optimize ("-fno-stack-protector")
> to disable the optimization for a function.
>
> Patch survives regression tests and bootstraps on x86_64-linux-gnu.
>
> Ready to install?
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?
Richard.
> Thanks,
> Martin