This is the mail archive of the
libstdc++-prs@sourceware.cygnus.com
mailing list for the libstdc++ project.
libstdc++/5: libstdc++ is not transparent to -malign-double egcs switch
- To: libstdc++-gnats@sourceware.cygnus.com
- Subject: libstdc++/5: libstdc++ is not transparent to -malign-double egcs switch
- From: hob@scali.com
- Date: 26 Aug 1999 10:28:03 -0000
- Cc: rws@scali.no
- Reply-To: hob@scali.com
- Resent-Cc: libstdc++-prs@sourceware.cygnus.com,
- Resent-Reply-To: gnats-admin@sourceware.cygnus.com, hob@scali.com
- Resent-To: nobody@sourceware.cygnus.com
>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: