2.95.3 and 3.2.1 seem to do it right?
long a;
long b;
long long c;
void foo(void)
{
c = a * b;
}
.file "t.c"
.version "01.01"
gcc2_compiled.:
.text
.align 4
.globl foo
.type foo,@function
foo:
pushl %ebp
movl %esp,%ebp
movl a,%eax
imull b,%eax
movl %eax,c
cltd
movl %edx,c+4
.L2:
movl %ebp,%esp
popl %ebp
ret
.Lfe1:
.size foo,.Lfe1-foo
.comm a,4,4
.comm b,4,4
.comm c,8,4
.ident "GCC: (GNU) 2.95.3 20010315 (release)"
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/