[PATCH, V2] gas: gcfg: fix handling of non-local direct jmps in gcfg
Indu Bhagat
indu.bhagat@oracle.com
Thu Mar 28 23:03:22 GMT 2024
On 3/28/24 09:35, Jan Beulich wrote:
> On 28.03.2024 17:26, Indu Bhagat wrote:
>> On 3/28/24 03:10, Jan Beulich wrote:
>>> On 28.03.2024 08:59, Indu Bhagat wrote:
>>>> [Changes in V2]
>>>> - Add function level comments for ginsn_direct_local_jump_p.
>>>> - Add a jmp to locally defined label in the testcase to make it more
>>>> complete. Also, add a jmp to label defined in another function.
>>>> The testcase now generates an additional warning (as expected):
>>>> "Warning: GINSN: found unreachable code in func 'bar'"
>>> For this - can't you simply omit the unreachable pair of insns?
>> We do omit those instructions from GCFG and SCFI. GAS does, however,
>> warn for now. Do you mean skip this warning too?
> No, I'm talking of only this one new testcase.
OK. I removed the unreachable pair of insns and the warning from the
testcase, and pushed.
Thanks
More information about the Binutils
mailing list