[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <5e6554f1-f619-d06d-aa02-96d65d8e2198@linux.vnet.ibm.com>
Date: Fri, 1 Jul 2016 17:46:58 +0200
From: Peter Oberparleiter <oberpar@...ux.vnet.ibm.com>
To: Florian Meier <Florian.Meier@...ormatik.uni-erlangen.de>,
Andrew Morton <akpm@...ux-foundation.org>
Cc: linux-kernel@...r.kernel.org
Subject: Re: [PATCH v003] Added support for gcc version >= 6
On 01.07.2016 15:09, Florian Meier wrote:
> Added support for gcc version >= 6 in gcov.
>
> Signed-off-by: Florian Meier <Florian.Meier@...ormatik.uni-erlangen.de>
Looks good, thanks! Tested successfully with gcc 4.8.5 and gcc 6.1.0.
Andrew, could you pick this change up via your tree?
Reviewed-by: Peter Oberparleiter <oberpar@...ux.vnet.ibm.com>
Tested-by: Peter Oberparleiter <oberpar@...ux.vnet.ibm.com>
> ---
> kernel/gcov/gcc_4_7.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/kernel/gcov/gcc_4_7.c b/kernel/gcov/gcc_4_7.c
> index e25e92f..6a5c239 100644
> --- a/kernel/gcov/gcc_4_7.c
> +++ b/kernel/gcov/gcc_4_7.c
> @@ -18,7 +18,7 @@
> #include <linux/vmalloc.h>
> #include "gcov.h"
>
> -#if __GNUC__ == 5 && __GNUC_MINOR__ >= 1
> +#if (__GNUC__ > 5) || (__GNUC__ == 5 && __GNUC_MINOR__ >= 1)
> #define GCOV_COUNTERS 10
> #elif __GNUC__ == 4 && __GNUC_MINOR__ >= 9
> #define GCOV_COUNTERS 9
>
--
Peter Oberparleiter
Linux on z Systems Development - IBM Germany
Powered by blists - more mailing lists