#1607 ralloc.c:2660: expected symbol, got value

closed-fixed
Maarten Brock
5
2013-05-25
2010-01-23
Borut Ražem
No

The code:

int
f (int b)
{
int a = 10;
a += b;
return a;
}

compiled with:
SDCC : mcs51/gbz80/z80/ds390/pic16/pic14/TININative/ds400/hc08 2.9.7 #5646 (Jan 23 2010) (UNIX)

generates an error:

sdcc -mds390 -S t.c
Internal error: validateOpType failed in OP_SYMBOL(IC_LEFT(ic)) @ ../../../sdcc/src/ds390/ralloc.c:2660: expected symbol, got value

The error is generated only for ds390 target.

Borut

Discussion

  • Pavel Pisa
    Pavel Pisa
    2010-01-23

    No behavior change found down to 2.6.x versions (2.8.0, 2.7.0) so this problem cannot be probably located
    by checking for regression (GIT bisect), shame.
    Oldest tested by myself
    SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 2.6.1 # (Jan 23 2010) (UNIX)

     
  • Maarten Brock
    Maarten Brock
    2010-02-01

    Fixed in SDCC 2.9.7 #5668

     
  • Maarten Brock
    Maarten Brock
    2010-02-01

    • milestone: --> fixed
    • assigned_to: nobody --> maartenbrock
    • status: open --> closed-fixed