This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/15905] frstor in assembler inline offsets in memory by 4
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jun 2004 19:24:34 -0000
- Subject: [Bug c/15905] frstor in assembler inline offsets in memory by 4
- References: <20040609203854.15905.stian@nixia.no>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-11 19:24 -------
You most likely want:
__asm__ __volatile__ ("fsave %0\n" : : "m"(*fpubuf));
and not what you have.
Likewise for the frstor, other wise you are passing the address of fpubuf.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15905