[PATCH, mingw32] Mark ".text.unlikely" as executable
Danny Smith
dansmister@gmail.com
Sun May 11 22:42:00 GMT 2008
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;
>
>
>
More information about the Gcc-patches
mailing list