aboutsummaryrefslogtreecommitdiff
path: root/gcc/builtins.def
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2003-04-13 23:46:11 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2003-04-13 23:46:11 +0000
commit9cb65f923c1dbf2012a31e90a08e8876ca01dc32 (patch)
tree6fe1e0659b55250f63aa29ca0be6aeef5e0dfe2a /gcc/builtins.def
parentf4f4610e036e239fb770127439d276439a621e3f (diff)
downloadgcc-9cb65f923c1dbf2012a31e90a08e8876ca01dc32.zip
gcc-9cb65f923c1dbf2012a31e90a08e8876ca01dc32.tar.gz
gcc-9cb65f923c1dbf2012a31e90a08e8876ca01dc32.tar.bz2
builtins.c (expand_builtin_memcpy): Add `endp' argument, use it.
gcc: * builtins.c (expand_builtin_memcpy): Add `endp' argument, use it. (expand_builtin_stpcpy): New. (expand_builtin): Add BUILT_IN_MEMPCPY & BUILT_IN_STPCPY. * builtins.def: Add mempcpy & stpcpy support. * doc/extend.texi (mempcpy, stpcpy): Document new builtins. testsuite: * gcc.c-torture/execute/string-opt-18.c: New test. From-SVN: r65551
Diffstat (limited to 'gcc/builtins.def')
-rw-r--r--gcc/builtins.def8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/builtins.def b/gcc/builtins.def
index f0df8bb..1d456e9 100644
--- a/gcc/builtins.def
+++ b/gcc/builtins.def
@@ -388,6 +388,10 @@ DEF_LIB_BUILTIN(BUILT_IN_MEMSET,
"__builtin_memset",
BT_FN_PTR_PTR_INT_SIZE,
ATTR_NOTHROW_LIST)
+DEF_EXT_LIB_BUILTIN(BUILT_IN_MEMPCPY,
+ "__builtin_mempcpy",
+ BT_FN_PTR_PTR_CONST_PTR_SIZE,
+ ATTR_NOTHROW_LIST)
DEF_LIB_BUILTIN(BUILT_IN_STRCAT,
"__builtin_strcat",
@@ -397,6 +401,10 @@ DEF_LIB_BUILTIN(BUILT_IN_STRNCAT,
"__builtin_strncat",
BT_FN_STRING_STRING_CONST_STRING_SIZE,
ATTR_NOTHROW_LIST)
+DEF_EXT_LIB_BUILTIN(BUILT_IN_STPCPY,
+ "__builtin_stpcpy",
+ BT_FN_STRING_STRING_CONST_STRING,
+ ATTR_NOTHROW_LIST)
DEF_LIB_BUILTIN(BUILT_IN_STRCPY,
"__builtin_strcpy",
BT_FN_STRING_STRING_CONST_STRING,