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: [trunk][patch] Factor check for names starting in __builtin_ or __sync_


Hi,

Couldn't you use DECL_BUILT_IN and DECL_FUNCTION_CODE to do this
without looking at the name?

Cheers
Graham


--- On Thu, 2/4/09, Rafael Espindola <espindola@google.com> wrote:

> From: Rafael Espindola <espindola@google.com>
> Subject: [trunk][patch] Factor check for names starting in __builtin_ or   __sync_
> To: "GCC Patches" <gcc-patches@gcc.gnu.org>
> Cc: "Diego Novillo" <dnovillo@google.com>
> Date: Thursday, 2 April, 2009, 11:05 AM
> This is just a small code refactoring from the lto branch.
> It just adds
> the function is_builtin_name to centralize the checks for
> names starting
> with __sync_ or __builtin_.
> 
> OK for trunk if bootstraps and all tests are OK?
> 
> 2009-04-02  Rafael Avila de Espindola 
> <espindola@google.com>
> 
> 	* builtins.c (is_builtin_name): New.
> 	(called_as_built_in): Use is_builtin_name.
> 	* tree.h (is_builtin_name): New.
> 	* varasm.c (incorporeal_function_p): Use is_builtin_name.
> 
> Cheers,
> -- 
> Rafael Avila de Espindola
> 
> Google | Gordon House | Barrow Street | Dublin 4 | Ireland
> Registered in Dublin, Ireland | Registration Number: 368047


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