Received: by 10.213.65.68 with SMTP id h4csp435468imn; Tue, 13 Mar 2018 08:59:55 -0700 (PDT) X-Google-Smtp-Source: AG47ELvO3X+q4/xBFH5kIHze2penZ4lWiOyUTzD8MlkzFdi4yHIHMANOls1QhGAQFmhwZ9JsoVmg X-Received: by 2002:a17:902:52c1:: with SMTP id a59-v6mr1031267pli.37.1520956795048; Tue, 13 Mar 2018 08:59:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520956795; cv=none; d=google.com; s=arc-20160816; b=z7Nv3c1rlfGth3Qcr1llay5mLOyB/HGNDrPE/tRSafg1kjKifLxs7JsrYZb5XkRtfK ViTGFp+qnJkF0OOqm+NPeJsBRp42hnI80+0RWiyvgzIrXfAuJ3zTjYHRZCZ1gDIKy3xa 3NZ9ZsP9+zBEXEC9jGhShDU5TeYa18VOcE1BbSFv5SBloD0cuz7IB6HSj0K5+qYrcdKH 7vbNZyodkLvB5RdBav/m1q4BxgfkUqV1XUBEC5Z74jczjKyXAv51Hexa13A4aC7e6+Mf GiHdTuGy4xOCcVKhN2kWbeisREmY8dn99GftZdT+YlgQ1HOQca3spgIYLy0Lea80JWgr u88Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=2xpGIz2JXcNdG9BkYNUQGjb2gyPriRmFNxpxjIXc69g=; b=vdFgoomlaadMd0bOOZXIstqNtAZC/QpttTRxSnR0EqjXJNZBBiu7CBXY5m0+5yA3dG WANVNNd+h6WNNIKRbvH4PCGJW4/e5DUv619RnDdJkzYvg4ei2CKB7Ob+XIT/zCu5TvlD TfQ9ROnw4WBpJqisRpPvMX+GOIRTvKx4puzRIlt6+6YB9TlARcSU/55/zBqPjkWxYFN0 VHZsk5ScY3/yHROOEmkkAzXH8t1KZejRSnSc6T3v0jKhZMu/FnpMjqxFz7S6Rx8MUD1d 9ZXc1KS56djWrKHxkKPGF5YGdAANdAW8Q3uPTPcI5pGS81q6iJOQbkK7hkkqnk0rfP0B mLMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QucsxXnC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t18si309729pfg.246.2018.03.13.08.59.39; Tue, 13 Mar 2018 08:59:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QucsxXnC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934632AbeCMP6O (ORCPT + 99 others); Tue, 13 Mar 2018 11:58:14 -0400 Received: from mail-qk0-f178.google.com ([209.85.220.178]:34731 "EHLO mail-qk0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932972AbeCMP6L (ORCPT ); Tue, 13 Mar 2018 11:58:11 -0400 Received: by mail-qk0-f178.google.com with SMTP id z184so128404qkc.1 for ; Tue, 13 Mar 2018 08:58:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=2xpGIz2JXcNdG9BkYNUQGjb2gyPriRmFNxpxjIXc69g=; b=QucsxXnC+d+N3fJlvdLs6ozRdgPqfE+TghUWJvyRvR+oDJeRp8yO77SK64QxmM62xP K7ZIEHZYvzBAHEnb7USJeYNROcGqa5JWX2R30iPmHoOUnRspkeX/8hkVRhOUwNa8NLUN d1kMYMiphmMGPlV2d95+Mx9iUD0LdhJgrTROlpsseJxRWFxvLIdKJ3G8nC1Rho1ntIzw byFE5HZPujzYNJcwoE/XD+nuZvEuNdhzKgBR6EpzyHPOvkTgO59v8t73OVu0VFR+EHNe kcJjy0n3gGl5rg5DcyIZwDYjiP74kPpF9I4sN7XPdWZwra+OoHWOjF2PYULnJMlkz4JC UUUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=2xpGIz2JXcNdG9BkYNUQGjb2gyPriRmFNxpxjIXc69g=; b=Sgb77V8jJu7ldhfg5t/mNaLKR12I21DnWh5q0UdF11AgT4uY/aj1gU/DmvYtp8JByv 5MSZnSk0rFIAUMsQjJzYNhVDkq+dKW99SVu2bX1sFoUT8X5YMWvhE2uiDNJmTcd3EOAX 9Tc0vcLBzfQuM4TgMUo93kjWv7ro2WKWdeGQscrOa145nbrlzmsnV/jbiQ2a8/Es1j7O 714tED6Yq8jRUP/eKXwifNLb4+G0TY9XKJc5xbDngBJ73FIGaMbSu//BZ6QoEkqK1V4w dhJkTkg9HLjFswMv2td5jEBSQhs/jqSBrfM8ElHFOF2q/JZ/cW6EYMevUGD6Mu8VBmVH 8AHg== X-Gm-Message-State: AElRT7FZDLOweb0UIs9A1RA11NpvMZI+bKvJq3oqMGK4bQJxIs6q5NJX +75OZINJsx5Qt2YM4z42la/TuSbEaHi/CAim/RE= X-Received: by 10.55.88.7 with SMTP id m7mr1763017qkb.133.1520956690254; Tue, 13 Mar 2018 08:58:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.52.247 with HTTP; Tue, 13 Mar 2018 08:57:49 -0700 (PDT) In-Reply-To: References: <20180217191035.gol4woxsgzpo4bfq@gmail.com> From: Miguel Ojeda Date: Tue, 13 Mar 2018 16:57:49 +0100 Message-ID: Subject: Re: [PATCH] Support the nonstring variable attribute (gcc >= 8) To: Martin Sebor Cc: Arnd Bergmann , David Rientjes , Ingo Molnar , Josh Poimboeuf , Kees Cook , Andrew Morton , Thomas Gleixner , Geert Uytterhoeven , Greg KH , "Lendacky, Thomas" , Will Deacon , linux-kernel , Willy Tarreau , Xiongfeng Wang Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 13, 2018 at 4:41 PM, Martin Sebor wrote: >>>>> Martin Sebor also asked me about this, he's the one that worked on >>>>> the gcc code that introduced the warning. Sorry for not replying >>>>> earlier. >>>>> >>>> >>>> Maybe you can pass this to him? (maybe open a bug in gcc's bugzilla?) >>> >>> >>> >>> I've opened bug 84725 to extend attribute nonstring to the other >>> two character types: >>> >>> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84725 >>> >> >> Thanks Martin! Please let us know whenever it is in the gcc trunk. > > > No problem. The patch has been committed into the trunk of GCC 8. > Let me know if there's something else. It may be too late to make > any more changes like this before GCC 8.1 is released but further > refinements to suppress false positives can be made in GCC 8.2. > Thanks a lot, I see it in gcc's 2bc9729cac37dee999f4fb48a166cffc198293aa ("PR tree-optimization/84725 - enable attribute nonstring for all narrow character types"). I will compile it and see how it goes. Cheers, Miguel