X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2FSDCCopt.c;h=822afc72b20b3c5047f9ee3fcdbffbebd3580a4b;hb=c89255974b4b49e7027fbd57170b5f824d94f961;hp=6c24ba6b7a06c0e48011e085cad02452c3347986;hpb=52eb93f73f643bc7175d8f6ea06ec78b1026f001;p=fw%2Fsdcc diff --git a/src/SDCCopt.c b/src/SDCCopt.c index 6c24ba6b..822afc72 100644 --- a/src/SDCCopt.c +++ b/src/SDCCopt.c @@ -778,8 +778,8 @@ convertToFcall (eBBlock ** ebbs, int count) converted to function calls */ if ((IS_CONDITIONAL (ic) || IS_ARITHMETIC_OP (ic)) && - (IS_FLOAT (operandType (IC_RIGHT (ic))) - || IS_FIXED( operandType (IC_RIGHT (ic))))) + (IS_FLOAT (operandType (IC_RIGHT (ic))) || + IS_FIXED( operandType (IC_RIGHT (ic))))) { cnvToFcall (ic, ebbs[i]); @@ -803,7 +803,7 @@ convertToFcall (eBBlock ** ebbs, int count) if (ic->op == '%' && isOperandLiteral(IC_RIGHT(ic)) && IS_UNSIGNED(operandType(IC_LEFT(ic)))) { - unsigned litVal = fabs(operandLitValue(IC_RIGHT(ic))); + unsigned litVal = abs((unsigned)operandLitValue(IC_RIGHT(ic))); /* modulo by 1: no remainder */ if (litVal == 1) @@ -1558,7 +1558,7 @@ eBBlockFromiCode (iCode * ic) convertToFcall (ebbi->bbOrder, ebbi->count); /* compute the live ranges */ - computeLiveRanges (ebbi->bbOrder, ebbi->count); + computeLiveRanges (ebbi->bbOrder, ebbi->count, TRUE); if (options.dump_range) dumpEbbsToFileExt (DUMP_RANGE, ebbi);