]> git.gag.com Git - fw/sdcc/commitdiff
fixed bug #655842
authorjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 16 Jan 2003 08:39:32 +0000 (08:39 +0000)
committerjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 16 Jan 2003 08:39:32 +0000 (08:39 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2157 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/SDCCglue.c

index b1b6577f9359dc5ed338f8c2e0e1b0026ad907e7..59f82998c0ae74494db1f6ab87f58f442fff2a36 100644 (file)
@@ -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])
          {