* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166378
138bc75d-0d04-0410-961f-
82ee72b054a4
+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.
+/* { dg-do run } */
+/* { dg-require-effective-target mempcpy } */
/* PR fortran/45636 */
typedef __SIZE_TYPE__ size_t;
#endif
char $function ();
int main () { $function (); }
- }]]
+ }] "-fno-builtin" ]
}
# Returns true iff "fork" is available on the target system.
}
return 0
}
+
+# Returns 1 if "mempcpy" is available on the target system.
+
+proc check_effective_target_mempcpy {} {
+ return [check_function_available "mempcpy"]
+}