Re: [PATCH bpf-next] selftests/bpf: add -std=gnu17 to GCC BPF build rule

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2025-01-06 at 23:18 +0000, Ihor Solodrai wrote:
> On Monday, January 6th, 2025 at 1:16 PM, Eduard Zingerman <eddyz87@xxxxxxxxx> wrote:
> 
> > 
> > [...]
> > 
> > 
> > From previous discussion it looks like it's better to just enable some -std option for both gcc and clang.
> > Kernel is compiled with -std=gnu11.
> 
> Do you mean that eventually clang is going to make C23 the default too?
> Yeah, considering this it's a good idea to specify the standard explicitly.

Yes.

> I am not sure what's the best choice though. If the tests compile currently
> with gnu17, maybe we can leave it at that, and not fall back to gnu11?

Based on my local testing gnu11 works and that's what kernel uses,
so I'd stick with that.

[...]






[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux