On Mon, 23 Sep 2002, Leopold Toetsch wrote:

> Attached patch fixes all currently known problems WRT imcc/perl6.
> 
> imcc 0.0.9 is rather fresh, so there are problems coming from different 
> platforms which I can't test, but I'm sure, we will solve these.

Ok, I applied this and (after shuffling things around because I
have to build imclexer.c and imcparser.[ch] on a different platform and
then bring them back here for the rest of the compilation) here's what I
get:

        cd languages/imcc
        ./imcc examples/sample.imc
        Segmentation Fault(coredump)

Running under the debugger, I see 

(dbx) run examples/sample.imc
Running: imcc examples/sample.imc 
(process id 2956)
signal SEGV (no mapping at the fault address) in reg_sort_f at line 156 in file "imc.c"
  156       return ra->first_ins->index > rb->first_ins->index ? 1 : 0;
(dbx) where
=>[1] reg_sort_f(a = 0x196d6c, b = 0x196dac), line 156 in "imc.c"
  [2] qsort(0x196dac, 0x4, 0x196d6c, 0x196da8, 0x196de4, 0x30f80), at 0xff1cb074
  [3] sort_reglist(), line 161 in "imc.c"
  [4] build_reglist(), line 207 in "imc.c"
  [5] allocate(), line 48 in "imc.c"
  [6] yyparse(), line 450 in "imcc.y"
  [7] main(argc = 1, argv = 0xffbef998), line 905 in "imcc.y"
(dbx) print ra
ra = (nil)
(dbx) print rb
rb = 0x193f48
(dbx) print *rb
*rb = {
    name          = 0x191638 "$N0"
    type          = VTREG
    usage         = 0
    set           = 'N'
    color         = -1
    score         = 6
    use_count     = 2
    lhs_use_count = 1
    simplified    = 0
    life_info     = (nil)
    next          = (nil)
    first_ins     = 0x193f90
    last_ins      = 0x194080
    nextkey       = (nil)
    reg           = (nil)
}

-- 
    Andy Dougherty              [EMAIL PROTECTED]

Reply via email to