Patchwork [i386] : RFC enable inlining for function with machine-attributes

login
register
mail settings
Submitter Kai Tietz
Date July 4, 2013, 10:06 a.m.
Message ID <CAEwic4bb6d7T+4JEHxHRs0NDoyzLECbunYYGcDDkGDZtPBpB4Q@mail.gmail.com>
Download mbox | patch
Permalink /patch/256861/
State New
Headers show

Comments

Kai Tietz - July 4, 2013, 10:06 a.m.
Hi,

here is the adjusted patch for this PR.

2013-07-04  Kai Tietz  <ktietz@redhat.com>

    PR target/56892
    * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
    hook_bool_const_tree_true.


Tested for x86_64-w64-mingw32, i686-pc-cygwin, and
x86_64-unknown-linux-gnu.  Ok for apply?

Regards,
Kai
Richard Henderson - July 8, 2013, 1:45 p.m.
On 07/04/2013 03:06 AM, Kai Tietz wrote:
> Hi,
> 
> here is the adjusted patch for this PR.
> 
> 2013-07-04  Kai Tietz  <ktietz@redhat.com>
> 
>     PR target/56892
>     * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
>     hook_bool_const_tree_true.

Ok.


r~

Patch

Index: i386.c
===================================================================
--- i386.c      (Revision 200643)
+++ i386.c      (Arbeitskopie)
@@ -42701,6 +42701,8 @@  ix86_memmodel_check (unsigned HOST_WIDE_INT val)

 #undef TARGET_ATTRIBUTE_TABLE
 #define TARGET_ATTRIBUTE_TABLE ix86_attribute_table
+#undef TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P
+#define TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P hook_bool_const_tree_true
 #if TARGET_DLLIMPORT_DECL_ATTRIBUTES
 #  undef TARGET_MERGE_DECL_ATTRIBUTES
 #  define TARGET_MERGE_DECL_ATTRIBUTES merge_dllimport_decl_attributes