]> git.gag.com Git - fw/sdcc/commitdiff
Don't call any PIC code if the PIC option is disabled.
authorsdattalo <sdattalo@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 4 Dec 2000 13:41:01 +0000 (13:41 +0000)
committersdattalo <sdattalo@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 4 Dec 2000 13:41:01 +0000 (13:41 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@514 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/SDCCmain.c

index 9ae9871d39cb0cc80f91dd458ee4e6b1ea2399b9..514a54f7ffa5f478f4cd4365e584d4f07e15b89b 100644 (file)
@@ -1399,9 +1399,16 @@ int main ( int argc, char **argv , char **envp)
 
        if (!fatalError) 
        {
+/* TSD PIC port hack - if the PIC port option is enabled
+   and SDCC is used to generate PIC code, then we will
+   generate .asm files in gpasm's format instead of SDCC's
+   assembler's format
+*/
+#if !OPT_DISABLE_PIC
          if(IS_PIC_PORT)
            pic14glue();
          else
+#endif
            glue();
            if (fatalError)
            {