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] Attribute noclone


On 07/24/2009 05:44 AM, Martin Jambor wrote:
-  return copy_forbidden (DECL_STRUCT_FUNCTION (fndecl), fndecl) == NULL;
+  return (copy_forbidden (DECL_STRUCT_FUNCTION (fndecl), fndecl) == NULL)
+&&  !lookup_attribute ("noclone", DECL_ATTRIBUTES (fndecl));

Misplaced (). Should be


  return (!lookup_attribute (...)
	  && copy_forbidden (...));

Ok with that change.


r~



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