gcc-patches@gcc.gnu.org
[Top] [All Lists]

Re: [PATCH] Attribute noclone

Subject: Re: [PATCH] Attribute noclone
From: Richard Henderson
Date: Fri, 24 Jul 2009 07:30:39 -0700
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~

<Prev in Thread] Current Thread [Next in Thread>