[cc65] a compiler bug?

From: ogd <ogd1gmx-topmail.de>
Date: 2009-01-11 23:31:02
cc65 doesn't compile this, if i use the "-O"-option.
but it works with "while(!0)"; instead of  "for(;;);"

i'm using cl65 V2.12.9 win

----
#include <stdint.h>

int main(void)
{
 static uint8_t x = 0;
 static uint8_t y = 0;

    for (x = 0; x < 16; ++x)
    {
     y = y + 1;
    }
    for(;;);
}
----
----------------------------------------------------------------------
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 Jan 11 23:31:34 2009

This archive was generated by hypermail 2.1.8 : 2009-01-11 23:31:35 CET