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] gcc.dg/compat: use fp values from arrays, not expressions


On Mon, Apr 26, 2004 at 05:32:16PM -0700, Zack Weinberg wrote:
> Janis Johnson <janis187@us.ibm.com> writes:
> 
> > This patch changes the gcc.dg/compat tests that compare floating point
> > values to use values from arrays rather than recomputing them each time
> > they are used.  Zack said this should make it easier to hunt down the
> > causes of test failures.
> 
> Why not use static initialization?  And why keep the g* variables
> around?

I've now got a version that uses static initialization for the arrays
of values but still uses init functions for the g* variables.  There
are 16 global variables (g*) for each of 16 struct types, and each
variable of the same type has a different value.  Static
initialization of those would be a lot of work if they continued to
have unique values, and those seem useful for making sure that the
correct values are passed.

Janis


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