Questions on PROMOTE_MODE, function_promote_mode

Vineet Gupta vineet.gupta@linux.dev
Fri Mar 13 00:51:22 GMT 2026


On 3/12/26 5:44 PM, H.J. Lu wrote:
>>> Please try this enclosed patch.
>> Awesome, it does work perfectly for the tripping tests before. I'll give
>> it more extensive testing but this looks promising already.
> If it works, please update the comment to explain that it is done for
> compatibility
> reasons.

Sorry care to elaborate, comment for which part ?
Compatibilty between gcc and llvm ? That's just the trigger, 
conceptually it is for implementing a certain ABI.

Thx,
-Vineet

>
>> FWIW, the newly wired up default_promote_function_mode_sign_extend ()
>> has the same semantics as updated PROMOTE_MODE so in theory we could get
>> away with keeping bpf tgt hook to
>> default_promote_function_mode_always_promote () but former conveys the
>> semantics better.
>>
>> Thx,
>> -Vineet
>
>



More information about the bpf mailing list