From patchwork Wed Oct 12 11:59:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georg-Johann Lay X-Patchwork-Id: 681135 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 3svC965cxVz9s3T for ; Wed, 12 Oct 2016 23:00:09 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=l/r6sJ2a; 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=g9aB0GDlPWu7xytpbNYEtvqLGik1xifPWRPwOkFX7haFJeHkai tx1D+QyllgeXOK1muZOS9iBdwKqd4wwVHHNm0vYEmYauKQT4u2i7xJKSNDr0yOA+ uyLgSfHxF4y57pCtQNX97RzmvadiaYG7yu7+Hiq0/1FQ0fcrQ1C/4BDXA= 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=qzU35d5v48glHSb5zH7j75Gv6Z8=; b=l/r6sJ2aORESn/p0MYbU BbWhut9pn1oD5/5z3mCucEPf3VYlA5jdoqnSrmr8u7F59oTFHnED9/6GAP2hP17F 6gm11ldKPogPcUTn6hOKMhWISAjivMauhHjNftumEFkGklErKPRiKh94swjxYpWc nW+BbHi8ff6DSreKMqi5/0k= Received: (qmail 72603 invoked by alias); 12 Oct 2016 11:59:56 -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 72584 invoked by uid 89); 12 Oct 2016 11:59:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=REG, 3648, LABEL_REF, 333, 7 X-HELO: mo4-p00-ob.smtp.rzone.de Received: from mo4-p00-ob.smtp.rzone.de (HELO mo4-p00-ob.smtp.rzone.de) (81.169.146.161) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 12 Oct 2016 11:59:45 +0000 X-RZG-AUTH: :LXoWVUeid/7A29J/hMvvT3ol15ykJcYwTPLBCxG2PwtgsgUwIw== X-RZG-CLASS-ID: mo00 Received: from [192.168.0.123] (ip5f581faf.dynamic.kabel-deutschland.de [95.88.31.175]) by smtp.strato.de (RZmta 39.5 DYNA|AUTH) with ESMTPSA id k04e18s9CBxfx8n (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate) for ; Wed, 12 Oct 2016 13:59:41 +0200 (CEST) To: gcc-patches From: Georg-Johann Lay Subject: [patch] Comment in rtl.h how rtx flags are dumped in rtl dumps. Message-ID: <189ffc5b-909d-d5c7-6ea1-06a792a83f62@gjlay.de> Date: Wed, 12 Oct 2016 13:59:41 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 X-IsSubscribed: yes This is a no-op change that just adds comments how the various RTX flags will appear in RTL dumps. Ok for trunk? Johann * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be dumped in RTL dumps. Index: rtl.h =================================================================== --- rtl.h (revision 241033) +++ rtl.h (working copy) @@ -317,12 +317,14 @@ struct GTY((desc("0"), tag("0"), 1 in a CONCAT is VAL_EXPR_IS_COPIED in var-tracking.c. 1 in a VALUE is SP_BASED_VALUE_P in cselib.c. 1 in a SUBREG generated by LRA for reload insns. - 1 in a CALL for calls instrumented by Pointer Bounds Checker. */ + 1 in a CALL for calls instrumented by Pointer Bounds Checker. + Dumped as "/j" in RTL dumps. */ unsigned int jump : 1; /* In a CODE_LABEL, part of the two-bit alternate entry field. 1 in a MEM if it cannot trap. 1 in a CALL_INSN logically equivalent to - ECF_LOOPING_CONST_OR_PURE and DECL_LOOPING_CONST_OR_PURE_P. */ + ECF_LOOPING_CONST_OR_PURE and DECL_LOOPING_CONST_OR_PURE_P. + Dumped as "/c" in RTL dumps. */ unsigned int call : 1; /* 1 in a REG, MEM, or CONCAT if the value is set at most once, anywhere. 1 in a SUBREG used for SUBREG_PROMOTED_UNSIGNED_P. @@ -333,7 +335,8 @@ struct GTY((desc("0"), tag("0"), 1 in a JUMP_INSN of an annulling branch. 1 in a CONCAT is VAL_EXPR_IS_CLOBBERED in var-tracking.c. 1 in a preserved VALUE is PRESERVED_VALUE_P in cselib.c. - 1 in a clobber temporarily created for LRA. */ + 1 in a clobber temporarily created for LRA. + Dumped as "/u" in RTL dumps. */ unsigned int unchanging : 1; /* 1 in a MEM or ASM_OPERANDS expression if the memory reference is volatile. 1 in an INSN, CALL_INSN, JUMP_INSN, CODE_LABEL, BARRIER, or NOTE @@ -344,9 +347,10 @@ struct GTY((desc("0"), tag("0"), 1 in a LABEL_REF, REG_LABEL_TARGET or REG_LABEL_OPERAND note for a non-local label. In a SYMBOL_REF, this flag is used for machine-specific purposes. - In a PREFETCH, this flag indicates that it should be considered a scheduling - barrier. - 1 in a CONCAT is VAL_NEEDS_RESOLUTION in var-tracking.c. */ + In a PREFETCH, this flag indicates that it should be considered a + scheduling barrier. + 1 in a CONCAT is VAL_NEEDS_RESOLUTION in var-tracking.c. + Dumped as "/v" in RTL dumps. */ unsigned int volatil : 1; /* 1 in a REG if the register is used only in exit code a loop. 1 in a SUBREG expression if was generated from a variable with a @@ -360,7 +364,8 @@ struct GTY((desc("0"), tag("0"), cleared before used. The name of the field is historical. It used to be used in MEMs - to record whether the MEM accessed part of a structure. */ + to record whether the MEM accessed part of a structure. + Dumped as "/s" in RTL dumps. */ unsigned int in_struct : 1; /* At the end of RTL generation, 1 if this rtx is used. This is used for copying shared structure. See `unshare_all_rtl'. @@ -377,13 +382,15 @@ struct GTY((desc("0"), tag("0"), 1 in a REG or MEM if it is a pointer. 1 in a SYMBOL_REF if it addresses something in the per-function constant string pool. - 1 in a VALUE is VALUE_CHANGED in var-tracking.c. */ + 1 in a VALUE is VALUE_CHANGED in var-tracking.c. + Dumped as "/f" in RTL dumps. */ unsigned frame_related : 1; /* 1 in a REG or PARALLEL that is the current function's return value. 1 in a SYMBOL_REF for a weak symbol. 1 in a CALL_INSN logically equivalent to ECF_PURE and DECL_PURE_P. 1 in a CONCAT is VAL_EXPR_HAS_REVERSE in var-tracking.c. - 1 in a VALUE or DEBUG_EXPR is NO_LOC_P in var-tracking.c. */ + 1 in a VALUE or DEBUG_EXPR is NO_LOC_P in var-tracking.c. + Dumped as "/i" in RTL dumps. */ unsigned return_val : 1; union {