Received: by 10.213.65.68 with SMTP id h4csp443358imn; Tue, 27 Mar 2018 02:14:19 -0700 (PDT) X-Google-Smtp-Source: AG47ELttCCmXRosNilAwLHhTXMLryV9EnHJtqK/w3frnFqXGOHWWTsC3Oh2ugtMEicLgphPQovD9 X-Received: by 2002:a17:902:2468:: with SMTP id m37-v6mr43196614plg.388.1522142059945; Tue, 27 Mar 2018 02:14:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522142059; cv=none; d=google.com; s=arc-20160816; b=nuT1NSZniUNtFwyh/st5l9zf3QwL0fPIPPjVlOmLeS4E0cW9YuY82jfwdFXOVRa0OB lDhv4lfMVNfldmr249t30PGN7uUzlTln/B0UblgwdXGNHucwwaQckK/gzfYHxjPFgS55 34SotZnDJ7hI69zlfI1fORmwTJZlH1dEsfrPmOzDVWrCgSEtT6UEaH/MgLAgERcouB0h 7hSGQ7LgcV78SSPZOi4JPJC+5BYdxSu48Kf8ck9o8gYZgWzyt14F0JDUcJbBmaZPTODT SK4YqXciAgiX9k2A0rI0UkBxC14EcjgqFxAnX/zlkmNAssMbNhEWvWDStdfewPv82btY ZMsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :content-language:in-reply-to:mime-version:date:from:references:cc :to:subject:arc-authentication-results; bh=+5wg/E/Hs9YLHh2Po/L81tJprxShvP8dWWcjaec0qIs=; b=jbfnEP2TVYzlnhFWnSdedAFnMhqwAI+RVpddVtNcLfu58N7LS9fl+4LtqWZrOF0EDf UGAyq88Ugx4GVBNptxviAlag2HcKEsdp/dxK/TD5PaGHqlJ4UdZ5hypERkfNHe2mOwp9 Qx/t/GsN22HhpqsbM+QHCGRRJ5s3qvsOYCAlscrB2jNNqXWWiy4OAsHotH/AwmL7taNH Pa5D77PYe4y5Fo6fz7l1U1lD6SB0e3iqkc2HPRgn+xIFC94rjUuJ5d+nLrHcCiXnmKr0 pvcze5Wt2HW9i6TQfV8TfVdWD5FuZqQf9YW3zBEK8sGwBKaLId+/253j4gvrXCQFy1yr 9wvw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m18si655246pfi.296.2018.03.27.02.14.05; Tue, 27 Mar 2018 02:14:19 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752349AbeC0JMP (ORCPT + 99 others); Tue, 27 Mar 2018 05:12:15 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:55750 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752154AbeC0JMN (ORCPT ); Tue, 27 Mar 2018 05:12:13 -0400 Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w2R9A88u165595 for ; Tue, 27 Mar 2018 05:12:12 -0400 Received: from e06smtp10.uk.ibm.com (e06smtp10.uk.ibm.com [195.75.94.106]) by mx0b-001b2d01.pphosted.com with ESMTP id 2gyhdumypc-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Tue, 27 Mar 2018 05:12:12 -0400 Received: from localhost by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 27 Mar 2018 10:12:10 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp10.uk.ibm.com (192.168.101.140) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 27 Mar 2018 10:12:07 +0100 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w2R9C67o10158326; Tue, 27 Mar 2018 09:12:06 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 67FF8AE057; Tue, 27 Mar 2018 10:02:20 +0100 (BST) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0628FAE056; Tue, 27 Mar 2018 10:02:20 +0100 (BST) Received: from [9.152.212.84] (unknown [9.152.212.84]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 27 Mar 2018 10:02:19 +0100 (BST) Subject: Re: [PATCH v2 15/21] gcov: remove CONFIG_GCOV_FORMAT_AUTODETECT To: Masahiro Yamada , linux-kbuild@vger.kernel.org Cc: Sam Ravnborg , Linus Torvalds , Arnd Bergmann , Ulf Magnusson , Kees Cook , Thomas Gleixner , Greg Kroah-Hartman , Randy Dunlap , "Luis R . Rodriguez" , Nicolas Pitre , linux-kernel@vger.kernel.org References: <1522128575-5326-1-git-send-email-yamada.masahiro@socionext.com> <1522128575-5326-16-git-send-email-yamada.masahiro@socionext.com> From: Peter Oberparleiter Date: Tue, 27 Mar 2018 11:12:06 +0200 MIME-Version: 1.0 In-Reply-To: <1522128575-5326-16-git-send-email-yamada.masahiro@socionext.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 18032709-0040-0000-0000-000004275B18 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18032709-0041-0000-0000-0000262A7241 Message-Id: <4b423f15-fa71-d51c-9362-942ba26c0fe6@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-27_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1803270096 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27.03.2018 07:29, Masahiro Yamada wrote: > CONFIG_GCOV_FORMAT_AUTODETECT compiles either gcc_3_4.c or gcc_4_7.c > according to your GCC version. > > We can achieve the equivalent behavior by setting reasonable dependency > with the knowledge of the compiler version. > > If GCC older than 4.7 is used, GCOV_FORMAT_3_4 is the default, but users > are still allowed to select GCOV_FORMAT_4_7 in case the newer format is > back-ported. > > On the other hand, If GCC 4.7 or newer is used, there is no reason to > use GCOV_FORMAT_3_4, so it should be hidden. > > If you down-grade your compiler GCC 4.7 or older, oldconfig/syncconfig > will display a prompt for the choice because GCOV_FORMAT_3_4 becomes > visible as a new symbol. Looks sane to me. Acked-by: Peter Oberparleiter -- Peter Oberparleiter Linux on Z Development - IBM Germany