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_


2009/4/2 Graham Stott <graham.stott@btinternet.com>:
>
> Hi,
>
> Couldn't you use DECL_BUILT_IN and DECL_FUNCTION_CODE to do this
> without looking at the name?

The problem is that some builtins correspond to library functions and
others don't. The
way the code currently checks that is via the name. The patch just
factor the check into
one function.

> Cheers
> Graham
>

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]