mirror of
https://github.com/cc65/cc65.git
synced 2024-11-19 06:31:31 +00:00
Check for an additional error condition
git-svn-id: svn://svn.cc65.org/cc65/trunk@976 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
f4ba751572
commit
3752afa685
@ -69,6 +69,7 @@ static unsigned Opt_tosaddax (CodeSeg* S, unsigned Push, unsigned Add)
|
||||
for (I = Push + 1; I < Add; ++I) {
|
||||
CodeEntry* E = CS_GetEntry (S, I);
|
||||
if ((E->Info & OF_BRA) != 0 ||
|
||||
E->OPC == OP65_JSR ||
|
||||
(E->Use & REG_SP) != 0 ||
|
||||
CE_HasLabel (E)) {
|
||||
/* A jump or stack pointer usage - bail out */
|
||||
@ -176,6 +177,7 @@ static unsigned Opt_staspidx (CodeSeg* S, unsigned Push, unsigned Store)
|
||||
for (I = Push + 1; I < Store; ++I) {
|
||||
CodeEntry* E = CS_GetEntry (S, I);
|
||||
if ((E->Info & OF_BRA) != 0 ||
|
||||
E->OPC == OP65_JSR ||
|
||||
(E->Use & REG_SP) != 0 ||
|
||||
CE_HasLabel (E)) {
|
||||
/* A jump or stack pointer usage - bail out */
|
||||
|
Loading…
Reference in New Issue
Block a user