[cc65] optimization bug

From: Johan Kotlinski <kotlinski1gmail.com>
Date: 2009-08-30 15:07:39
Hi!
With optimizations enabled, the assert below trigs with revision 4037
and head. Passes with 4036.

Cheers
Johan
-----------

#include <assert.h>

char* ptr1 = (char*)0x3000;
char ptr2[1];
char offs;

void main() {
    *(char*)0x3000 = 4;
    assert(4 == ptr1[ptr2[offs]]);
}
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Aug 30 15:08:07 2009

This archive was generated by hypermail 2.1.8 : 2009-08-30 15:08:09 CEST