libstdc++/5: libstdc++ is not transparent to -malign-double egcs switch

hob@scali.com hob@scali.com
Thu Aug 26 03:37:00 GMT 1999


>Number:         5
>Category:       libstdc++
>Synopsis:       libstdc++ is not transparent to -malign-double egcs switch
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 26 03:37:04 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     HÃ¥kon O. Bugge
>Release:        2.9.0
>Organization:
>Environment:
RH 6.0, egcs 1.1.2, x86
>Description:
Applications using libio.h (f. eks.) cannot be 
compiled with "-malign-double" egcs switch. If it does, the
size of struct _IO_FILE changes, and the application
crashes.
>How-To-Repeat:
Example:
----------
#include <libio.h>
#include <stdio.h>

int main() {
 
 printf("sizeof(struct _IO_FILE) = %3d\n", sizeof(struct _IO_FILE));
  return 0;
}
-----------

The program above yields different result
compiled with -m{no-}align-double
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the Libstdc++-prs mailing list