folding STRING_CST + INTEGER_CST
Joseph S. Myers
jsm28@cam.ac.uk
Tue Jun 25 03:19:00 GMT 2002
On Mon, 24 Jun 2002, Aldy Hernandez wrote:
> another alternative is to fold STRING_CST+INTEGER_CST when we are
> building the trees for certain builtins accepting "const char *".
> the following come to mind:
>
> strspn, strstr, strcspn, strrchr, strchr, index, fputs
>
> ...since we know we don't need equality operations on them.
Some of these functions return pointers into their arguments, which may
then get compared afterwards.
--
Joseph S. Myers
jsm28@cam.ac.uk
More information about the Gcc
mailing list