strspn, strcspn, strpbrk functions make a bitmap out of their second argument 
and then process their first argument using that bitmap.
If the second argument is a constant string, that bitmap should be built at the 
compile time, and strspn call be replaced with some intrinsic function that can 
use that bitmap.

-- 
           Summary: should always optimize constant second argument to
                    strspn & Co. at compile time
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: melkov at comptek dot ru
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19652

Reply via email to