This is the mail archive of the
libstdc++-prs@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: libstdc++/5
- To: bkoz@cygnus.com, hob@scali.com, libstdc++-prs@sourceware.cygnus.com, nobody@sourceware.cygnus.com
- Subject: Re: libstdc++/5
- From: bkoz@cygnus.com
- Date: 1 Sep 1999 01:10:30 -0000
Synopsis: libstdc++ is not transparent to -malign-double egcs switch
Responsible-Changed-From-To: unassigned->bkoz
Responsible-Changed-By: bkoz
Responsible-Changed-When: Tue Aug 31 18:10:29 1999
Responsible-Changed-Why:
taking it. . .
State-Changed-From-To: open->feedback
State-Changed-By: bkoz
State-Changed-When: Tue Aug 31 18:10:29 1999
State-Changed-Why:
Hmm. I'm able to compile this:
#include <libio.h>
#include <stdio.h>
#include <iostream>
int main() {
printf("sizeof(struct _IO_FILE) = %3d\n", sizeof(struct _IO_FILE));
cout<<"this crashes then"<<endl;
return 0;
}
like so:
g++ -malign-double list08.cc
and get:
%a.out
sizeof(struct _IO_FILE) = 152
this crashes then
I'm not quite sure I see your problem. If you are doing offsets of the _IO_FILE struct, it won't work, but then again, as this is reserved for the implementation, you're taking your life in your own hands with this approach. . ..
-benjamin
http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl?cmd=view&database=libstdc++&pr=5