This is the mail archive of the libstdc++-prs@sourceware.cygnus.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: libstdc++/5


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]