From ae46635c410484adbb3a6b57e56e517ac76c9330 Mon Sep 17 00:00:00 2001 From: ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Sat, 6 Nov 2004 19:28:43 +0000 Subject: [PATCH] * gcc.dg/compat/generate-random.c (generate_random_data unsafe_state): Do not use C99 designators. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90188 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/compat/generate-random.c | 14 +++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3b420ea7f28c..41b771c81838 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2004-11-06 Eric Botcazou <ebotcazou@libertysurf.fr> + + * gcc.dg/compat/generate-random.c (generate_random_data unsafe_state): + Do not use C99 designators. + 2004-11-06 Eric Botcazou <ebotcazou@libertysurf.fr> * g++.dg/other/pragma-re-1.C (p, q): Fix type and remove cast. diff --git a/gcc/testsuite/gcc.dg/compat/generate-random.c b/gcc/testsuite/gcc.dg/compat/generate-random.c index cce21853a595..00c422493dab 100644 --- a/gcc/testsuite/gcc.dg/compat/generate-random.c +++ b/gcc/testsuite/gcc.dg/compat/generate-random.c @@ -175,8 +175,8 @@ static struct generate_random_data unsafe_state = in the initialization of randtbl) because the state table pointer is set to point to randtbl[1] (as explained below).) */ - .fptr = &randtbl[SEP_3 + 1], - .rptr = &randtbl[1], + &randtbl[SEP_3 + 1], /* fptr */ + &randtbl[1], /* rptr */ /* The following things are the pointer to the state information table, the type of the current generator, the degree of the current polynomial @@ -188,13 +188,13 @@ static struct generate_random_data unsafe_state = indexing every time to find the address of the last element to see if the front and rear pointers have wrapped. */ - .state = &randtbl[1], + &randtbl[1], /* state */ - .rand_type = TYPE_3, - .rand_deg = DEG_3, - .rand_sep = SEP_3, + TYPE_3, /* rand_type */ + DEG_3, /* rand_deg */ + SEP_3, /* rand_sep */ - .end_ptr = &randtbl[sizeof (randtbl) / sizeof (randtbl[0])] + &randtbl[sizeof (randtbl) / sizeof (randtbl[0])] /* end_ptr */ }; /* Initialize the random number generator based on the given seed. If the -- GitLab