Skip to content

Commit

Permalink
more moving stuff to where it belongs
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Jul 10, 2012
1 parent ece8c8b commit f5cf6cc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/backend/el.c
Expand Up @@ -1634,6 +1634,7 @@ elem * el_ptr(symbol *s)
* that data variable.
*/
symbol *sd = symboldata(Doffset, TYnptr);
sd->Sseg = DATA;
Doffset += reftoident(DATA, Doffset, s, 0, CFoff);
e = el_picvar(sd);
return e;
Expand Down Expand Up @@ -1974,7 +1975,9 @@ elem *el_convstring(elem *e)
// in the DATA segment

if (eecontext.EEcompile)
s = symboldata(Doffset,e->Ety);
{ s = symboldata(Doffset,e->Ety);
s->Sseg = DATA;
}
else
s = out_readonly_sym(e->Ety,p,len);

Expand Down
1 change: 1 addition & 0 deletions src/backend/out.c
Expand Up @@ -1458,6 +1458,7 @@ symbol *out_readonly_sym(tym_t ty, void *p, int len)

alignOffset(DATA, sz);
s = symboldata(Doffset,ty | mTYconst);
s->Sseg = DATA;
obj_write_bytes(SegData[DATA], len, p);
//printf("s->Sseg = %d:x%x\n", s->Sseg, s->Soffset);
#endif
Expand Down
1 change: 0 additions & 1 deletion src/eh.c
Expand Up @@ -55,7 +55,6 @@ symbol *except_gentables()
assert(!usedalloca);

symbol *s = symbol_generate(SCstatic,tsint);
// s->Sseg = UNKNOWN;
symbol_keep(s);
symbol_debug(s);

Expand Down
2 changes: 1 addition & 1 deletion src/msc.c
Expand Up @@ -337,7 +337,7 @@ symbol *symboldata(targ_size_t offset,tym_t ty)
symbol *s = symbol_generate(SClocstat, type_fake(ty));
s->Sfl = FLdata;
s->Soffset = offset;
s->Sseg = DATA;
//s->Sseg = DATA;
symbol_keep(s); // keep around
return s;
}
Expand Down

0 comments on commit f5cf6cc

Please sign in to comment.