From: cuz Date: Wed, 26 Sep 2001 18:43:37 +0000 (+0000) Subject: Check for an additional error condition X-Git-Tag: V2.12.0~2610 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3752afa6851cb1eb1a82f750abbcf7f7ec7ceff1;p=cc65 Check for an additional error condition git-svn-id: svn://svn.cc65.org/cc65/trunk@976 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/coptstop.c b/src/cc65/coptstop.c index 40d6354a7..c8d85b638 100644 --- a/src/cc65/coptstop.c +++ b/src/cc65/coptstop.c @@ -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 */