Re: [cc65] Externs within function

From: Dan <opendtv1yahoo.com>
Date: 2007-07-03 18:40:54
--- Ullrich von Bassewitz <uz@musoftware.de> wrote:

> On Tue, Jul 03, 2007 at 06:06:44AM -0700, Dan wrote:
> > I noticed that cc65 treated externs inside
> functions
> > like statics, meaning that storage was allocated
> and
> > initialization was wrongly permitted.
> 
> Stefan reported this error some time ago - thanks
> for the fix! There is a
> similar problem in AddLocalSym (symtab.c): SC_EXTERN
> is not handled there as
> well. Fortunately, the consequence in this place is
> only some wasted memory.

Actually, that's a bug too, because AsmName is not set
properly, and this is used by stdfunc.c stuff via
ED_GetLabelName.

Dan



       
____________________________________________________________________________________
Choose the right car based on your needs.  Check out Yahoo! Autos new Car Finder tool.
http://autos.yahoo.com/carfinder/
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Jul 3 18:41:03 2007

This archive was generated by hypermail 2.1.8 : 2007-07-03 18:41:07 CEST