[cc65] found error with -Cl in snapshot build

From: Johan Kotlinski <kotlinski1gmail.com>
Date: 2009-07-30 04:04:10
char foo;

void bar()
{
    char baz;
    baz += foo * 12;
}

...compiled with "cc65 -T -Cl test.c" produces the following code...

L0003:
    .res    1,$00

;
; baz += foo * 12;
;
    ldx     #$00
    lda     _foo
    jsr     pushax
    lda     #$0C
    jsr     tosumula0
    clc
    adc     L0003
    sta     L0003
    txa
    adc     L0003+1  <--- error here. L0003 + 1 is OOB!
    sta     L0003+1  <--- ...and here.
    tax
    lda     L0003
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Jul 30 04:04:38 2009

This archive was generated by hypermail 2.1.8 : 2009-07-30 04:04:41 CEST