Alien-TinyCCx
view release on metacpan or search on metacpan
src/tccelf.c view on Meta::CPAN
sm_table[i].link_once = 1;
goto next;
} else {
goto found;
}
}
}
/* not found: create new section */
s = new_section(s1, sh_name, sh->sh_type, sh->sh_flags);
/* take as much info as possible from the section. sh_link and
sh_info will be updated later */
s->sh_addralign = sh->sh_addralign;
s->sh_entsize = sh->sh_entsize;
sm_table[i].new_section = 1;
found:
if (sh->sh_type != s->sh_type) {
tcc_error_noabort("invalid section type");
goto fail;
}
/* align start of section */
src/tccpp.c view on Meta::CPAN
tcc_error("integer constant overflow");
}
tokc.i = n;
}
if (ch)
tcc_error("invalid number\n");
}
/* #ifdef CONFIG_TCC_EXSYMTAB */
/* MUST NEVER RETURN NULL (or if it does, call sites must be updated to handle that) */
TokenSym * get_local_ts_for_extended_ts(TokenSym* orig_symtab_ts, extended_symtab* orig_symtab) {
/* Look up the original tokensym in the extended symbol and see if an
* identically named symbol is already present in the current compiling
* context's symbol table. */
TokenSym **local_pts, *local_ts;
local_pts = symtab_tok_find(orig_symtab_ts->str, orig_symtab_ts->len);
local_ts = *local_pts;
/* If not, find it in the extended symbol table. Notice that I perform
* another search by name, rather than simply using curr_from, since the
src/tests/exsymtab/10-symtab-compare-func-decl-and-def.c view on Meta::CPAN
arg1->type.t is is 0 (integer should be 0)
Members for second argument, i.e. foo->type.ref->next->next:
arg2->r is 0
arg2->c is 0
arg2->type.t is 4 (pointer should be 4)
Members for second argument's pointer type, i.e. foo->type.ref->next->next->type.ref:
arg2pt->r is 0
arg2pt->c is ffffffff
arg2pt->type.t is 9 (floating point double should be 9)
The c and type.t fields need to be updated. The difference with ret->r shows
that the declaration is a prototype, but the definition is not (see the
func_proto bit field of the AttributeDef struct in tcc.h.) Since I want to
make sure that later redefinitions get called out, I will keep this discrepancy
between the two. Note that I might want to update the weak field of the
AttributeDef...
*/
( run in 0.363 second using v1.01-cache-2.11-cpan-05444aca049 )