[prev in list] [next in list] [prev in thread] [next in thread]
List: pcc-list
Subject: Re: pcc doesn't compile on mips
From: Anders Magnusson <ragge () ludd ! ltu ! se>
Date: 2008-11-30 21:02:36
Message-ID: 4932FF6C.4030903 () ludd ! ltu ! se
[Download RAW message or body]
rivo nurges wrote:
> Hi!
>
> Following patch allows to compile pcc on mips(NetBSD/cobalt).
>
Great, thanks! Applied!
-- Ragge
> Index: arch/mips/code.c
> ===================================================================
> RCS file: /cvsroot/pcc/arch/mips/code.c,v
> retrieving revision 1.14
> diff -u -p -r1.14 code.c
> --- arch/mips/code.c 29 Jul 2008 13:25:58 -0000 1.14
> +++ arch/mips/code.c 30 Nov 2008 11:38:22 -0000
> @@ -307,7 +307,7 @@ param_double(struct symtab *sym, int *re
> sym->sflags |= STNODE;
> } else {
> q = tempnode(tmpnr, sym->stype, sym->sdf, sym->ssue);
> - p = buildtree(sym);
> + p = nametree(sym);
> p = buildtree(ASSIGN, p, q);
> ecomp(p);
> }
> Index: arch/mips/local2.c
> ===================================================================
> RCS file: /cvsroot/pcc/arch/mips/local2.c,v
> retrieving revision 1.23
> diff -u -p -r1.23 local2.c
> --- arch/mips/local2.c 22 Nov 2008 16:12:25 -0000 1.23
> +++ arch/mips/local2.c 30 Nov 2008 11:38:23 -0000
> @@ -793,7 +793,7 @@ flshape(NODE * p)
>
> if (o == OREG || o == REG || o == NAME)
> return SRDIR; /* Direct match */
> - if (o == UMUL && shumul(p->n_left))
> + if (o == UMUL && shumul(p->n_left, SOREG))
> return SROREG; /* Convert into oreg */
> return SRREG; /* put it into a register */
> }
> Index: arch/mips/order.c
> ===================================================================
> RCS file: /cvsroot/pcc/arch/mips/order.c,v
> retrieving revision 1.11
> diff -u -p -r1.11 order.c
> --- arch/mips/order.c 27 Sep 2008 07:35:23 -0000 1.11
> +++ arch/mips/order.c 30 Nov 2008 11:38:23 -0000
> @@ -81,7 +81,7 @@ myormake(NODE * q)
> * Shape matches for UMUL. Cooperates with offstar().
> */
> int
> -shumul(NODE *p, int order)
> +shumul(NODE *p, int shape)
> {
> if (x2debug)
> printf("shumul(%p)\n", p);
>
>
>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic