This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
This is a resend... -Alex. ----- Original Message ----- From: "Alexander Stohr" <Alexander.Stohr@gmx.de> To: <libc-alpha@sources.redhat.com> Cc: <drepper@redhat.com> Sent: Wednesday, November 10, 2004 10:15 AM Subject: [PATCH] i386 - fix missing volatile before asm in fpu control word macros > Hello, > > when doing some experimental coding on an i386 compatible system > i tried using the control word load and store assembler macros > from the glib 2.3.3 file fpu_control.h. This showed me that a > combination of writing the fpu control register and reading it > back for printing it to the console did result in a wrong print > (old cw value) as soon as the code optimizer of gcc got enabled. > > my solution adds the volatile statement to the respective lines > in the global header file. i am sure that several other platforms > (e.g. x86_64) might need a rather similar change, but i dont have > the means for veryfing compilation right now. > > feel free to integrate the attached patch into your cvs tree. > > -Alex. > > -- > NEU +++ DSL Komplett von GMX +++ http://www.gmx.net/de/go/dsl > GMX DSL-Netzanschluss + Tarif zum supergünstigen Komplett-Preis!
Attachment:
glibc-2.3.3-i386-fpucw-volatile.diff
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |