From: johanknol Date: Thu, 16 Jan 2003 08:39:32 +0000 (+0000) Subject: fixed bug #655842 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=488567416a6098132fb90a0bcd226e466bfc5b22;p=fw%2Fsdcc fixed bug #655842 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2157 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCglue.c b/src/SDCCglue.c index b1b6577f..59f82998 100644 --- a/src/SDCCglue.c +++ b/src/SDCCglue.c @@ -1506,7 +1506,8 @@ glue (void) copyFile (asmFile, sfrbit->oFile); /*JCF: Create the areas for the register banks*/ - if( TARGET_IS_MCS51 || TARGET_IS_DS390 || TARGET_IS_XA51 ) + if(port->general.glue_up_main && + (TARGET_IS_MCS51 || TARGET_IS_DS390 || TARGET_IS_XA51)) { if(RegBankUsed[0]||RegBankUsed[1]||RegBankUsed[2]||RegBankUsed[3]) {