This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, mingw32] Mark ".text.unlikely" as executable
- From: "Danny Smith" <dansmister at gmail dot com>
- To: Zuxy <zuxy dot meng at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 12 May 2008 09:08:39 +1200
- Subject: Re: [PATCH, mingw32] Mark ".text.unlikely" as executable
- References: <fs4bvm$frc$2@ger.gmane.org> <9c03c2dd0803250142n7fe8a8bcq8932232f086927c@mail.gmail.com> <a18e06b40803250252g4bc85953w5feb695cde2dd6b7@mail.gmail.com> <9c03c2dd0803252338l5b6f3f5ai7bbca3cd841d63f0@mail.gmail.com> <a18e06b40803280142o7cb8bb2ei8c87e9099189ecaa@mail.gmail.com> <9c03c2dd0803291810h22805248n95449336d1d62936@mail.gmail.com> <a18e06b40803312029r61d10251sb15c56c41e5659bf@mail.gmail.com> <ftfpgo$ks0$1@ger.gmane.org>
On Wed, Apr 9, 2008 at 12:47 AM, Zuxy <zuxy.meng@gmail.com> wrote:
> "Zuxy Meng" <zuxy.meng@gmail.com> дÈëÏûÏ¢
> news:a18e06b40803312029r61d10251sb15c56c41e5659bf@mail.gmail.com...
>> 2008/3/30, Danny Smith <dansmister@gmail.com>:
>>> On Fri, Mar 28, 2008 at 9:42 PM, Zuxy Meng <zuxy.meng@gmail.com> wrote:
>>> > Hi,
>>> >
>>> > 2008/3/26, Danny Smith <dansmister@gmail.com>:
>>> >
>>> >
>>> > > On Tue, Mar 25, 2008 at 10:52 PM, Zuxy Meng <zuxy.meng@gmail.com>
>>> > > wrote:
>>> > > > Hi,
>>> > > >
>>> > > > 2008/3/25, Danny Smith <dansmister@gmail.com>:
>>> > > >
>>> > > > >
>>> > > > > Would you be willing to assign copyright to the Free Software
>>> > > > > Foundation, so that we could install in gcc?
>>> > > >
>>> > > > Sure. What should I do?
>>> > > > --
>>> > >
>>> > > Attached is the template for requesting copyright assignment forms.
>>> > > Please complete and email to
>>> > > address given in form.
>>> >
>>> > I've sent it. And what about the patch itself? Is it OK for 4.3.1?
>>> >
>>> Yes.
>>> Danny
>>
>> Thanks! Could somebody apply it?
>
> Ping....
>
> --
> Zuxy
>
Committed to 4_3-branch as revision 135188
Index: config/i386/winnt.c
===================================================================
--- config/i386/winnt.c (revision 135187)
+++ config/i386/winnt.c (working copy)
@@ -420,6 +420,15 @@
flags = SECTION_CODE;
else if (decl && decl_readonly_section (decl, reloc))
flags = 0;
+ else if (current_function_decl
+ && cfun
+ && cfun->unlikely_text_section_name
+ && strcmp (name, cfun->unlikely_text_section_name) == 0)
+ flags = SECTION_CODE;
+ else if (!decl
+ && (!current_function_decl || !cfun)
+ && strcmp (name, UNLIKELY_EXECUTED_TEXT_SECTION_NAME) == 0)
+ flags = SECTION_CODE;
else
{
flags = SECTION_WRITE;
>
>
>