* [PATCH] Fix the rest of PR target/64056
@ 2014-12-04 14:45 Ilya Enkovich
2014-12-04 14:58 ` Rainer Orth
0 siblings, 1 reply; 5+ messages in thread
From: Ilya Enkovich @ 2014-12-04 14:45 UTC (permalink / raw)
To: gcc-patches
Hi,
This patch adds a check for stpcpy function into gcc.target/i386/chkp-strlen-2.c test.
make check RUNTESTFLAGS="i386.exp=chkp-strlen-2.c" is OK. OK for trunk?
Thanks,
Ilya
--
2014-12-04 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.
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 ac04d95..0a911c1 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Fix the rest of PR target/64056
2014-12-04 14:45 [PATCH] Fix the rest of PR target/64056 Ilya Enkovich
@ 2014-12-04 14:58 ` Rainer Orth
2014-12-04 15:22 ` Ilya Enkovich
0 siblings, 1 reply; 5+ messages in thread
From: Rainer Orth @ 2014-12-04 14:58 UTC (permalink / raw)
To: Ilya Enkovich; +Cc: gcc-patches
Hi Ilya,
> This patch adds a check for stpcpy function into
> gcc.target/i386/chkp-strlen-2.c test.
>
> make check RUNTESTFLAGS="i386.exp=chkp-strlen-2.c" is OK. OK for trunk?
>
> Thanks,
> Ilya
> --
> 2014-12-04 Ilya Enkovich <ilya.enkovich@intel.com>
>
> PR target/64056
> * lib/target-supports.exp (check_effective_target_stpcpy): New.
new effective-target keywords need documentation in sourcebuild.texi.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Fix the rest of PR target/64056
2014-12-04 14:58 ` Rainer Orth
@ 2014-12-04 15:22 ` Ilya Enkovich
2014-12-04 19:40 ` Mike Stump
2014-12-05 22:43 ` Jeff Law
0 siblings, 2 replies; 5+ messages in thread
From: Ilya Enkovich @ 2014-12-04 15:22 UTC (permalink / raw)
To: Rainer Orth; +Cc: gcc-patches
On 04 Dec 15:58, Rainer Orth wrote:
> Hi Ilya,
>
>
> > This patch adds a check for stpcpy function into
> > gcc.target/i386/chkp-strlen-2.c test.
> >
> > make check RUNTESTFLAGS="i386.exp=chkp-strlen-2.c" is OK. OK for trunk?
> >
> > Thanks,
> > Ilya
> > --
> > 2014-12-04 Ilya Enkovich <ilya.enkovich@intel.com>
> >
> > PR target/64056
> > * lib/target-supports.exp (check_effective_target_stpcpy): New.
>
> new effective-target keywords need documentation in sourcebuild.texi.
>
> Rainer
>
> --
> -----------------------------------------------------------------------------
> Rainer Orth, Center for Biotechnology, Bielefeld University
Thanks for the notice! I see there is also no description for mempcpy target check. So add both of them.
Thanks,
Ilya
--
gcc/
2014-12-04 Ilya Enkovich <ilya.enkovich@intel.com>
PR target/64056
* doc/sourcebuild.texi: Add mempcpy and stpcpy for Effective-Target Keywords.
gcc/testsuite/
2014-12-04 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.
diff --git a/gcc/doc/sourcebuild.texi b/gcc/doc/sourcebuild.texi
index 20a206d..797d3ee 100644
--- a/gcc/doc/sourcebuild.texi
+++ b/gcc/doc/sourcebuild.texi
@@ -1761,6 +1761,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}.
@@ -1790,6 +1793,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/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 ac04d95..0a911c1 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Fix the rest of PR target/64056
2014-12-04 15:22 ` Ilya Enkovich
@ 2014-12-04 19:40 ` Mike Stump
2014-12-05 22:43 ` Jeff Law
1 sibling, 0 replies; 5+ messages in thread
From: Mike Stump @ 2014-12-04 19:40 UTC (permalink / raw)
To: Ilya Enkovich; +Cc: Rainer Orth, gcc-patches
On Dec 4, 2014, at 7:22 AM, Ilya Enkovich <enkovich.gnu@gmail.com> wrote:
>>> --
>>> 2014-12-04 Ilya Enkovich <ilya.enkovich@intel.com>
>>>
>>> PR target/64056
>>> * lib/target-supports.exp (check_effective_target_stpcpy): New.
>
> Thanks for the notice! I see there is also no description for mempcpy target check. So add both of them.
Ok.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Fix the rest of PR target/64056
2014-12-04 15:22 ` Ilya Enkovich
2014-12-04 19:40 ` Mike Stump
@ 2014-12-05 22:43 ` Jeff Law
1 sibling, 0 replies; 5+ messages in thread
From: Jeff Law @ 2014-12-05 22:43 UTC (permalink / raw)
To: Ilya Enkovich, Rainer Orth; +Cc: gcc-patches
On 12/04/14 08:22, Ilya Enkovich wrote:
> On 04 Dec 15:58, Rainer Orth wrote:
>> Hi Ilya,
>>
>>
>>> This patch adds a check for stpcpy function into
>>> gcc.target/i386/chkp-strlen-2.c test.
>>>
>>> make check RUNTESTFLAGS="i386.exp=chkp-strlen-2.c" is OK. OK for trunk?
>>>
>>> Thanks,
>>> Ilya
>>> --
>>> 2014-12-04 Ilya Enkovich <ilya.enkovich@intel.com>
>>>
>>> PR target/64056
>>> * lib/target-supports.exp (check_effective_target_stpcpy): New.
>>
>> new effective-target keywords need documentation in sourcebuild.texi.
>>
>> Rainer
>>
>> --
>> -----------------------------------------------------------------------------
>> Rainer Orth, Center for Biotechnology, Bielefeld University
>
> Thanks for the notice! I see there is also no description for mempcpy target check. So add both of them.
>
> Thanks,
> Ilya
> --
> gcc/
>
> 2014-12-04 Ilya Enkovich <ilya.enkovich@intel.com>
>
> PR target/64056
> * doc/sourcebuild.texi: Add mempcpy and stpcpy for Effective-Target Keywords.
>
> gcc/testsuite/
>
> 2014-12-04 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.
OK.
jeff
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-12-05 22:43 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-04 14:45 [PATCH] Fix the rest of PR target/64056 Ilya Enkovich
2014-12-04 14:58 ` Rainer Orth
2014-12-04 15:22 ` Ilya Enkovich
2014-12-04 19:40 ` Mike Stump
2014-12-05 22:43 ` Jeff Law
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).