From: sdattalo Date: Mon, 4 Dec 2000 13:41:01 +0000 (+0000) Subject: Don't call any PIC code if the PIC option is disabled. X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=0945f81e351ad9b040be9ccd4037bb5d36cae518;p=fw%2Fsdcc Don't call any PIC code if the PIC option is disabled. git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@514 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCmain.c b/src/SDCCmain.c index 9ae9871d..514a54f7 100644 --- a/src/SDCCmain.c +++ b/src/SDCCmain.c @@ -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) {