From patchwork Fri Dec 13 18:11:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Malcolm X-Patchwork-Id: 1209342 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-515928-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="AKxqExkv"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="Pm5V1T0a"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47ZJj51JFSz9sPJ for ; Sat, 14 Dec 2019 05:14:32 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= default; b=Vs3SKrVcu0DunujxmVhKI2DLDFn8xd+INkKGeinjdLdvU5FYq16Sx 1UYnPBv4wccId2eE8D8Ayv6b1jksQaTlutSyOY8osu6OXgAEZ0pvOCRIiN4zZ2iI WSk5NBaYTe6XhwMKWvary9SDSvIrUuo7laUyuApRlfwPQDvH5GxHVg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=default; bh=Fb/Xl2mGghEOR85ZXy1GMGDYj4U=; b=AKxqExkvXsVMGCQJ9oZ0uWzid/Kb OSZjC85/WAb2zc1yKMTWBNN9yB6V14h88/YUiK+8neoGwjLDgBekCLMJGS+aOohf 4/P4mnLm6G6n1G5/bk4mSNYmj5UEiJ5PNDbRpRi9NrlpzDV52KCxHXv4ejOvINMa iB/jN6xlDD8zvnY= Received: (qmail 100589 invoked by alias); 13 Dec 2019 18:11:55 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 100456 invoked by uid 89); 13 Dec 2019 18:11:54 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3 autolearn=ham version=3.3.1 spammy=enableobjcgc, enable-objc-gc X-HELO: us-smtp-1.mimecast.com Received: from us-smtp-delivery-1.mimecast.com (HELO us-smtp-1.mimecast.com) (205.139.110.120) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 13 Dec 2019 18:11:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576260708; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mGbVIGStDzj4TfOPIR9Lr77SyFDHMUzx3e2moS3ZJXY=; b=Pm5V1T0aLIKF0h1QiUFGVLfAAd+9XA3DaKSAg9vAzi5e0jl/0UgDlrpj8HB0aNq3IMdG6T Bz/wAQr2VwVT+LJ+BVeknhwJUAfioZFKGw+ex8aNp4BUxMPrImWJMIiVo2OjXvATkmCzZf 3umbovdPkhCidyb/KCqOCrJ1d0Ixgdk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-262-KetuAggyO62zwRwKxmTy1g-1; Fri, 13 Dec 2019 13:11:46 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3D140107ACC4 for ; Fri, 13 Dec 2019 18:11:45 +0000 (UTC) Received: from t470.redhat.com (ovpn-117-164.phx2.redhat.com [10.3.117.164]) by smtp.corp.redhat.com (Postfix) with ESMTP id D0D625C241; Fri, 13 Dec 2019 18:11:44 +0000 (UTC) From: David Malcolm To: gcc-patches@gcc.gnu.org Cc: David Malcolm Subject: [PATCH 13/45] analyzer: changes to configure.ac Date: Fri, 13 Dec 2019 13:11:02 -0500 Message-Id: <20191213181134.1830-14-dmalcolm@redhat.com> In-Reply-To: <20191213181134.1830-1-dmalcolm@redhat.com> References: <20191213181134.1830-1-dmalcolm@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-IsSubscribed: yes This patch adds a configuration option to disable building the analyzer. It is built by default (but off by default at compile-time). gcc/ChangeLog: * configure.ac (--disable-analyzer, ENABLE_ANALYZER): New option. (gccdepdir): Also create depdir for "analyzer" subdir. --- gcc/configure.ac | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/gcc/configure.ac b/gcc/configure.ac index 954c1496fb1c..dcd5e8dd38cc 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -909,6 +909,18 @@ vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; AC_DEFINE_UNQUOTED(ENABLE_VTABLE_VERIFY, $vtable_verify, [Define 0/1 if vtable verification feature is enabled.]) +AC_ARG_ENABLE(analyzer, +[AS_HELP_STRING([--disable-analyzer], + [disable -fanalyzer static analyzer])], +if test x$enable_analyzer = xno; then + analyzer=0 +else + analyzer=1 +fi, +analyzer=1) +AC_DEFINE_UNQUOTED(ENABLE_ANALYZER, $analyzer, +[Define 0/1 if static analyzer feature is enabled.]) + AC_ARG_ENABLE(objc-gc, [AS_HELP_STRING([--enable-objc-gc], [enable the use of Boehm's garbage collector with @@ -1214,7 +1226,7 @@ AC_CHECK_HEADERS(ext/hash_map) ZW_CREATE_DEPDIR AC_CONFIG_COMMANDS([gccdepdir],[ ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR - for lang in $subdirs c-family common + for lang in $subdirs c-family common analyzer do ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR done], [subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR])