aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorIlya Enkovich <ilya.enkovich@intel.com>2014-12-05 10:01:33 +0000
committerIlya Enkovich <ienkovich@gcc.gnu.org>2014-12-05 10:01:33 +0000
commit37b12f580458f07fe637d499c0418dec8ab6d055 (patch)
treefb646819b21b30f7742f58377924f59669828dcc /gcc
parent0e0aa6c67132a633bf33cba2a3914092e227cd1a (diff)
downloadgcc-37b12f580458f07fe637d499c0418dec8ab6d055.zip
gcc-37b12f580458f07fe637d499c0418dec8ab6d055.tar.gz
gcc-37b12f580458f07fe637d499c0418dec8ab6d055.tar.bz2
re PR target/64056 (gcc.target/i386/chkp-strlen-4.c etc. FAIL)
gcc/ PR target/64056 * doc/sourcebuild.texi: Add mempcpy and stpcpy for Effective-Target Keywords. gcc/testsuite/ PR target/64056 * lib/target-supports.exp (check_effective_target_stpcpy): New. * gcc.target/i386/chkp-strlen-2.c: Add stpcpy target check. From-SVN: r218415
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/doc/sourcebuild.texi6
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/gcc.target/i386/chkp-strlen-2.c1
-rw-r--r--gcc/testsuite/lib/target-supports.exp6
5 files changed, 24 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7858d20..9e66e60 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+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.
diff --git a/gcc/doc/sourcebuild.texi b/gcc/doc/sourcebuild.texi
index 98ba1a6..3498216 100644
--- a/gcc/doc/sourcebuild.texi
+++ b/gcc/doc/sourcebuild.texi
@@ -1764,6 +1764,9 @@ Target might have errors of a few ULP in string to floating-point
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}.
@@ -1793,6 +1796,9 @@ Target has the basic signed and unsigned C types in @code{stdint.h}.
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.
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 29802cd..42464ec 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+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.
diff --git a/gcc/testsuite/gcc.target/i386/chkp-strlen-2.c b/gcc/testsuite/gcc.target/i386/chkp-strlen-2.c
index 1ce426d..67691ee 100644
--- a/gcc/testsuite/gcc.target/i386/chkp-strlen-2.c
+++ b/gcc/testsuite/gcc.target/i386/chkp-strlen-2.c
@@ -1,5 +1,6 @@
/* { 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" } } */
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index 4846724..a9d8e6c 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -5856,6 +5856,12 @@ proc check_effective_target_mempcpy {} {
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