On 11/04/2010 07:03 PM, Steve Kargl wrote:
On Thu, Nov 04, 2010 at 06:37:54PM +0100, Anders Magnusson wrote:
Module Name:    pcc
Committed By:   ragge
Date:           Thu Nov  4 17:37:54 UTC 2010

Modified Files:
        pcc/arch/amd64: code.c

Log Message:
Set df/ap in node when dealing with varargs.
I believe that this change may be one step
closer to allowing pcc to compile itself on
amd64-*-freebsd.
Yes, I hope so, I'm currently working on FreeBSD/amd64.
I now hit a new failure.

troutmask:sgk[206] cat h.c
#include<stdio.h>
int
main(void)
{
    printf("Hello\n");
    return 0;
}
troutmask:sgk[207] ~/work/bin/pcc -o z h.c
/tmp/ctm.2CWHXn: Assembler messages:
/tmp/ctm.2CWHXn:25: Error: expected comma after name `' in .size directive
Hehe, this is the bug I'm hunting for right now :-)

-- Ragge
troutmask:sgk[210] ~/work/bin/pcc -S h.c
troutmask:sgk[211] tail h.s
         movl %edx,-4(%rbp)
         movl $0,-8(%rbp)
         jmp .L110
.L110:
         movl -8(%rbp),%eax
         leave
         ret
         .size (null),.-(null)
         .ident "PCC: pcc 0.9.9 (freebsd)"
         .end

Those (null) look suspicious.


Reply via email to