From 3752afa6851cb1eb1a82f750abbcf7f7ec7ceff1 Mon Sep 17 00:00:00 2001 From: cuz Date: Wed, 26 Sep 2001 18:43:37 +0000 Subject: [PATCH] Check for an additional error condition git-svn-id: svn://svn.cc65.org/cc65/trunk@976 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/coptstop.c | 2 ++ 1 file changed, 2 insertions(+) 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 */ -- 2.39.5