Patch to add builtin index/rindex

Richard Henderson rth@redhat.com
Sun Nov 12 11:20:00 GMT 2000


On Sun, Nov 12, 2000 at 01:04:50PM -0500, Kaveh R. Ghazi wrote:
> 	* builtins.c (expand_builtin): Handle BUILT_IN_INDEX and
> 	BUILT_IN_RINDEX.  Add missing checks for BUILT_IN_STRCHR and
> 	BUILT_IN_STRRCHR.
> 	* builtins.def (BUILT_IN_INDEX, BUILT_IN_RINDEX): New entries.
> 	* c-common.c (c_common_nodes_and_builtins): Declare index and
> 	rindex when nonansi builtins are allowed.
> 	* extend.texi (index, rindex): Document new builtins.

Ok.


r~


More information about the Gcc-patches mailing list