builtins.c (expand_builtin_strncmp, [...]): New functions.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Mon, 27 Nov 2000 05:00:06 +0000 (05:00 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Mon, 27 Nov 2000 05:00:06 +0000 (05:00 +0000)
commitda9e9f0862f6ba1c843d2241329a368b509a450b
tree415bfe1eb788d734afb9ccfea25ebbb397482eff
parent231db5f4ec6703b6b9a931fa37c0eab18d4d49d8
builtins.c (expand_builtin_strncmp, [...]): New functions.

* builtins.c (expand_builtin_strncmp, expand_builtin_strncpy): New
functions.
(expand_builtin): Handle BUILT_IN_STRNCPY and BUILT_IN_STRNCMP.

* builtins.def (BUILT_IN_STRNCPY, BUILT_IN_STRNCMP): New entries.

* c-common.c (c_common_nodes_and_builtins): Declare builtin
strncpy and strncmp.

* extend.texi (strncmp, strncpy): Document new builtins.

testsuite:
* gcc.c-torture/execute/string-opt-7.c: New test.
* gcc.c-torture/execute/string-opt-8.c: Likewise.

From-SVN: r37777
gcc/ChangeLog
gcc/builtins.c
gcc/builtins.def
gcc/c-common.c
gcc/extend.texi
gcc/testsuite/gcc.c-torture/execute/string-opt-7.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/execute/string-opt-8.c [new file with mode: 0644]