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 for builtin strpbrk


>>>>> "Kaveh" == Kaveh R Ghazi <ghazi@caip.rutgers.edu> writes:

    Kaveh> WRT evaluating two constants, I called strpbrk, find the
    Kaveh> offset and return ("string1" + offset).  Is that the "right
    Kaveh> thing" to do?  Do I need to `fold' the PLUS_EXPR?  (It
    Kaveh> seems to be done elsewhere pretty often so I did.)

That all sounds sensible.  If there are host systems without `strpbrk'
we'll have to autoconf this out (or roll our own in libiberty), but
we'll cross that bridge when we get there.

Thanks,

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

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