This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch/testsuite] : gcc.dg/compat/struct-layout-1_generate.c fixes


> Oops sorry.  The patch is fine with me (just checked that the
> ffsll->my_ffsll change does not change the generated testcases in any way
> and the other changes are obvious).

Thanks to you and Janis.  We now can run the struct-layout-1 testsuite on 
Solaris when the bootstrap compiler is a recent version of GCC.  But we still 
have a compilation pb when the bootstrap compiler is Sun CC in defaut mode.

May I apply the attached patch?


2004-11-06 ?Eric Botcazou ?<ebotcazou@libertysurf.fr>

	* gcc.dg/compat/generate-random.c (generate_random_data unsafe_state):
	Do not use C99 designators.


-- 
Eric Botcazou
Index: gcc.dg/compat/generate-random.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/compat/generate-random.c,v
retrieving revision 1.1
diff -u -r1.1 generate-random.c
--- gcc.dg/compat/generate-random.c	23 Jul 2004 22:36:46 -0000	1.1
+++ gcc.dg/compat/generate-random.c	22 Sep 2004 11:48:37 -0000
@@ -175,8 +175,8 @@
    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 @@
    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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]