From patchwork Fri Jul 9 06:23:04 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Basile Starynkevitch X-Patchwork-Id: 58355 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]) by ozlabs.org (Postfix) with SMTP id 3462B1007D2 for ; Fri, 9 Jul 2010 16:23:06 +1000 (EST) Received: (qmail 28176 invoked by alias); 9 Jul 2010 06:23:04 -0000 Received: (qmail 28166 invoked by uid 22791); 9 Jul 2010 06:23:03 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from smtp-104-thursday.nerim.net (HELO kraid.nerim.net) (62.4.16.104) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 09 Jul 2010 06:22:55 +0000 Received: from hector.lesours (ours.starynkevitch.net [213.41.244.95]) by kraid.nerim.net (Postfix) with ESMTP id 9029ACF17E for ; Fri, 9 Jul 2010 08:22:52 +0200 (CEST) Received: from glinka.lesours ([192.168.0.1]) by hector.lesours with esmtp (Exim 4.72) (envelope-from ) id 1OX6z6-0003cn-D6 for gcc-patches@gcc.gnu.org; Fri, 09 Jul 2010 08:22:52 +0200 Subject: doc patch for gengtype's tag From: Basile Starynkevitch Reply-To: basile@starynkevitch.net To: gcc-patches@gcc.gnu.org Date: Fri, 09 Jul 2010 08:23:04 +0200 Message-ID: <1278656584.8738.11.camel@glinka> Mime-Version: 1.0 X-IsSubscribed: yes 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 Hello All, The following documentation patch to trunk rev 161983 clarifies the issue of "gengtype & many GTY tags for same union component?" http://gcc.gnu.org/ml/gcc/2010-07/msg00118.html & http://gcc.gnu.org/ml/gcc/2010-07/msg00061.html ############### patch::: ############### ############## gcc/ChangeLog entry ################ 2010-07-09 Basile Starynkevitch * doc/gty.texi (The inside of a GTY): Improved tag documentation. ############## Ok for trunk? Cheers Index: gcc/doc/gty.texi =================================================================== --- gcc/doc/gty.texi (revision 161983) +++ gcc/doc/gty.texi (working copy) @@ -183,6 +183,7 @@ The value of the expression given by @code{desc} i each @code{tag} value, each of which should be different. If no @code{tag} is matched, the field marked with @code{default} is used if there is one, otherwise no field in the union will be marked. +A union field can have at most one @code{tag}. In the @code{desc} option, the ``current structure'' is the union that it discriminates. Use @code{%1} to mean the structure containing it.