Fw: [PATCH] i386 - fix missing volatile before asm in fpu control word macros
Alexander Stohr
alexander.stohr@gmx.de
Sun Nov 21 21:12:00 GMT 2004
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!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: glibc-2.3.3-i386-fpucw-volatile.diff
Type: application/octet-stream
Size: 840 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20041121/03b31d59/attachment.obj>
More information about the Libc-alpha
mailing list