Browse Source

gcc: Fix compilation with GCC 4.7.

* gcc-plugin/src/starpu.c (register_task_attributes)[HAVE_ATTRIBUTE_SPEC_AFFECTS_TYPE_IDENTITY]:
  Initialize that to `false' for REGISTERED_ATTR.
Ludovic Courtès 12 years ago
parent
commit
eb226c1d9e
1 changed files with 3 additions and 0 deletions
  1. 3 0
      gcc-plugin/src/starpu.c

+ 3 - 0
gcc-plugin/src/starpu.c

@@ -2415,6 +2415,9 @@ register_task_attributes (void *gcc_data, void *user_data)
     {
     {
       registered_attribute_name, 0, 0, true, false, false,
       registered_attribute_name, 0, 0, true, false, false,
       handle_registered_attribute
       handle_registered_attribute
+#ifdef HAVE_ATTRIBUTE_SPEC_AFFECTS_TYPE_IDENTITY
+      , false
+#endif
     };
     };
 
 
   static const struct attribute_spec output_attr =
   static const struct attribute_spec output_attr =