From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 60722 invoked by alias); 8 Jun 2016 02:44:31 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 60707 invoked by uid 89); 8 Jun 2016 02:44:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-qk0-f194.google.com Received: from mail-qk0-f194.google.com (HELO mail-qk0-f194.google.com) (209.85.220.194) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 08 Jun 2016 02:44:21 +0000 Received: by mail-qk0-f194.google.com with SMTP id l185so12391716qkc.2 for ; Tue, 07 Jun 2016 19:44:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=fLm42J62bAJf0XVcR6xJoQXuyEFlw12S2GrIvlIlNDc=; b=FjRJbMjAZ82ynzfrYhw+MIagdYOKkGEPDqYD6XfQkDm6vl0jIbSAyheVM0xjENJnEj JYCAq/7RZ6lfnRYwBVDzdMLOIogQsTv0CVzdf7lbMuCPKz6IB64b1YLt/atZV3aAuNZD Ymx97lVwCzvUU29sda6X05tIF+NmWblLzIfv537clt/Za7SI6tFAn+eGE93ase0QR116 dz7+XNcG58c6vMS4pIDnmzJrMDeRpC4TpP5N7XHDTl6E/iLgd5GnY7Sc/TMYZXR0NdZL fGikOkTl5tmLF7yCqCe7q9JNhrKa3vUlwX2lUVZottrsO73FCmR2yG7vlhFGtPpySE3F 7N4w== X-Gm-Message-State: ALyK8tK4dfan1VlPP2mObW7GjQuZvL3+wIjFiwHchQCY/KGM8OIMpnXWyKAwAfH2tjzFRA== X-Received: by 10.55.24.20 with SMTP id j20mr2534144qkh.168.1465353858997; Tue, 07 Jun 2016 19:44:18 -0700 (PDT) Received: from [192.168.0.26] (70-59-29-181.hlrn.qwest.net. [70.59.29.181]) by smtp.gmail.com with ESMTPSA id 61sm7982188qte.38.2016.06.07.19.44.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Jun 2016 19:44:18 -0700 (PDT) Subject: Re: [PATCH] c/70883 - inconsistent error message for calls to __builtin_add_overflow with too few arguments To: Gcc Patch List , Jakub Jelinek References: <574F4EF6.2080507@gmail.com> From: Martin Sebor Message-ID: <57578681.2080504@gmail.com> Date: Wed, 08 Jun 2016 02:44:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <574F4EF6.2080507@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-06/txt/msg00540.txt.bz2 Ping: This is a trivial patch to make the text of an error message for an insufficient number of arguments to a built-in consistent across different built-ins. Rather that sometimes saying "not enough arguments" and others "too few arguments" the patch makes GCC print "too few" in all cases. https://gcc.gnu.org/ml/gcc-patches/2016-06/msg00093.html On 06/01/2016 03:09 PM, Martin Sebor wrote: > Jakub, > > As you requested in the discussion of my arithmetic overflow > built-in patch, attached is the subset of the patch to make > consistent with other such diagnostics the text of the error > message issued for insufficient numbers of arguments in calls > to built-in functions such as __builtin_add_overflow, > __builtin_constant_p, and others. > > Thanks > Martin