Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.54
 
1.55
 
MAIN:mickey:20081101082937
 
optim2.c
_>234234         }
 235235 
 236236 #ifdef PCC_DEBUG
<>237 -        if (epp->ipp_regs != 0)
 238 -                comperr("register error");
  237+        {
  238+                int i;
  239+                for (i = NIPPREGS; i--; )
  240+                        if (epp->ipp_regs[i] != 0)
  241+                                comperr("register error");
  242+        }
239243 #endif
 240244 
 241245         myoptim(ipole);
     
 !
969973            0, "NODE", "PROLOG", "STKOFF", "EPILOG", "DEFLAB", "DEFNAM", "ASM" };
 970974         struct interpass *ip;
 971975         struct interpass_prolog *ipplg, *epplg;
<> 976+        unsigned i;
972977 
 973978         DLIST_FOREACH(ip, pole, qelem) {
 974979                 if (ip->type > MAXIP)
     
 !
982987 #endif
 983988                 case IP_PROLOG:
 984989                         ipplg = (struct interpass_prolog *)ip;
<>985 -                        printf("%s %s regs %x autos %d mintemp %d minlbl %d\n",
 986 -                            ipplg->ipp_name, ipplg->ipp_vis ? "(local)" : "",
 987 -                            ipplg->ipp_regs, ipplg->ipp_autos, ipplg->ip_tmpnum,
 988 -                            ipplg->ip_lblnum);
  990+                        printf("%s %s regs",
  991+                            ipplg->ipp_name, ipplg->ipp_vis ? "(local)" : "");
  992+                        for (i = 0; i < NIPPREGS; i++)
  993+                                printf("%s0x%x", i? ":" : " ",
  994+                                    ipplg->ipp_regs[i]);
  995+                        printf(" autos %d mintemp %d minlbl %d\n",
  996+                            ipplg->ipp_autos, ipplg->ip_tmpnum, ipplg->ip_lblnum);
989997                         break;
 990998                 case IP_EPILOG:
 991999                         epplg = (struct interpass_prolog *)ip;
<>992 -                        printf("%s %s regs %x autos %d mintemp %d minlbl %d\n",
 993 -                            epplg->ipp_name, epplg->ipp_vis ? "(local)" : "",
 994 -                            epplg->ipp_regs, epplg->ipp_autos, epplg->ip_tmpnum,
 995 -                            epplg->ip_lblnum);
  1000+                        printf("%s %s regs",
  1001+                            epplg->ipp_name, epplg->ipp_vis ? "(local)" : "");
  1002+                        for (i = 0; i < NIPPREGS; i++)
  1003+                                printf("%s0x%x", i? ":" : " ",
  1004+                                    epplg->ipp_regs[i]);
  1005+                        printf(" autos %d mintemp %d minlbl %d\n",
  1006+                            epplg->ipp_autos, epplg->ip_tmpnum, epplg->ip_lblnum);
<_9961007                         break;
 9971008                 case IP_DEFLAB: printf(LABFMT "\n", ip->ip_lbl); break;
 9981009                 case IP_DEFNAM: printf("\n"); break;
FishEye: Open Source License registered to PCC.
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-12-18 16:26 +0100