Re: [cc65] C64: local block variables corrupting stack

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2008-09-26 23:07:27
Hi!

On Fri, Sep 26, 2008 at 01:40:44PM -0700, Dirk Jagdmann wrote:
> Is this a bug in the current release of cc65 or is the usage of block
> local variables discouraged?

This is a known bug (since early 2.x versions). Additional variables in inner
blocks aren't removed if you leave the block using "goto". Either declare the
variable outside of the block or don't use "goto".

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Sep 26 23:10:25 2008

This archive was generated by hypermail 2.1.8 : 2008-09-26 23:10:27 CEST