Commit 8d598c74 by Steve Ellcey Committed by Steve Ellcey

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
parent 73f22c49
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;
......
......@@ -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"]
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment