15 Aug 2010 10:08
Re: pcc-100814.tgz fails my regression test
Anders Magnusson <ragge <at> ludd.ltu.se>
2010-08-15 08:08:02 GMT
2010-08-15 08:08:02 GMT
Morning,
On 08/15/2010 12:24 AM, Thorsten Glaser wrote:
> pcc-100814.tgz cannot compile mksh:
>
> /usr/src/bin/mksh/lalloc.c, line 78: compiler error: Cannot generate code, node 0xabda46e0 op U&
>
Probably a fallout from my latest big change. Can you send me a
preprocessed
file of this? At least cc compiles nicely for me.
-- Ragge
> 69 void *
> 70 aresize(void *ptr, size_t numb, Area *ap)
> 71 {
> 72 ALLOC_ITEM *lp = NULL;
> 73
> 74 /* resizing (true) or newly allocating? */
> 75 if (ptr != NULL) {
> 76 ALLOC_ITEM *pp;
> 77
> 78 pp = findptr(&lp, ptr, ap);
> 79 pp->next = lp->next;
> 80 }
>
> 34 static ALLOC_ITEM *findptr(ALLOC_ITEM **, char *, Area *);
>
> sh.h has:
> 476 /*
> 477 * simple grouping allocator
> 478 */
> 479
> 480 /* 1. internal structure */
> 481 struct lalloc {
> 482 struct lalloc *next;
> 483 };
> 484
> 485 /* 2. sizes */
> 486 #define ALLOC_ITEM struct lalloc
> 487 #define ALLOC_SIZE (sizeof(ALLOC_ITEM))
>
>
> It also cannot bootstrap:
>
> /opt/pcc/bin/pcc -DLIBEXECDIR=\"/opt/pcc/libexec/\" -DGCC_COMPAT
-DINCLUDEDIR=\"/opt/pcc/include/\"
-DPCCINCDIR=\"/opt/pcc/lib/pcc/i386-ecce-mirbsd10/0.9.9/include/\"
-DPCCLIBDIR=\"/opt/pcc/lib/pcc/i386-ecce-mirbsd10/0.9.9/lib/\" -Dos_mirbsd -DTARGMACH=i386
-Dmach_i386 -I../.. -I../../os/mirbsd -I../../mip -I../../arch/i386 -O2 -Wall
-Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wsign-compare -Wtruncate -c cc.c
> /usr/include//stdio.h, line 370: warning: conversion to 'unsigned char' from 'int' may alter its value
> cc.c, line 1152: compiler error: Cannot generate code, node 0x9d9f8130 op U&
> *** Error code 1
>
> Stop in /home/tg/pcc-100814/cc/cc.
> *** Error code 1
>
>
> bye,
> //mirabilos
>
RSS Feed