This is the mail archive of the gcc-bugs@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]

[Bug middle-end/19652] New: should always optimize constant second argument to strspn & Co. at compile time


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


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