From patchwork Fri Apr 1 13:00:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Sidwell X-Patchwork-Id: 604793 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3qc1jB5z8Qz9ryQ for ; Sat, 2 Apr 2016 00:01:17 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=N6B04jkL; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=owmVh+NeADiMlJ+zjBUMZn6NWc+a7tuN6XVvaGPjipVc+eF8x8 VFjK9SHrUCdfa/VN75MYbA2a87aaKKSgtgkKP8jHew4COHSkNKIsC15Rnl34ULKM Iqyj9ErRpUeMeJfltWCh5u86dBwJOcjoYJsWIw8omebjMaWIX0NdL4KPI= 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:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=j18gWc/Ij+Y8jnvs1aopUfCBdBw=; b=N6B04jkLs3yzTxb3qEPi 8h1APKTuJdjYwz5Ybty7/WkY2eF9ZctQVcKLEdFVfDYe9uNyfvNmm8cyCe4wXYvg ZfO8d4fhdw2WXlwkAVZ3hp1o9tGoDV911aasmrBehygP8Kx21wsH58dmgUvCNZvk eZ6oxZhSMHI1nmfsicbVuIU= Received: (qmail 59598 invoked by alias); 1 Apr 2016 13:01:08 -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 59589 invoked by uid 89); 1 Apr 2016 13:01:07 -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=literally X-HELO: mail-qg0-f47.google.com Received: from mail-qg0-f47.google.com (HELO mail-qg0-f47.google.com) (209.85.192.47) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 01 Apr 2016 13:00:57 +0000 Received: by mail-qg0-f47.google.com with SMTP id w104so90042895qge.3 for ; Fri, 01 Apr 2016 06:00:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:to:from:subject:message-id:date :user-agent:mime-version; bh=PW6bTuh7UVtyaPoHSe78avh5pT5K5tA08fyhmYHeGuc=; b=Qz6sfIE0JjwDLLQN08eRavrBflIcnfp529vP/7J08quwh1Rc1tp8nsJgrrElvU1tVc 8Yr0nlRACk0DV7oGu8+WOE5yrICYhZcQTx5gwuVyEfwSMzYYL1a+hIqffiqLBvP4Pwgf jYKzqHN6WpySOD3k1fEFzKWCJj461jB6SqJp19H43c7X7Lz1r8hQmdlGLtl2Hb2GI8PH HPt6qkAjGrltVMgFFDbuM/nhuk0Px6nzTGEnUz2yN+zsSYSf/jiwi30qM3Ttq+n+Kqa6 nkHT7DH82QsMGC4q3fWG1UzmMj4AyDGflXTeA1c4kk4lFUDXBIT1Jun9YGAY2y0Ie2Sr VpLw== X-Gm-Message-State: AD7BkJLK/RrEiTtunX6/qqRXb2o9YjdlaDd2+656wLLHZId3u4y3Vw5yZzjtvnNFWdk5nw== X-Received: by 10.140.156.138 with SMTP id c132mr25974379qhc.96.1459515655067; Fri, 01 Apr 2016 06:00:55 -0700 (PDT) Received: from ?IPv6:2601:181:c000:c497:a2a8:cdff:fe3e:b48? ([2601:181:c000:c497:a2a8:cdff:fe3e:b48]) by smtp.googlemail.com with ESMTPSA id 38sm6075911qgn.6.2016.04.01.06.00.53 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 01 Apr 2016 06:00:54 -0700 (PDT) To: GCC Patches From: Nathan Sidwell Subject: Fix TRY_CATCH_EXPR comment Message-ID: <56FE7105.3090801@acm.org> Date: Fri, 1 Apr 2016 09:00:53 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In working on 55635 I noticed the comment for TRY_CATCH_EXPR was confusing. It is using 'operand 1' and 'operand 2' to mean 'first' and 'second', not literally op[1] and op[2]. Fixed to use indices 0 and 1. Applied as obvious. nathan 2016-04-01 Nathan Sidwell * tree.def (TRY_CATCH_EXPR): Correct documentation. Index: tree.def =================================================================== --- tree.def (revision 234668) +++ tree.def (working copy) @@ -870,10 +870,10 @@ DEFTREECODE (POSTINCREMENT_EXPR, "postin /* Used to implement `va_arg'. */ DEFTREECODE (VA_ARG_EXPR, "va_arg_expr", tcc_expression, 1) -/* Evaluate operand 1. If and only if an exception is thrown during - the evaluation of operand 1, evaluate operand 2. +/* Evaluate operand 0. If and only if an exception is thrown during + the evaluation of operand 0, evaluate operand 1. - This differs from TRY_FINALLY_EXPR in that operand 2 is not evaluated + This differs from TRY_FINALLY_EXPR in that operand 1 is not evaluated on a normal or jump exit, only on an exception. */ DEFTREECODE (TRY_CATCH_EXPR, "try_catch_expr", tcc_statement, 2)