From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com [209.85.217.171]) by kanga.kvack.org (Postfix) with ESMTP id 703F86B0035 for ; Fri, 26 Sep 2014 14:48:03 -0400 (EDT) Received: by mail-lb0-f171.google.com with SMTP id l4so15107082lbv.30 for ; Fri, 26 Sep 2014 11:48:02 -0700 (PDT) Received: from mail-la0-x229.google.com (mail-la0-x229.google.com [2a00:1450:4010:c03::229]) by mx.google.com with ESMTPS id kr4si8358950lac.72.2014.09.26.11.48.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 26 Sep 2014 11:48:01 -0700 (PDT) Received: by mail-la0-f41.google.com with SMTP id s18so15120140lam.14 for ; Fri, 26 Sep 2014 11:48:00 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <1404905415-9046-1-git-send-email-a.ryabinin@samsung.com> <1411562649-28231-1-git-send-email-a.ryabinin@samsung.com> <54259BD4.8090508@oracle.com> Date: Fri, 26 Sep 2014 22:48:00 +0400 Message-ID: Subject: Re: [PATCH v3 00/13] Kernel address sanitizer - runtime memory debugger. From: Yuri Gribov Content-Type: text/plain; charset=UTF-8 Sender: owner-linux-mm@kvack.org List-ID: To: Dmitry Vyukov Cc: Andrey Ryabinin , Sasha Levin , Andrey Ryabinin , LKML , Konstantin Serebryany , Dmitry Chernenkov , Andrey Konovalov , Konstantin Khlebnikov , Michal Marek , Thomas Gleixner , Ingo Molnar , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Dave Hansen , Andi Kleen , Vegard Nossum , "H. Peter Anvin" , linux-kbuild@vger.kernel.org, x86@kernel.org, "linux-mm@kvack.org" , Randy Dunlap , Peter Zijlstra , Alexander Viro , Dave Jones On Fri, Sep 26, 2014 at 9:29 PM, Dmitry Vyukov wrote: > So in kernel we will need to support all API versions, and the > following looks like a much simpler way to identify current API > version: >> #if __GNUC__ == 5 >> #define ASAN_V4 What about having compiler(s) predefine some __SANITIZE_ADDRESS_ABI__ macro for this? Hacking on __GNUC__ may not work given the zoo of GCC versions out there (FSF, Linaro, vendor toolchains, etc.)? -Y -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org