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]

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



>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:

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