X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f Date: Sun, 09 Nov 2003 20:24:56 +0000 From: "Richard Dawe" Sender: rich AT phekda DOT freeserve DOT co DOT uk To: djgpp-workers AT delorie DOT com X-Mailer: Emacs 21.3.50 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6 Subject: Fix some warnings in Cygnus test vector generation [PATCH] Message-Id: Reply-To: djgpp-workers AT delorie DOT com 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,