Skip to content

Commit

Permalink
ifdef x86 specific bits in elfobj and add new platform specific hooks…
Browse files Browse the repository at this point in the history
… to platform_stub.c
  • Loading branch information
braddr committed Jan 17, 2013
1 parent a3635f6 commit 984b3c1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/backend/elfobj.c
Expand Up @@ -3070,6 +3070,7 @@ void Obj::moduleinfo(Symbol *scc)

static void obj_rtinit()
{
#if TX86
// create brackets for .deh_eh and .minfo sections
IDXSYM deh_beg, deh_end, minfo_beg, minfo_end, dso_rec;
IDXSTR namidx;
Expand Down Expand Up @@ -3348,6 +3349,9 @@ static void obj_rtinit()
p->sh_info = dso_rec; // set the dso_rec as group symbol
p->sh_entsize = sizeof(IDXSYM);
p->sh_size = Offset(groupseg);
#else
assert(0);
#endif
}

#endif // MARS
Expand Down
5 changes: 5 additions & 0 deletions src/backend/platform_stub.c
Expand Up @@ -49,7 +49,9 @@ code* prolog_frameadj2(tym_t tyf, unsigned xlocalsize, bool* pushalloc) { assert
code* prolog_setupalloca() { assert(0); return NULL; }
code* prolog_trace(bool farfunc, unsigned* regsaved) { assert(0); return NULL; }
code* prolog_genvarargs(symbol* sv, regm_t* namedargs) { assert(0); return NULL; }
code* prolog_gen_win64_varargs() { assert(0); return NULL; }
code* prolog_loadparams(tym_t tyf, bool pushalloc, regm_t* namedargs) { assert(0); return NULL; }
code* prolog_saveregs(code *c, regm_t topush) { assert(0); return NULL; }
targ_size_t cod3_spoff() { assert(0); }

void epilog(block* b) { assert(0); }
Expand Down Expand Up @@ -98,6 +100,7 @@ void genEEcode() { assert(0); }
unsigned gensaverestore(regm_t regm, code** csave, code** crestore) { assert(0); return 0; }
unsigned gensaverestore2(regm_t regm, code** csave, code** crestore) { assert(0); return 0; }

bool isXMMstore(unsigned op) { assert(0); return false; }
const unsigned char* getintegerparamsreglist(tym_t tyf, size_t* num) { assert(0); *num = 0; return NULL; }
const unsigned char* getfloatparamsreglist(tym_t tyf, size_t* num) { assert(0); *num = 0; return NULL; }
void cod3_buildmodulector(Outbuffer* buf, int codeOffset, int refOffset) { assert(0); }
Expand All @@ -112,6 +115,7 @@ code* cdabs (elem* e, regm_t* pretregs) { assert(0); return NULL; }
code* cdaddass (elem* e, regm_t* pretregs) { assert(0); return NULL; }
code* cdasm (elem* e, regm_t* pretregs) { assert(0); return NULL; }
code* cdbscan (elem* e, regm_t* pretregs) { assert(0); return NULL; }
code* cdbtst (elem* e, regm_t* pretregs) { assert(0); return NULL; }
code* cdbswap (elem* e, regm_t* pretregs) { assert(0); return NULL; }
code* cdbt (elem* e, regm_t* pretregs) { assert(0); return NULL; }
code* cdbyteint (elem* e, regm_t* pretregs) { assert(0); return NULL; }
Expand Down Expand Up @@ -161,6 +165,7 @@ code* cdstrcpy (elem* e, regm_t* pretregs) { assert(0); return NULL; }
code* cdstreq (elem* e, regm_t* pretregs) { assert(0); return NULL; }
code* cdstrlen (elem* e, regm_t* pretregs) { assert(0); return NULL; }
code* cdstrthis (elem* e, regm_t* pretregs) { assert(0); return NULL; }
code* cdvecsto (elem* e, regm_t* pretregs) { assert(0); return NULL; }
code* cdvector (elem* e, regm_t* pretregs) { assert(0); return NULL; }
code* cdvoid (elem* e, regm_t* pretregs) { assert(0); return NULL; }

0 comments on commit 984b3c1

Please sign in to comment.