Mail Archives: djgpp/2001/04/18/08:30:37
Waldemar Schultz schrieb:
>
> Eli Zaretskii schrieb:
> >
> > On Wed, 18 Apr 2001, Waldemar Schultz wrote:
> >
> > > BTW I couldn't resist to try the `-fpack-struct' switch Eli mentioned:
> > > now MINGW reports the size of the struct being _97_ vs _88_ without the
> > > switch.
> >
> > That sounds like a bug in MinGW. What version of GCC is that? Is the
> > version of GCC you use for DJGPP compilation different?
>
> MINGW>gcc -v
> Reading specs from
> E:\MINGW\BIN\..\lib\gcc-lib\i386-mingw32msvc\2.95.2\specs
> gcc version 2.95.2 19991024 (release)
>
> DJGPP>gcc -v
> Reading specs from e:/djgpp/lib/gcc-lib/djgpp/2.952/specs
> gcc version 2.95.2 19991024 (release)
>
> --
> Gruss Waldemar Schultz.
> Technische Universität München, Zentrum Mathematik M1, D 80290 München
> Tel: +49 (0)89 2892 8226 FAX: +49 (0)89 2892 8228
sorry for replying to my own post.
I used gcc 2.95.3(20010315) and got these confusing results:
Compiler switch reported size of struct vp
djgpp gcc 2.95.2 -fpack-struct 80 eighty
djgpp gcc 2.95.3 -fpack-struct 79 seventynine
mingw gcc 2.95.2 -fpack-struct 79 seventynine
djgpp gcc 2.95.2 80 eighty
djgpp gcc 2.95.3 80 eighty
mingw gcc 2.95.2 88 eightyeight
when manually added, the sum of the sizes of the struct members is _79_
.
--
Gruss Waldemar Schultz.
Technische Universität München, Zentrum Mathematik M1, D 80290 München
Tel: +49 (0)89 2892 8226 FAX: +49 (0)89 2892 8228
- Raw text -