add extra underscore to _bzero, add a test for bzero/memset
This commit is contained in:
@@ -1329,7 +1329,7 @@ static unsigned Opt_a_tosult (StackOpData* D)
|
||||
/* The first column of these two tables must be sorted in lexical order */
|
||||
|
||||
static const OptFuncDesc FuncTable[] = {
|
||||
{ "__bzero", Opt___bzero, REG_NONE, OP_X_ZERO | OP_A_KNOWN },
|
||||
{ "___bzero", Opt___bzero, REG_NONE, OP_X_ZERO | OP_A_KNOWN },
|
||||
{ "staspidx", Opt_staspidx, REG_NONE, OP_NONE },
|
||||
{ "staxspidx", Opt_staxspidx, REG_AX, OP_NONE },
|
||||
{ "tosaddax", Opt_tosaddax, REG_NONE, OP_NONE },
|
||||
|
||||
@@ -604,7 +604,7 @@ static void StdFunc_memset (FuncDesc* F attribute ((unused)), ExprDesc* Expr)
|
||||
DoDeferred (SQP_KEEP_EAX, &Arg3.Expr);
|
||||
|
||||
/* Emit the actual function call. This will also cleanup the stack. */
|
||||
g_call (CF_FIXARGC, MemSet? Func_memset : Func__bzero, ParamSize);
|
||||
g_call (CF_FIXARGC, MemSet? Func_memset : Func___bzero, ParamSize);
|
||||
|
||||
if (ED_IsConstAbsInt (&Arg3.Expr) && Arg3.Expr.IVal == 0) {
|
||||
|
||||
|
||||
@@ -44,9 +44,9 @@
|
||||
|
||||
|
||||
|
||||
const char Func__bzero[] = "_bzero"; /* Asm name of "_bzero" */
|
||||
const char Func_memcpy[] = "memcpy"; /* Asm name of "memcpy" */
|
||||
const char Func_memset[] = "memset"; /* Asm name of "memset" */
|
||||
const char Func_strcmp[] = "strcmp"; /* Asm name of "strcmp" */
|
||||
const char Func_strcpy[] = "strcpy"; /* Asm name of "strcpy" */
|
||||
const char Func_strlen[] = "strlen"; /* Asm name of "strlen" */
|
||||
const char Func___bzero[] = "__bzero"; /* C name of "__bzero" */
|
||||
const char Func_memcpy[] = "memcpy"; /* C name of "memcpy" */
|
||||
const char Func_memset[] = "memset"; /* C name of "memset" */
|
||||
const char Func_strcmp[] = "strcmp"; /* C name of "strcmp" */
|
||||
const char Func_strcpy[] = "strcpy"; /* C name of "strcpy" */
|
||||
const char Func_strlen[] = "strlen"; /* C name of "strlen" */
|
||||
|
||||
@@ -44,12 +44,12 @@
|
||||
|
||||
|
||||
|
||||
extern const char Func__bzero[]; /* Asm name of "_bzero" */
|
||||
extern const char Func_memcpy[]; /* Asm name of "memcpy" */
|
||||
extern const char Func_memset[]; /* Asm name of "memset" */
|
||||
extern const char Func_strcmp[]; /* Asm name of "strcmp" */
|
||||
extern const char Func_strcpy[]; /* Asm name of "strcpy" */
|
||||
extern const char Func_strlen[]; /* Asm name of "strlen" */
|
||||
extern const char Func___bzero[]; /* C name of "__bzero" */
|
||||
extern const char Func_memcpy[]; /* C name of "memcpy" */
|
||||
extern const char Func_memset[]; /* C name of "memset" */
|
||||
extern const char Func_strcmp[]; /* C name of "strcmp" */
|
||||
extern const char Func_strcpy[]; /* C name of "strcpy" */
|
||||
extern const char Func_strlen[]; /* C name of "strlen" */
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user