https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107846

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to David Faust from comment #1)
> I think this is a bug in the test itself (or with these macros from libbpf).
No I think there might be a bug in GCC though I have to double check.

cc1: error: result of '8000 << 8' requires 22 bits to represent, but 'short
int' only has 16 bits [-Werror=shift-overflow=]

((__u16)(8000) << 8)

Hmm, we should have prompted that to int and not warned about it ...

Reply via email to