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
This commit is contained in:
parent
73f22c498e
commit
8d598c7441
3 changed files with 16 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-do run } */
|
||||
/* { dg-require-effective-target mempcpy } */
|
||||
/* PR fortran/45636 */
|
||||
|
||||
typedef __SIZE_TYPE__ size_t;
|
|
@ -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"]
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue