From patchwork Sun May 6 10:43:52 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Botcazou X-Patchwork-Id: 157060 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 BA817B6FA4 for ; Sun, 6 May 2012 20:46:37 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1336905998; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:From:To:Subject:Date:User-Agent:MIME-Version: Content-Type:Message-Id:Mailing-List:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=Bf0oBIlQd7qzk33+iBmI47yNAf4=; b=Y01oX+AsJh51ApM 3Mns5vYjGDtRfC+elhP6vBfRBbeL4DF1iyKSLkLuRcs26qwB2laoIH1Jqejwkllf qMxDvxeFBl7tUVcHPEc0zN3EQNnINv8GjX4gsglgoYvqQInkQCYsihOFWr5CFsW3 T2OAfNxoxwYnFYT4yb0JGuFvgOU8= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Received:From:To:Subject:Date:User-Agent:MIME-Version:Content-Type:Message-Id:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=OkiRcOmr8EuMVAkt4N0BOPPk2tF1u1u/kZpfugAwAKN2F09NzSTYzeM0kbmBxj oHzIeT1O9doab/uBHiDq4VCilTdY/tkJwNEom3Kjp+ddjbUotLFz4EWBhKjSmmLz k3HvgAfMpEDOxaZiSSPGtMgycEy/ozRVneSzmgudOU9yQ=; Received: (qmail 30666 invoked by alias); 6 May 2012 10:46:34 -0000 Received: (qmail 30658 invoked by uid 22791); 6 May 2012 10:46:34 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 06 May 2012 10:46:21 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id BA29B290022 for ; Sun, 6 May 2012 12:46:26 +0200 (CEST) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TEwDZQNoXTyj for ; Sun, 6 May 2012 12:46:26 +0200 (CEST) Received: from [192.168.1.2] (bon31-6-88-161-99-133.fbx.proxad.net [88.161.99.133]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id 882FF29000A for ; Sun, 6 May 2012 12:46:26 +0200 (CEST) From: Eric Botcazou To: gcc-patches@gcc.gnu.org Subject: [Ada] disable caret printing by default for Ada Date: Sun, 6 May 2012 12:43:52 +0200 User-Agent: KMail/1.9.9 MIME-Version: 1.0 Message-Id: <201205061243.52987.ebotcazou@adacore.com> 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 Like for front-end warnings. Tested on i586-suse-linux, applied on the mainline. 2012-05-06 Eric Botcazou * gcc-interface/misc.c (gnat_post_options): Disable caret by default. Index: gcc-interface/misc.c =================================================================== --- gcc-interface/misc.c (revision 187074) +++ gcc-interface/misc.c (working copy) @@ -235,6 +235,10 @@ gnat_post_options (const char **pfilenam /* No psABI change warnings for Ada. */ warn_psabi = 0; + /* No caret by default for Ada. */ + if (!global_options_set.x_flag_diagnostics_show_caret) + global_dc->show_caret = false; + optimize = global_options.x_optimize; optimize_size = global_options.x_optimize_size; flag_compare_debug = global_options.x_flag_compare_debug;