This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/13297] New: in x86 target -msoft_float should imply -mno-fp-ret-in-387
- From: "john32979 at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Dec 2003 08:32:07 -0000
- Subject: [Bug target/13297] New: in x86 target -msoft_float should imply -mno-fp-ret-in-387
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
If -msoft_float is used to generate hooks for linking to FP emulation library,
the results and arguments and results are still passed via the x87 stack if -
mno-fp-ret-in-387 is not defined as well. This will generate invalid code for
many embedded x86 platforms that do not have an FPU (e.g. AMD SC420).
-msoft_float should imply -mno-fp-ret-in-387 to avoid confusion. At the bare
minimum, a note regarding switching on -mno-fp-ret-in-387 in conjunction with -
msoft_float when developing on FPU-less platforms should be mentioned.
--
Summary: in x86 target -msoft_float should imply -mno-fp-ret-in-
387
Product: gcc
Version: 3.2.1
Status: UNCONFIRMED
Severity: enhancement
Priority: P2
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: john32979 at hotmail dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13297