Mail Archives: djgpp-workers/2003/11/09/15:13:38
Hello.
The header genmathv.h doesn't include enough braces in the definitions
it generates for test vectors. Below is a patch to fix this.
Even after applying this patch there are still warnings, because
the entries terminating the lists don't have enough braces.
I guess fixing "0" to be "{0}" is enough, but I didn't feel like
fixing tens of files. I'll do that some other time.
OK to commit?
Bye, Rich =]
Index: tests/cygnus/tgen/genmathv.h
===================================================================
RCS file: /cvs/djgpp/djgpp/tests/cygnus/tgen/genmathv.h,v
retrieving revision 1.1
diff -p -u -3 -r1.1 genmathv.h
--- tests/cygnus/tgen/genmathv.h 4 Apr 1999 08:13:40 -0000 1.1
+++ tests/cygnus/tgen/genmathv.h 9 Nov 2003 20:07:39 -0000
@@ -34,8 +34,8 @@ Write2Vector(int MeasBit, double ArgY, d
Arg1.value = ArgY, Arg2.value = ArgX, Expected.value = Exp;
- printf("{%d, %d, 0,__LINE__, 0x%08lx, 0x%08lx, "
- "0x%08lx, 0x%08lx, 0x%08lx, 0x%08lx,},"
+ printf("{%d, %d, 0,__LINE__, {{0x%08lx, 0x%08lx}, "
+ "{0x%08lx, 0x%08lx}, {0x%08lx, 0x%08lx}}},"
"\t/* %+.4E%s=F(%+8.4g,%+8.4g) */\n", MeasBit, ErrExp,
Expected.parts.msw, Expected.parts.lsw,
Arg1.parts.msw, Arg1.parts.lsw,
@@ -56,7 +56,7 @@ WriteVector(int MeasBit, double Arg, dou
Argument.value = Arg, Expected.value = Exp;
- printf("{%d, %d, 0,__LINE__, 0x%08lx, 0x%08lx, 0x%08lx, 0x%08lx, },"
+ printf("{%d, %d, 0,__LINE__, {{0x%08lx, 0x%08lx}, {0x%08lx, 0x%08lx}}},"
"\t/* %+.4E%s=F(%+8.4g) */\n", MeasBit, ErrExp,
Expected.parts.msw, Expected.parts.lsw,
Argument.parts.msw, Argument.parts.lsw,
- Raw text -