Re: [PATCH -rc v1] gcov: Disable gcov build with GCC 10

2020-09-11 Thread Peter Oberparleiter
(Adding GCC's gcov maintainer Martin Liška) On 10.09.2020 21:18, Linus Torvalds wrote: > On Thu, Sep 10, 2020 at 5:52 AM Peter Oberparleiter > wrote: >> >> Fix this by updating the in-kernel GCOV_COUNTERS value. Also re-enable >> config GCOV_KERNEL for use with GCC 10. > > Lovely. > > Is there

Re: [PATCH -rc v1] gcov: Disable gcov build with GCC 10

2020-09-11 Thread Peter Oberparleiter
On 10.09.2020 23:49, David Laight wrote: > I was wondering what happens if files compiled with different > versions of gcc get linked together? This is not supported by GCC. At runtime libgcov will reject all data from object files compiled with a different GCC version. -- Peter Oberparleiter

RE: [PATCH -rc v1] gcov: Disable gcov build with GCC 10

2020-09-10 Thread David Laight
From: Linus Torvalds > Sent: 10 September 2020 20:19 > > On Thu, Sep 10, 2020 at 5:52 AM Peter Oberparleiter > wrote: > > > > Fix this by updating the in-kernel GCOV_COUNTERS value. Also re-enable > > config GCOV_KERNEL for use with GCC 10. > > Lovely. > > Is there some way we could see this

Re: [PATCH -rc v1] gcov: Disable gcov build with GCC 10

2020-09-10 Thread Colin Ian King
On 10/09/2020 13:52, Peter Oberparleiter wrote: > On 04.09.2020 17:58, Leon Romanovsky wrote: >> GCOV built with GCC 10 doesn't initialize n_function variable. >> This produces different kernel panics as was seen by Colin in >> Ubuntu [1] and me in FC 32 [2]. >> >> As a workaround, let's disable

Re: [PATCH -rc v1] gcov: Disable gcov build with GCC 10

2020-09-10 Thread Linus Torvalds
On Thu, Sep 10, 2020 at 5:52 AM Peter Oberparleiter wrote: > > Fix this by updating the in-kernel GCOV_COUNTERS value. Also re-enable > config GCOV_KERNEL for use with GCC 10. Lovely. Is there some way we could see this value automatically, or at least have a check for it? Right now it's that

Re: [PATCH -rc v1] gcov: Disable gcov build with GCC 10

2020-09-10 Thread Leon Romanovsky
On Thu, Sep 10, 2020 at 02:52:01PM +0200, Peter Oberparleiter wrote: > On 04.09.2020 17:58, Leon Romanovsky wrote: > > GCOV built with GCC 10 doesn't initialize n_function variable. > > This produces different kernel panics as was seen by Colin in > > Ubuntu [1] and me in FC 32 [2]. > > > > As a

Re: [PATCH -rc v1] gcov: Disable gcov build with GCC 10

2020-09-10 Thread Peter Oberparleiter
On 04.09.2020 17:58, Leon Romanovsky wrote: > GCOV built with GCC 10 doesn't initialize n_function variable. > This produces different kernel panics as was seen by Colin in > Ubuntu [1] and me in FC 32 [2]. > > As a workaround, let's disable GCOV build for broken GCC 10 version. > > [1]