From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eli Zaretskii" To: kettenis@wins.uva.nl Cc: gdb-patches@sources.redhat.com, grossman@juniper.dot.net Subject: Re: [PATCH] Fix returning floating points values for x86 Date: Wed, 11 Jul 2001 09:13:00 -0000 Message-id: <1438-Wed11Jul2001191258+0300-eliz@is.elta.co.il> References: <200107110849.f6B8nGB19158@delius.kettenis.local> X-SW-Source: 2001-07/msg00257.html > Date: Wed, 11 Jul 2001 10:49:16 +0200 > From: Mark Kettenis > > * i386-tdep.c (i386_extract_return_value): "Fix" comment. > (i386_store_return_value): Frob FPU status and tag word to make > sure the return value is the only value on the FPU stack. Mark, could you please say a few words about the problem that this solves, and why is this the right solution? I admit I don't understand it, and the comment about st(0) scared me a bit: it's certainly _not_ true, in general, that st(0) is always FP0_REGNUM. TIA