Anders Magnusson | 2 Nov 2010 20:37
Picon

CVS commit: pcc/arch/amd64


Module Name:	pcc
Committed By:	ragge
Date:		Tue Nov  2 19:37:58 UTC 2010

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

Log Message:
Use block() instead of talloc() since the latter do not clear nodes.

To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 pcc/arch/amd64/code.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Anders Magnusson | 2 Nov 2010 20:51
Picon

CVS commit: pcc/arch/amd64


Module Name:	pcc
Committed By:	ragge
Date:		Tue Nov  2 19:51:03 UTC 2010

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

Log Message:
Older binutils cannot handle leal, and since neither FreeBSD nor OpenBSD
have new enough binutils we'll disable emission of leal for now.

To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 pcc/arch/amd64/table.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Anders Magnusson | 4 Nov 2010 18:36
Picon

CVS commit: pcc/mip


Module Name:	pcc
Committed By:	ragge
Date:		Thu Nov  4 17:36:41 UTC 2010

Modified Files:
	pcc/mip: mkext.c

Log Message:
Fix potential LP64 bug.

To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 pcc/mip/mkext.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Anders Magnusson | 4 Nov 2010 18:37
Picon

CVS commit: pcc/arch/amd64


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.

To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 pcc/arch/amd64/code.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Anders Magnusson | 4 Nov 2010 18:39
Picon

CVS commit: pcc/arch/amd64


Module Name:	pcc
Committed By:	ragge
Date:		Thu Nov  4 17:39:41 UTC 2010

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

Log Message:
Must break out all function calls that return values to avoid arg
trashing in other functions.

To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 pcc/arch/amd64/local.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Steve Kargl | 4 Nov 2010 19:03
Picon

Re: CVS commit: pcc/arch/amd64

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.

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

(Continue reading)

Anders Magnusson | 4 Nov 2010 19:13
Picon

Re: CVS commit: pcc/arch/amd64

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:
(Continue reading)

Anders Magnusson | 4 Nov 2010 22:12
Picon

CVS commit: pcc/arch/amd64


Module Name:	pcc
Committed By:	ragge
Date:		Thu Nov  4 21:12:05 UTC 2010

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

Log Message:
Put register assignments with expressions before assigning the rest of
the registers when doing function calls.  Solves a problem where some
arguments were trashed by instructions with side effects (idivl).
Now a pcc-compiled pcc can (at least) compile hello world.

To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 pcc/arch/amd64/code.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Anders Magnusson | 5 Nov 2010 16:52
Picon

CVS commit: pcc/mip


Module Name:	pcc
Committed By:	ragge
Date:		Fri Nov  5 15:52:52 UTC 2010

Modified Files:
	pcc/mip: reader.c regs.c

Log Message:
Just ignore initial statements that are not recognized as reg-mem moves.

To generate a diff of this commit:
cvs rdiff -u -r1.263 -r1.264 pcc/mip/reader.c
cvs rdiff -u -r1.212 -r1.213 pcc/mip/regs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Anders Magnusson | 5 Nov 2010 16:54
Picon

CVS commit: pcc/cc/cpp


Module Name:	pcc
Committed By:	ragge
Date:		Fri Nov  5 15:54:01 UTC 2010

Modified Files:
	pcc/cc/cpp: cpp.c

Log Message:
Do not expand macros that are currently expanding.
XXX - might have side effects.

To generate a diff of this commit:
cvs rdiff -u -r1.105 -r1.106 pcc/cc/cpp/cpp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.


Gmane