diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 2f0e9aa657c..9985bd93790 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2009-11-10 Eric Botcazou + + * gcc.c-torture/execute/ipa-sra-2.c: Use calloc instead of malloc. + * gcc.dg/pr41963.c: Do not include math.h. Declare fabsf manually. + 2009-11-10 Kaveh R. Ghazi * gcc.c-torture/compile/pr41987.c: New. diff --git a/gcc/testsuite/gcc.c-torture/execute/ipa-sra-2.c b/gcc/testsuite/gcc.c-torture/execute/ipa-sra-2.c index 9d5ae440975..515d4162406 100644 --- a/gcc/testsuite/gcc.c-torture/execute/ipa-sra-2.c +++ b/gcc/testsuite/gcc.c-torture/execute/ipa-sra-2.c @@ -14,11 +14,10 @@ union both struct small small; }; -extern void *malloc(__SIZE_TYPE__); +extern void *calloc (__SIZE_TYPE__, __SIZE_TYPE__); extern void free (void *); -static int -__attribute__((noinline)) +static int __attribute__((noinline)) foo (int fail, union both *agg) { int r; @@ -31,7 +30,7 @@ foo (int fail, union both *agg) int main (int argc, char *argv[]) { - union both *agg = malloc (sizeof (struct small)); + union both *agg = calloc (1, sizeof (struct small)); int r; r = foo ((argc > 2000), agg); diff --git a/gcc/testsuite/gcc.dg/pr41963.c b/gcc/testsuite/gcc.dg/pr41963.c index f8bf4a1b81c..408a3d24c00 100644 --- a/gcc/testsuite/gcc.dg/pr41963.c +++ b/gcc/testsuite/gcc.dg/pr41963.c @@ -1,7 +1,7 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math" } */ -#include +extern float fabsf(float); extern float sqrtf(float); static __attribute__((noinline)) void f (float *dst, float *src)