Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4008582imu; Mon, 14 Jan 2019 13:08:52 -0800 (PST) X-Google-Smtp-Source: ALg8bN4IGlEg7+ic9Gwu97GRoNOwfgKgpjwBHedyk1v8Is9hSvNKYi+2/uRhCL1DNT6PFoE0zAQi X-Received: by 2002:a62:4587:: with SMTP id n7mr461631pfi.118.1547500131996; Mon, 14 Jan 2019 13:08:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547500131; cv=none; d=google.com; s=arc-20160816; b=W4NueaXL7yzzzzcLGKzEod+B0jto1XIW38JmjYp5yfMSNLoevxiyQP3DsFEObV7E8E iYQJCi53Lt2sOZ3jcK1Pbq+pd+hH0MY8D6AVfnRgifF68wJ36P8DUOkjXPhy2bOhvVJ5 lEnZZdkuP2X7tqiRkYuqOcjpmM4dhJwJK3jwxOyMV/pVA/P4hSPNCvz2S0AHx0rgy3fS 5ZzkA140JkRNHFWlcCuuEQ0ciw2nUzfEz9C1MNlYUKSkBBpVQH/biSXbE1qbB03e+qjS wcXU2D9WbaE5laM13VywGuK+uhidCcVMSMwKz07i/UU22s3QXmvC+0Bvq6qghLDgvrL/ SppQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GD+EBvrWZeLBiLbVYUmorj631pUkIjHc9+6iZNpQcXU=; b=bWjtqdJW7NtJdlypT6nry7zGYvaDnb37VvAJse3WMlX9ceC5M5H0u3UctD/M0/8R89 /vdUKwfEkuc6wweTAuy0NKa6DEjhZrLxnPN++MT2ogQcuBQvT1tD7+K7jMtuaCdH6JIV ligAPxDmCK+LvYgT8OfY+cCocafkkl6W1XP2JsnWKotybvOD0haRIcHRIy63tP/ABXH0 zhlUTLIUIQb+hK1ZLFEw8GRlxndzxZSu4GkSkdTwSDs8YVareR/8YhOtQvgVTTJ4RiGf DlmyoZq6phQv9ZzVyYMgJhpZY2a/T4IQYjcyKAGMbxXZxI1qw22xgw+LhWiklkK6P+Y7 LMDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@android.com header.s=20161025 header.b=dKl6W2km; 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=NONE dis=NONE) header.from=android.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b65si1247277pgc.259.2019.01.14.13.08.36; Mon, 14 Jan 2019 13:08:51 -0800 (PST) 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=@android.com header.s=20161025 header.b=dKl6W2km; 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=NONE dis=NONE) header.from=android.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727113AbfANVFa (ORCPT + 99 others); Mon, 14 Jan 2019 16:05:30 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:53040 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727006AbfANVF3 (ORCPT ); Mon, 14 Jan 2019 16:05:29 -0500 Received: by mail-wm1-f67.google.com with SMTP id m1so1123198wml.2 for ; Mon, 14 Jan 2019 13:05:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=android.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GD+EBvrWZeLBiLbVYUmorj631pUkIjHc9+6iZNpQcXU=; b=dKl6W2kmX3JEWaXye7fKLgBiYCdvVxyGhuaVpfv341sIiYHAHNdkV+CP4AAgFz4yZL Xr/L1ONJeNWUS2wHbC3onHHM64N+yG6BLgjNaiBhPBJ2lpaufhHp53wb41aebETT51EE eHDFwp3r+6Ykht2fKufHU+UzpC2ApJLJWUKNgG8kosLuYmcBDj6iCR/rX5FDAMllF0GG gnOdU9MFlqnl3O7Rl+WHVwRiW5b0F3LHl5LXrEAfp5TgYk3BGFrFlE9ZdjsQwadVeck/ wu/RcP4SJ2K2B+pNhH5tWaizL3Vy5RWY3Kw94oeO0h4CNB4VLr02iZjbEF90ivNpb80U 9FEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=GD+EBvrWZeLBiLbVYUmorj631pUkIjHc9+6iZNpQcXU=; b=HyjWRICfVIECgMC+NsVznvFBeMUaebiWVVVCleSKbWbP1nX/AYM7z4ffhqJdunbtF6 e4n8p2LDAkN4A8MQM1XFaUug+HplIqE6zc/fVJfu4CO/j21DSWI6pdK/B7JxVZWGBp3B eK1N0roOWu7kDSRYcNZhUeHLwtJ72wJEdZlfvTol+S0mG9lIvfH+qAkmsmg9nuQRy+9h ccJVadRYtGIhQytqPSn5heElBBG3yH+kyXG4XZzsf5/nYJDmZqpnDE8W8kSOZUBCfwRg 2Sx7+hXDBMzdtO/GQFgPhFev0FYcAFiM3dXl0Rb2MbDnfHgjc4TC/xs+yqcOhjbyMhYU fwhg== X-Gm-Message-State: AJcUukelm3b9qHuYOn/Yto10bgyNkJW07U/2198kUwAH3rmLVgOhFfbw /bvjaIMz20XrKhFNfvR4qAKLQw== X-Received: by 2002:a7b:c5cc:: with SMTP id n12mr709714wmk.149.1547499927083; Mon, 14 Jan 2019 13:05:27 -0800 (PST) Received: from trong0.mtv.corp.google.com ([2620:0:1000:1601:c43f:8c1b:f6ef:3dce]) by smtp.gmail.com with ESMTPSA id s1sm106981548wro.9.2019.01.14.13.05.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Jan 2019 13:05:26 -0800 (PST) From: Tri Vo To: oberpar@linux.ibm.com Cc: ghackmann@android.com, ndesaulniers@google.com, linux-kernel@vger.kernel.org, kernel-team@android.com, Tri Vo Subject: [PATCH 4/4] gcov: clang: pick GCC vs Clang format depending on compiler Date: Mon, 14 Jan 2019 13:04:26 -0800 Message-Id: <20190114210426.177543-5-trong@android.com> X-Mailer: git-send-email 2.20.1.97.g81188d93c3-goog In-Reply-To: <20190114210426.177543-1-trong@android.com> References: <20190114210426.177543-1-trong@android.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Clang gcov format is only supported by Clang compiler, and Clang compiler only supports Clang format. We set gcov format to depend on which compiler (GCC or Clang) is used. Automatic format detection behavior is preserved because: If GCC is used, one of the GCC gcov formats is selected. If Clang is used, Clang gcov format is selected. Signed-off-by: Tri Vo --- kernel/gcov/Kconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel/gcov/Kconfig b/kernel/gcov/Kconfig index eb428e570923..37ec551d4039 100644 --- a/kernel/gcov/Kconfig +++ b/kernel/gcov/Kconfig @@ -60,6 +60,8 @@ choice In such a case, change this option to adjust the format used in the kernel accordingly. + Select Clang gcov format if building with Clang compiler. + config GCOV_FORMAT_3_4 bool "GCC 3.4 format" depends on CC_IS_GCC && GCC_VERSION < 40700 @@ -68,11 +70,13 @@ config GCOV_FORMAT_3_4 config GCOV_FORMAT_4_7 bool "GCC 4.7 format" + depends on CC_IS_GCC ---help--- Select this option to use the format defined by GCC 4.7. config GCOV_FORMAT_CLANG bool "Clang format" + depends on CC_IS_CLANG ---help--- Select this option to use the format defined by Clang. -- 2.20.1.97.g81188d93c3-goog