Index: t4.c =================================================================== RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/memcheck/t4.c,v retrieving revision 1.2 diff -c -3 -p -r1.2 t4.c *** t4.c 1998/12/16 22:17:02 1.2 --- t4.c 2000/12/23 03:46:41 *************** struct s { *** 12,34 **** int a, b; }; ! struct s *sp; void test () { ! sp = c_malloc (sizeof (struct s)); ! sp->c = 0; ! sp->a = 12; ! sp->b = 47; ! foo (sp); } ! int foo (struct s *sp) { ! return sp->c + sp->a + sp->b; } void setup () /* NOCHECK */ { ! mark_region (&sp, sizeof (sp), ACCESS_RW); } --- 12,34 ---- int a, b; }; ! struct s *sp2; void test () { ! sp2 = c_malloc (sizeof (struct s)); ! sp2->c = 0; ! sp2->a = 12; ! sp2->b = 47; ! foo (sp2); } ! int foo (struct s *sp2) { ! return sp2->c + sp2->a + sp2->b; } void setup () /* NOCHECK */ { ! mark_region (&sp2, sizeof (sp2), ACCESS_RW); } Index: t5.c =================================================================== RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/memcheck/t5.c,v retrieving revision 1.2 diff -c -3 -p -r1.2 t5.c *** t5.c 1998/12/16 22:17:03 1.2 --- t5.c 2000/12/23 03:46:41 *************** struct s { *** 12,33 **** int a, b; }; ! struct s *sp; void test () { ! sp = c_malloc (sizeof (struct s)); ! sp->c = 0; ! sp->b = 47; ! foo (sp); } ! int foo (struct s *sp) { ! return sp->c + sp->a + sp->b; } void setup () /* NOCHECK */ { ! mark_region (&sp, sizeof (sp), ACCESS_RW); } --- 12,33 ---- int a, b; }; ! struct s *sp2; void test () { ! sp2 = c_malloc (sizeof (struct s)); ! sp2->c = 0; ! sp2->b = 47; ! foo (sp2); } ! int foo (struct s *sp2) { ! return sp2->c + sp2->a + sp2->b; } void setup () /* NOCHECK */ { ! mark_region (&sp2, sizeof (sp2), ACCESS_RW); } Index: t6.c =================================================================== RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/memcheck/t6.c,v retrieving revision 1.2 diff -c -3 -p -r1.2 t6.c *** t6.c 1998/12/16 22:17:04 1.2 --- t6.c 2000/12/23 03:46:41 *************** struct s { *** 12,39 **** int a, b; }; ! struct s *sp; void test () { ! sp = c_malloc (sizeof (struct s) * 2); ! sp->c = 0; ! sp->b = 47; ! cp (sp); ! foo (sp); } ! int foo (struct s *sp) { ! return sp[1].c + sp[1].a + sp[1].b; } ! int cp (struct s *sp) { ! sp[1] = sp[0]; } void setup () /* NOCHECK */ { ! mark_region (&sp, sizeof (sp), ACCESS_RW); } --- 12,39 ---- int a, b; }; ! struct s *sp2; void test () { ! sp2 = c_malloc (sizeof (struct s) * 2); ! sp2->c = 0; ! sp2->b = 47; ! cp (sp2); ! foo (sp2); } ! int foo (struct s *sp2) { ! return sp2[1].c + sp2[1].a + sp2[1].b; } ! int cp (struct s *sp2) { ! sp2[1] = sp2[0]; } void setup () /* NOCHECK */ { ! mark_region (&sp2, sizeof (sp2), ACCESS_RW); } Index: t7.c =================================================================== RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/memcheck/t7.c,v retrieving revision 1.2 diff -c -3 -p -r1.2 t7.c *** t7.c 1998/12/16 22:17:05 1.2 --- t7.c 2000/12/23 03:46:41 *************** struct s { *** 12,40 **** int a, b; }; ! struct s *sp; void test () { ! sp = c_malloc (sizeof (struct s) * 2); ! sp->c = 0; ! sp->a = 13; ! sp->b = 47; ! cp (sp); ! foo (sp); } ! int foo (struct s *sp) { ! return sp[1].c + sp[1].a + sp[1].b; } ! int cp (struct s *sp) { ! sp[1] = sp[0]; } void setup () /* NOCHECK */ { ! mark_region (&sp, sizeof (sp), ACCESS_RW); } --- 12,40 ---- int a, b; }; ! struct s *sp2; void test () { ! sp2 = c_malloc (sizeof (struct s) * 2); ! sp2->c = 0; ! sp2->a = 13; ! sp2->b = 47; ! cp (sp2); ! foo (sp2); } ! int foo (struct s *sp2) { ! return sp2[1].c + sp2[1].a + sp2[1].b; } ! int cp (struct s *sp2) { ! sp2[1] = sp2[0]; } void setup () /* NOCHECK */ { ! mark_region (&sp2, sizeof (sp2), ACCESS_RW); }