Also romable warning for inline variables. Added TODO: Romable in library files where applicable

This commit is contained in:
Irmen de Jong
2025-02-21 21:00:26 +01:00
parent e55ce5504e
commit 5c56267662
14 changed files with 34 additions and 2 deletions

View File

@@ -1716,7 +1716,7 @@ $repeatLabel""")
if(options.romable) {
// until the code generation can provide an alternative, we have to report about code generated that is incompatible with ROMable code mode...
errors.warn("problem for ROMable code: $problem", pos)
out(" .warn \"ROMable code selected but incompatible code was generated: $problem\"")
out(" .error \"ROMable code selected but incompatible code was generated: $problem\"")
}
}
}

View File

@@ -652,6 +652,7 @@ internal class ProgramAndVarsGen(
it.initializationStringValue!!.second,
it.initializationStringValue!!.first
)
asmgen.romableWarning("inlined variable (${it.dt}, ${it.name})", Position.DUMMY) // TODO
}
alignedStrings.sortedBy { it.align }.forEach {
outputStringvar(
@@ -660,13 +661,16 @@ internal class ProgramAndVarsGen(
it.initializationStringValue!!.second,
it.initializationStringValue!!.first
)
asmgen.romableWarning("inlined variable (${it.dt}, ${it.name})", Position.DUMMY) // TODO
}
notAlignedOther.sortedBy { it.type }.forEach {
staticVariable2asm(it)
asmgen.romableWarning("inlined variable (${it.dt}, ${it.name})", Position.DUMMY) // TODO
}
alignedOther.sortedBy { it.align }.sortedBy { it.type }.forEach {
staticVariable2asm(it)
asmgen.romableWarning("inlined variable (${it.dt}, ${it.name})", Position.DUMMY) // TODO
}
}
}