This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Mark -fstack-protect as optimization flag (PR middle-end/71585)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]