This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Problem with sizeof (mingw32 and cygwin32)
- To: <egcs-patches at cygnus dot com>
- Subject: Problem with sizeof (mingw32 and cygwin32)
- From: "Antonio M. O. Neto" <anmendes at cruzeironet dot com dot br>
- Date: Tue, 21 Jul 1998 22:52:43 -0300
Hello
Executing the program below:
#include " stdio.h "
main ()
{
printf (" int %i bytes\n ", sizeof(int));
printf (" long int %i bytes\n ", sizeof(long int));
printf (" long long int %i bytes\n ", sizeof(long long int));
printf (" float %i bytes\n ", sizeof(float));
printf (" double %i bytes\n ", sizeof(double));
printf (" long double %i bytes\n ", sizeof(long double));
}
I obtain as exit (mingw32):
int 4 bytes
long int 4 bytes
long long int 8 bytes
float 4 bytes
double 8 bytes
long double 12 bytes
Would not the correct be (in the order) 4, 8, 16, 4, 8, 12 bytes?
--the long double is the only defined in the i386.h as being of 96 bits (12 bytes)
If the correct goes this, I send soon the correction patch.
Antonio Mendes de Oliveira Neto (anmendes@cruzeironet.com.br)
i386.h.diff