libstdc++/5

bkoz@cygnus.com bkoz@cygnus.com
Tue Aug 31 18:10:00 GMT 1999


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


More information about the Libstdc++-prs mailing list