+2014-12-05 Ilya Enkovich <ilya.enkovich@intel.com>
+
+ PR target/64056
+ * doc/sourcebuild.texi: Add mempcpy and stpcpy for Effective-Target Keywords.
+
2014-12-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
* diagnostic.h (diagnostic_expand_location): New inline function.
conversion functions and overflow is not always detected correctly by
those functions.
+@item mempcpy
+Target provides @code{mempcpy} function.
+
@item mmap
Target supports @code{mmap}.
This will be obsolete when GCC ensures a working @code{stdint.h} for
all targets.
+@item stpcpy
+Target provides @code{stpcpy} function.
+
@item trampolines
Target supports trampolines.
+2014-12-05 Ilya Enkovich <ilya.enkovich@intel.com>
+
+ PR target/64056
+ * lib/target-supports.exp (check_effective_target_stpcpy): New.
+ * gcc.target/i386/chkp-strlen-2.c: Add stpcpy target check.
+
2014-12-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
* gfortran.dg/line_length_5.f90: New test.
/* { dg-do compile } */
/* { dg-require-effective-target mpx } */
+/* { dg-require-effective-target stpcpy } */
/* { dg-options "-fcheck-pointer-bounds -mmpx -O2 -fdump-tree-strlen" } */
/* { dg-final { scan-tree-dump-not "strlen" "strlen" } } */
/* { dg-final { cleanup-tree-dump "strlen" } } */
return [check_function_available "mempcpy"]
}
+# Returns 1 if "stpcpy" is available on the target system.
+
+proc check_effective_target_stpcpy {} {
+ return [check_function_available "stpcpy"]
+}
+
# Check whether the vectorizer tests are supported by the target and
# append additional target-dependent compile flags to DEFAULT_VECTCFLAGS.
# Set dg-do-what-default to either compile or run, depending on target