From patchwork Sat Jul 9 23:03:33 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John David Anglin X-Patchwork-Id: 104038 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id DE6CD1007D1 for ; Sun, 10 Jul 2011 09:04:06 +1000 (EST) Received: (qmail 887 invoked by alias); 9 Jul 2011 23:04:05 -0000 Received: (qmail 879 invoked by uid 22791); 9 Jul 2011 23:04:04 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from hiauly1.hia.nrc.ca (HELO hiauly1.hia.nrc.ca) (132.246.10.84) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 09 Jul 2011 23:03:46 +0000 Received: by hiauly1.hia.nrc.ca (Postfix, from userid 1000) id DD30E4DE3; Sat, 9 Jul 2011 19:03:34 -0400 (EDT) Date: Sat, 9 Jul 2011 19:03:33 -0400 From: John David Anglin To: gcc-patches@gcc.gnu.org Cc: libtool-patches@gnu.org, Ralf.Wildenhues@gmx.de Subject: [PATCH] libtool -- don't print warnings with --silent Message-ID: <20110709230331.GA3338@hiauly1.hia.nrc.ca> Reply-To: John David Anglin MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-09) 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 The attached patch fixes the boehm-gc testsuite on hppa2.0w-hp-hpux11.11. Without it, libtool always generates an informational warning when linking causing the entire boehm-gc testsuite to fail. Ok? Ralf would you please install in libtool tree if ok. 2011-07-09 John David Anglin PR boehm-gc/48494 * ltmain.sh (func_warning): Don't print warnings if opt_silent is true. Dave Index: ltmain.sh =================================================================== --- ltmain.sh (revision 176045) +++ ltmain.sh (working copy) @@ -437,7 +437,9 @@ # Echo program name prefixed warning message to standard error. func_warning () { - $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2 + ${opt_silent-false} || { + $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2 + } # bash bug again: :