X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fpic%2Fglue.c;h=1baf9327a39e6ab7b5b229445d2fec9494ff134d;hb=8948b938d1286b2a354b4c16c318052bf77b8019;hp=35d24fa530828bab7091fcb978c7e0151f30173c;hpb=d0b79f84b4ffd723b466b6d6b20fdf765389ebb9;p=fw%2Fsdcc diff --git a/src/pic/glue.c b/src/pic/glue.c index 35d24fa5..1baf9327 100644 --- a/src/pic/glue.c +++ b/src/pic/glue.c @@ -1007,16 +1007,16 @@ picglue () addSet(&s,&b); addSet(&s,&c); - fprintf(stdout,"\n\n\n******************\n\n\n"); + DFPRINTF((stderr,"\n\n\n******************\n\n\n")); for(t=s; t; t=t->next) { if(t->item) - fprintf(stdout,"Set item %d\n",*(char *)t->item); + DFPRINTF((stderr,"Set item %d\n",*(char *)t->item)); } s =reverseSet(s); for(t=s; t; t=t->next) { if(t->item) - fprintf(stdout,"Set item %d\n",*(char *)t->item); + DFPRINTF((stderr,"Set item %d\n",*(char *)t->item)); } addSetHead(&tmpfileSet,ovrFile); @@ -1056,12 +1056,9 @@ picglue () AnalyzepCode('*'); //code->dbName); +#ifdef PCODE_DEBUG printCallTree(stderr); - - //pCodePeepInit(); - - //OptimizepCode(code->dbName); - +#endif /* print the global struct definitions */ if (options.debug) @@ -1140,9 +1137,6 @@ picglue () fprintf (asmFile, "; dpl and dph to emulate the 8051 calling mechanism \n"); fprintf (asmFile, "%s", iComments2); - fprintf (asmFile, "\tdph\n"); - - /* copy the sbit segment */ fprintf (asmFile, "%s", iComments2); @@ -1156,6 +1150,8 @@ picglue () fprintf (asmFile, "%s", iComments2); copyFile (asmFile, data->oFile); + fprintf (asmFile, "\tendc\n"); + /* create the overlay segments */ fprintf (asmFile, "%s", iComments2); @@ -1195,9 +1191,6 @@ picglue () copyFile (asmFile, xdata->oFile); - fprintf (asmFile, "\tendc\n"); - - /* copy the bit segment */ fprintf (asmFile, "%s", iComments2); fprintf (asmFile, "; bit data\n");