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") (take 2)


On Thu, Aug 07, 2003 at 09:53:26AM -0400, Jakub Jelinek wrote:
> #if GCC_VERSION >= 3000
> # define get_identifier(str) \
>   (__builtin_constant_p (str)						\
>    ? get_identifier_with_length ((str), (unsigned) strlen (str))	\
>    : get_identifier (str))
> #endif

Additionally, the cast to unsigned is not good.  We should make
the argument to get_identifier_with_length be size_t.


r~


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