aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorSteve Ellcey <sje@cup.hp.com>2010-11-05 21:07:53 +0000
committerSteve Ellcey <sje@gcc.gnu.org>2010-11-05 21:07:53 +0000
commit8d598c74413a6db7810b2f5c0fc8fe08de3acecf (patch)
tree2ba491fd011e0a0558242c0d7135f949071e94ad /gcc
parent73f22c498e2c8a3073ec5daf746713d9fc032e09 (diff)
downloadgcc-8d598c74413a6db7810b2f5c0fc8fe08de3acecf.zip
gcc-8d598c74413a6db7810b2f5c0fc8fe08de3acecf.tar.gz
gcc-8d598c74413a6db7810b2f5c0fc8fe08de3acecf.tar.bz2
target-supports.exp (check_function_available): Use -fno-builtin.
2010-11-05 Steve Ellcey <sje@cup.hp.com> * lib/target-supports.exp (check_function_available): Use -fno-builtin. * (check_effective_target_mempcpy): New. * gcc.c-torture/execute/pr45636.c: Move this... * gcc.dg/torture/pr45636.c: to here. Add add dg- directives. From-SVN: r166378
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog7
-rw-r--r--gcc/testsuite/gcc.dg/torture/pr45636.c (renamed from gcc/testsuite/gcc.c-torture/execute/pr45636.c)2
-rw-r--r--gcc/testsuite/lib/target-supports.exp8
3 files changed, 16 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index fda07c3..bace48a 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2010-11-05 Steve Ellcey <sje@cup.hp.com>
+
+ * lib/target-supports.exp (check_function_available): Use -fno-builtin.
+ * (check_effective_target_mempcpy): New.
+ * gcc.c-torture/execute/pr45636.c: Move this...
+ * gcc.dg/torture/pr45636.c: to here. Add add dg- directives.
+
2010-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* gcc.target/i386/i386.exp (FLAGS): Remove.
diff --git a/gcc/testsuite/gcc.c-torture/execute/pr45636.c b/gcc/testsuite/gcc.dg/torture/pr45636.c
index 031c803..0566de8 100644
--- a/gcc/testsuite/gcc.c-torture/execute/pr45636.c
+++ b/gcc/testsuite/gcc.dg/torture/pr45636.c
@@ -1,3 +1,5 @@
+/* { dg-do run } */
+/* { dg-require-effective-target mempcpy } */
/* PR fortran/45636 */
typedef __SIZE_TYPE__ size_t;
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index f387d7e..751c1c5 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -1366,7 +1366,7 @@ proc check_function_available { function } {
#endif
char $function ();
int main () { $function (); }
- }]]
+ }] "-fno-builtin" ]
}
# Returns true iff "fork" is available on the target system.
@@ -3741,3 +3741,9 @@ proc check_effective_target_run_expensive_tests { } {
}
return 0
}
+
+# Returns 1 if "mempcpy" is available on the target system.
+
+proc check_effective_target_mempcpy {} {
+ return [check_function_available "mempcpy"]
+}