From patchwork Wed Feb 8 10:04:57 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Charlet X-Patchwork-Id: 140102 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 58EF1B6FA0 for ; Wed, 8 Feb 2012 21:05:21 +1100 (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=1329300323; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:Date:From:To:Cc:Subject:Message-ID: MIME-Version:Content-Type:Content-Disposition:User-Agent: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=33nAJqULn8GUM4t3iejv IPQrgKA=; b=ZJ3yA6QfwEvJz1rcUtUQ34a7fhninBZyrSBjh2C1Swlf6M9NhesU Qac38NvzUj8GumcpbIy4MzxA0nu0XzOX7B7H+XO5+ClLMaWO4hl/zt5Socf3zsgR vkkeG+JzAYmwKWQbYdJmp2QnvUgjVL3miLRpYL4XqgSRoZP8roIo7WE= 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:Received:Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type:Content-Disposition:User-Agent:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=VHoSk823x4xeizF4PCRwNR6RlfxFcCAV+Pg6yvEGxBycQvCzIQuy33Q2Ea8fDj Ay3RHTqe7vy2rZFmDZ+V73yuW7l1vLnS1PGubOqQlTaXmA2o+J151WTYINTTpWFi NUp5AK9B2qGmr5vU5gV10jOrACPQ3EFUJb8b7YEfdSPdk=; Received: (qmail 3031 invoked by alias); 8 Feb 2012 10:05:13 -0000 Received: (qmail 3017 invoked by uid 22791); 8 Feb 2012 10:05:11 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 08 Feb 2012 10:04:58 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id A7E781C6986; Wed, 8 Feb 2012 05:04:57 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id m5ONC7a07TPR; Wed, 8 Feb 2012 05:04:57 -0500 (EST) Received: from kwai.gnat.com (kwai.gnat.com [205.232.38.4]) by rock.gnat.com (Postfix) with ESMTP id 8E6951C68E5; Wed, 8 Feb 2012 05:04:57 -0500 (EST) Received: by kwai.gnat.com (Postfix, from userid 4192) id 89A5992BF6; Wed, 8 Feb 2012 05:04:57 -0500 (EST) Date: Wed, 8 Feb 2012 05:04:57 -0500 From: Arnaud Charlet To: gcc-patches@gcc.gnu.org Cc: Bob Duff Subject: [Ada] -gnatwA should suppress mod warning Message-ID: <20120208100457.GA20714@adacore.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) 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 This patch causes -gnatwA to suppress the warning was intended. Tested on x86_64-pc-linux-gnu, committed on trunk 2012-02-08 Bob Duff * warnsw.adb (Set_Warning_Switch): Set Warn_On_Suspicious_Modulus_Value False for '-gnatwA', to suppress these warnings. Index: warnsw.adb =================================================================== --- warnsw.adb (revision 183996) +++ warnsw.adb (working copy) @@ -6,7 +6,7 @@ -- -- -- B o d y -- -- -- --- Copyright (C) 1999-2011, Free Software Foundation, Inc. -- +-- Copyright (C) 1999-2012, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -308,6 +308,7 @@ Warn_On_Redundant_Constructs := False; Warn_On_Reverse_Bit_Order := False; Warn_On_Suspicious_Contract := False; + Warn_On_Suspicious_Modulus_Value := False; Warn_On_Unchecked_Conversion := False; Warn_On_Unordered_Enumeration_Type := False; Warn_On_Unrecognized_Pragma := False;