From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 68690 invoked by alias); 9 Sep 2019 09:47:26 -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 68677 invoked by uid 89); 9 Sep 2019 09:47:26 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-9.3 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 spammy=HX-Languages-Length:529, salud, Salud X-HELO: userp2120.oracle.com Received: from userp2120.oracle.com (HELO userp2120.oracle.com) (156.151.31.85) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 09 Sep 2019 09:47:25 +0000 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x899hwKt063798 for ; Mon, 9 Sep 2019 09:47:23 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : references : date : in-reply-to : message-id : mime-version : content-type; s=corp-2019-08-05; bh=W8ADzZLYbGDynIIaY0iNe3KHZMWgabzOlbTm6GNcHrI=; b=gpiXRufHG1lyVncmKoVJMxFnkjYRxuX5WSr7Vw6q7bdsafo7gdDij21OtW9Ml9Vm2lhZ W+lDuKbMarNhGFvxhX/oQPwMtVuITzHnQwL0joiknSntUpZNeqixEvRjcPKoQS+MU2MQ mNa1WP047mUtkWKCMhHF+YuwdDSSn3evXerpabtp2YYLfzKy/v7jEmSJ8XovDL38jx+o rWsu79Cz198LgUPn6p35Bs3/ooa4I68ld7QnTUfQ4uXc+sPwCDsH365yoL6+cupfl98J cRC7PYVC5FKKxFXJlvEJ9EAXAZk/mpFGYDbSSSEAx+aCVUlAu5+krYXt7PclnpWL0aiQ vg== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2120.oracle.com with ESMTP id 2uw1jk328t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 09 Sep 2019 09:47:23 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x899gcDm061203 for ; Mon, 9 Sep 2019 09:45:22 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserp3020.oracle.com with ESMTP id 2uv4d1fsnk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 09 Sep 2019 09:45:22 +0000 Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x899jKTK021733 for ; Mon, 9 Sep 2019 09:45:21 GMT Received: from termi.oracle.com (/148.69.85.38) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 09 Sep 2019 02:45:20 -0700 From: jose.marchesi@oracle.com (Jose E. Marchesi) To: gcc-patches@gcc.gnu.org Subject: Re: [PATCH V6 02/11] opt-functions.awk: fix comparison of limit, begin and end References: <20190829151347.13536-1-jose.marchesi@oracle.com> <20190829151347.13536-3-jose.marchesi@oracle.com> Date: Mon, 09 Sep 2019 09:47:00 -0000 In-Reply-To: <20190829151347.13536-3-jose.marchesi@oracle.com> (Jose E. Marchesi's message of "Thu, 29 Aug 2019 17:13:38 +0200") Message-ID: <87a7bdls5w.fsf@oracle.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2019-09/txt/msg00478.txt.bz2 The function integer_range_info makes sure that, if provided, the initial value fills in the especified range. However, it is necessary to convert the values to a numerical context before comparing, to make sure awk is using arithmetical order and not lexicographical order. gcc/ChangeLog: * opt-functions.awk (integer_range_info): Make sure values are in numeric context before operating with them. I just installed this in svn trunk. Salud!