This is the mail archive of the
mailing list for the GCC project.
RE: Patch for gcc.c-torture/execute/ieee/20010226-1.c
- From: "D.Venkatasubramanian, Noida" <dvenkat at noida dot hcltech dot com>
- To: Fergus Henderson <fjh at cs dot mu dot oz dot au>, Manfred Hollstein <manfredh at redhat dot com>, Richard dot Earnshaw at arm dot com
- Cc: gcc-patches at gcc dot gnu dot org, "'gcc at gcc dot gnu dot org'" <gcc at gcc dot gnu dot org>
- Date: Mon, 23 Sep 2002 19:48:00 +0530
- Subject: RE: Patch for gcc.c-torture/execute/ieee/20010226-1.c
>The following is an even more general alternative:
> #include <limits.h>
> if (sizeof(long double) * CHAR_BIT < 79)
> exit (0);
This solution could be the best if we could include limits.h. Sorry, I
(CHAR_BIT < 79), in accordance, with IEEE Specs on long double.
Could someone point whether it is OK to include the header.
The other solution of making a test.x, could be employed if this wasn't
Just hoping, Is there some way to find out the number of significand
That would make the solution, er .., complete.
The other solution,
if (sizeof(long double) <= 4 && ((unsigned char)-1) == 255)
would again make it specific, something we are trying to avoid, isn't it ;-)
#if defined (__H8300__) || defined (__H8300H__) || defined (__H8300S__)
Thanks for pointing that, Silly me, I will remember next time ;-))
Thanks a lot,
`Contrariwise,' continued Tweedledee, `if it was so, it might be; and if it
were so, it would be; but as it isn't, it ain't. That's logic.'