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] Speed-up get_identifier("main")


On Wed, 06 Aug 2003 18:19:30 -0400, Jason Merrill <jason@redhat.com> wrote:

> Could we use __builtin_constant_p to do this transformation transparently,
> i.e.
>
> #define get_identifier(STR) \
>   __builtin_constant_p (STR) \
>   ? get_identifier_with_length (STR, (unsigned) (STR)) \
                                                 ^strlen, oops
>   : (get_identifier) (STR)

Jason


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