This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/19652] New: should always optimize constant second argument to strspn & Co. at compile time
- From: "melkov at comptek dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jan 2005 07:18:22 -0000
- Subject: [Bug middle-end/19652] New: should always optimize constant second argument to strspn & Co. at compile time
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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