mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-29 06:47:21 +01:00
Apparently this patch fixes the objc backend on the i386 platforms.
Without this, compiled programs die with FP errors. This is originally credited to: jlemon@netcom.com (Jonathan Lemon), and has been forwarded to me by quite a few of people.
This commit is contained in:
parent
0adcbd83f1
commit
2c80f2dbdb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=19194
@ -5312,10 +5312,17 @@
|
||||
coprocessor registers as containing a possible return value,
|
||||
simply pretend the untyped call returns a complex long double
|
||||
value. */
|
||||
#if 1
|
||||
/* this may be part of (set (reg: ..) (call_insn ...)), and we can't
|
||||
directly set a fp register from the call. so we revert to the
|
||||
old behavior - jlemon@netcom.com (Jonathan Lemon) */
|
||||
emit_call_insn (gen_call (operands[0], const0_rtx, NULL, const0_rtx));
|
||||
#else
|
||||
emit_call_insn (TARGET_80387
|
||||
? gen_call_value (gen_rtx (REG, XCmode, FIRST_FLOAT_REG),
|
||||
operands[0], const0_rtx)
|
||||
: gen_call (operands[0], const0_rtx));
|
||||
#endif
|
||||
|
||||
for (i = 0; i < XVECLEN (operands[2], 0); i++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user