You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If one removed the warning Wno-unused-variable from the file CMakeLists.txt, at the time of compiling the generated C code, there are hundreds of warnings.
When inlininng, The variable sourcePointer becomes not used and it is replaced (see cogitaarch64.c:21349) by Arg1Reg. This is logical since in the Pharo method genPrimitiveLoadInt32FromBytes, the block sourcePointer was called with Arg1Reg.
Possible solution
It will be nice to improve the inlining algorithm of Slang to clean the non used variables. Because fixing this in the Pharo code can be too time-consuming as there are hundreds of warning and some of them, like the one on the example, are not easy to spot nor to fix
The text was updated successfully, but these errors were encountered:
If one removed the warning
Wno-unused-variable
from the fileCMakeLists.txt
, at the time of compiling the generated C code, there are hundreds of warnings.Let's take as an example the method:
When inlininng, The variable
sourcePointer
becomes not used and it is replaced (seecogitaarch64.c:21349
) byArg1Reg
. This is logical since in the Pharo methodgenPrimitiveLoadInt32FromBytes
, the blocksourcePointer
was called withArg1Reg
.Possible solution
It will be nice to improve the inlining algorithm of Slang to clean the non used variables. Because fixing this in the Pharo code can be too time-consuming as there are hundreds of warning and some of them, like the one on the example, are not easy to spot nor to fix
The text was updated successfully, but these errors were encountered: