Subject: Re: EGCS 1.1 UPDATE rev. 5
To: None <tech-toolchain@netbsd.org>
From: Richard Earnshaw <rearnsha@arm.com>
List: current-users
Date: 08/19/1998 17:11:56
tv@pobox.com said:
> - arm32: Problem with -msoft-float not turned on by default, which I'm
> investigating. Otherwise working.
I've checked this with a build of egcs that I supped today.
For
void x (double x, double y)
{
z(x * y + 3.0);
}
with cc1 -O (yes, I cheated to make sure) I get
.text
.align 0
.global _x
.type _x,%function
_x:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 1, current_function_anonymous_args = 0
mov ip, sp
stmfd sp!, {fp, ip, lr, pc}
sub fp, ip, #4
bl ___muldf3
adr r2, L2
ldmia r2, {r2-r3}
bl ___adddf3
bl _z
ldmea fp, {fp, sp, pc}
L3:
.align 0
L2:
.long 0x40080000, 0x0 @ double 3.00000000000000000000e0
Lfe1:
Which is correct -soft-float output. The problem is, I believe in the
compilation of softfloat.c (I'll send a mail separately).
Richard.