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]

Re: [PATCH] Optimize strchr(x, 0), strcmp("a","b") and strstr("abc","bc")


On Nov  7, 2000, Jakub Jelinek <jakub@redhat.com> wrote:

> 4) optimizes strchr(x, 0) into __builtin_strlen(x) (ie. on some machine
>    it will be even more optimized)

Is this a typo or a thinko?  It should be `x + __builtin_strlen(x)'.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

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