On Mon, Jul 31, 2023 at 12:57 PM <daniel@xxxxxxxxxxx> wrote: > On 2023-07-31 21:41, Max Filippov wrote: > > I don't think so. On the other hand windowed functions always begin > > with the entry instruction and end with either retw or retw.n > > instruction. > For this I would need to be able to look into the "future". It could be done in reverse: keep track of the most recent call instruction and take an action once retw is seen? > Can I > traverse fragP->fr_next for that? Does fr_opcode contain the opcode of > "retw" instructions as well? Take a look at the xtensa_mark_narrow_branches, it does this kind of traversal. -- Thanks. -- Max