mirror of
https://github.com/cc65/cc65.git
synced 2025-02-11 00:31:06 +00:00
Fixed a bug in the last change. For variables that have no initializer, no
storage was allocated if -Cl (static locals) was in effect. git-svn-id: svn://svn.cc65.org/cc65/trunk@4390 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
f4b4a812ed
commit
7687489a08
@ -324,6 +324,12 @@ static unsigned ParseAutoDecl (Declaration* Decl, unsigned* SC)
|
|||||||
|
|
||||||
/* Mark the variable as referenced */
|
/* Mark the variable as referenced */
|
||||||
*SC |= SC_REF;
|
*SC |= SC_REF;
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
/* No assignment - allocate a label and space for the variable */
|
||||||
|
SymData = AllocStorage (g_usebss, Size);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user