From patchwork Tue Jun 12 14:24:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Martin_Li=C5=A1ka?= X-Patchwork-Id: 928337 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-479540-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="Oe4IAFUa"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 414sbz6WyWz9ryk for ; Wed, 13 Jun 2018 00:25:19 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :subject:to:message-id:date:mime-version:content-type; q=dns; s= default; b=DFlNxYSqAu6rX7GFUxO7Mz24Bb5fyAW191yc8pjo/xc945t6zNA21 shh4js9P06bEugkyai1r4Ro+V58gD+eEv3B4nx3+w98nViNDyzSXW+nKwodtKUnN StNGVTI1XX/syjAyteKXFNTlKvgk4zmF+5bKRVBgrE/SApXEMSk0Z0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :subject:to:message-id:date:mime-version:content-type; s= default; bh=ulj6uatru29no7mLD4ixBACx43Y=; b=Oe4IAFUad9gNGda75t41 mCje6L4DtxcL2/jV+6SDAH5XiLL7I0o4ghrf+zyNd9iLarJpVrx4Qgu2YFILJYGw THHQZo2n7i7O7muzw9fFJZ+OdBwwdbtV3Eoc4TYVxU9o+/YDilB12SdIdFLjTiRJ 14pCRfsg1+6tzqOaDwuL0RM= Received: (qmail 106741 invoked by alias); 12 Jun 2018 14:25:12 -0000 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 Received: (qmail 106527 invoked by uid 89); 12 Jun 2018 14:25:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS autolearn=ham version=3.3.2 spammy=mentioning X-HELO: mx2.suse.de Received: from mx2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 12 Jun 2018 14:24:55 +0000 Received: from relay2.suse.de (charybdis-ext-too.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 42510ABD0 for ; Tue, 12 Jun 2018 14:24:33 +0000 (UTC) From: =?utf-8?q?Martin_Li=C5=A1ka?= Subject: [PATCH] Document IntegerRange in internal documentation. To: gcc-patches@gcc.gnu.org Message-ID: <80ec1149-bcf3-8629-910f-b86194d45bde@suse.cz> Date: Tue, 12 Jun 2018 16:24:33 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 X-IsSubscribed: yes Hi. The patch is mentioning IntegerRange in documentation. Ready for trunk? Martin gcc/ChangeLog: 2018-06-12 Martin Liska * doc/options.texi: Document IntegerRange. --- gcc/doc/options.texi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gcc/doc/options.texi b/gcc/doc/options.texi index 69743125c22..f30f077983f 100644 --- a/gcc/doc/options.texi +++ b/gcc/doc/options.texi @@ -264,6 +264,11 @@ option handler. @code{UInteger} should also be used on options like @code{-falign-loops}=@var{n} are supported to make sure the saved options are given a full integer. +@item IntegerRange(@var{n}, @var{m}) +The options's arguments are integer numbers. The option parser +will check that value of an option is inclusively withing +range [@var{n}, @var{m}]. + @item ToLower The option's argument should be converted to lowercase as part of putting it in canonical form, and before comparing with the strings