From patchwork Tue Feb 6 08:31:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Botcazou X-Patchwork-Id: 869708 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-472642-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="D1O6WwVf"; 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 3zbHkD06jvz9s71 for ; Tue, 6 Feb 2018 19:31:45 +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:subject:date:message-id:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=lgJGg05asBRCOekv TOCa+qSmNHj3a7PsfffnaOvEFBzSCbY3+ZJvY2Dno6Y2eNRCO5d2DXZtcrBhyzND 4ID35YtRcVsrDG0lxwl9csZcQO96sCpCdoZSy8jHIJbdvC1mOYA+r7L1+fUcY8QL 1R7acM6RI1/5qf8H8+aF7hZPpyQ= 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:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=default; bh=VjBeJpVZEGOkFPqD+n7vxK zAWvQ=; b=D1O6WwVfWD+AmMt9aK8MEgV1rc8NjEr6sREvIHA7gAJCneB+omQrsP lmcvhGGm1QdbVLGp7sH6ULLkFOYvvECt9JGbkUf1HuMn65+4MzB1+fhizDRUQqGN BNSTn9NbWBKCbjYsSrtGQO8lHxFEse4dFdzPrpNDjaMAzLM8DJ25E= Received: (qmail 28313 invoked by alias); 6 Feb 2018 08:31:37 -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 28302 invoked by uid 89); 6 Feb 2018 08:31:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-10.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=conftest.c, UD:conftest.c, conftestc X-HELO: smtp.eu.adacore.com Received: from mel.act-europe.fr (HELO smtp.eu.adacore.com) (194.98.77.210) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 06 Feb 2018 08:31:35 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id E64708138C for ; Tue, 6 Feb 2018 09:31:33 +0100 (CET) Received: from smtp.eu.adacore.com ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Rb_M3kv1Nlg9 for ; Tue, 6 Feb 2018 09:31:33 +0100 (CET) Received: from polaris.localnet (bon31-6-88-161-99-133.fbx.proxad.net [88.161.99.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.eu.adacore.com (Postfix) with ESMTPSA id C2A868138B for ; Tue, 6 Feb 2018 09:31:33 +0100 (CET) From: Eric Botcazou To: gcc-patches@gcc.gnu.org Subject: Remove -q passed to grep in gcc-plugin.m4 Date: Tue, 06 Feb 2018 09:31:32 +0100 Message-ID: <1682143.4H1IkG9Afn@polaris> MIME-Version: 1.0 The option is not supported on the original Solaris' grep. Given that there is also a redirection to /dev/null at the end, it is superfluous. Tested on x86_64-suse-linux, applied on the mainline as obvious. 2018-02-06 Eric Botcazou config/ * gcc-plugin.m4 (GCC_ENABLE_PLUGINS): Remove -q option passed to grep. 2018-02-06 Eric Botcazou gcc/ * configure: Regenerate. Index: gcc-plugin.m4 =================================================================== --- gcc-plugin.m4 (revision 257404) +++ gcc-plugin.m4 (working copy) @@ -60,14 +60,14 @@ AC_DEFUN([GCC_ENABLE_PLUGINS], if test "x$export_sym_check" != x; then echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1 - if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then + if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then : # No need to use a flag AC_MSG_RESULT([yes]) else AC_MSG_RESULT([yes]) AC_MSG_CHECKING([for -rdynamic]) ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1 - if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then + if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then plugin_rdynamic=yes pluginlibs="-rdynamic" else