This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch for builtin strpbrk
- To: ghazi at caip dot rutgers dot edu
- Subject: Re: Patch for builtin strpbrk
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Tue, 07 Nov 2000 08:43:00 -0800
- Cc: gcc-patches at gcc dot gnu dot org, jsm28 at cam dot ac dot uk
- Organization: CodeSourcery, LLC
- References: <200011071634.LAA04875@caip.rutgers.edu>
>>>>> "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