Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.157
 
1.158
 
MAIN:gmcgarry:20111113223518
 
local.c
_>100100         sp->sap = NULL;
 101101         sp->sclass = EXTERN;
 102102         sp->sflags = sp->slevel = 0;
<> 103+        sp->stype = 0xdeadbeef;
103104         return sp;
 104105 }
 105106 
     
 !
176177                 sp = picsymtab("L", pspn, buf2);
 177178                 addstub(&nlplist, pspn);
 178179         }
<> 180+
  181+        sp->stype = p->n_sp->stype;
  182+
179183         q = tempnode(gotnr, PTR+VOID, 0, 0);
 180184         r = xbcon(0, sp, INT);
 181185         q = buildtree(PLUS, q, r);
     
 !
749753                     ((c = strstr(sp->soname, "$non_lazy_ptr")) == NULL &&
 750754                     (c = strstr(sp->soname, "-L")) == NULL))
 751755                                 cerror("fixnames2");
<> 756+
  757+                if (!ISFTN(sp->stype))
  758+                        return; /* function pointer */
  759+
752760                 if (isu) {
 753761                         *c = 0;
 754762                         addstub(&stublist, sp->soname+1);
     
 !
10041012         off /= SZCHAR;
 10051013 #if defined(MACHOABI)
 10061014         al = ispow2(al);
<>1007 -#endif
 1008 -
10091015         if (sp->sclass == STATIC) {
<> 1016+                if (sp->slevel == 0)
  1017+                        printf("\t.lcomm %s,0%o,%d\n", name, off, al);
  1018+                else
  1019+                        printf("\t.lcomm  " LABFMT ",0%o,%d\n", sp->soffset, off, al);
  1020+        } else {
  1021+                if (sp->slevel == 0)
  1022+                        printf("\t.comm %s,0%o,%d\n", name, off, al);
  1023+                else
  1024+                        printf("\t.comm  " LABFMT ",0%o,%d\n", sp->soffset, off, al);
  1025+        }
  1026+#else
  1027+        if (sp->sclass == STATIC) {
10101028                 if (sp->slevel == 0) {
 10111029                         printf("\t.local %s\n", name);
 10121030                 } else
     
 !
10161034                 printf("\t.comm %s,0%o,%d\n", name, off, al);
 10171035         else
 10181036                 printf("\t.comm  " LABFMT ",0%o,%d\n", sp->soffset, off, al);
<> 1037+#endif
<_10191038 }
 10201039 
 10211040 static char *
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-26 09:40 +0100