From patchwork Tue May 15 23:44:58 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans-Peter Nilsson X-Patchwork-Id: 159472 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 4F7D2B6FB4 for ; Wed, 16 May 2012 09:45:20 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1337730320; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:Received:Received:Date:Message-Id:From:To:CC: In-reply-to:Subject:MIME-Version:Content-Type: Content-Transfer-Encoding:Mailing-List:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=fWgeeW+Ih/Rhw//uzTDSbRT70B0=; b=qdH2oaJ4J3bxi49 ROq1Mv2w7w3dxCLBQIA7bD+T3Sa3mJtnuXC4sHvMwTGx8cdt5eE9/211s4CmhoAT afVdZ0bcmGPILH9ydGsd5wjwi1+WUmfMy0IGZPta86oZegn6mwslK+vBmv0rwh8G LscBmkwK4bvPcmEHVO1VJ9432p2E= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Received:Received:Received:Received:Date:Message-Id:From:To:CC:In-reply-to:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=Y1sQy12rC164wl0iiJdy92fbc2xZK6JeB5Qu1eI1ajrEGHjzhmGHButqOB+CWs 4zMmytNxVtj2rgQdTYPoGpcbmYztBPyzaWGIYg54E01lmvoOzU5afukdgBI0Kclk Ul8noZo04npZdyQ6LJ1ozkeF5FlWKy/KdsRs6YDOc/bH0=; Received: (qmail 3486 invoked by alias); 15 May 2012 23:45:16 -0000 Received: (qmail 3478 invoked by uid 22791); 15 May 2012 23:45:15 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=AWL, BAYES_00, KHOP_THREADED, RCVD_IN_HOSTKARMA_NO, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from ra.se.axis.com (HELO ra.se.axis.com) (195.60.68.13) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 15 May 2012 23:45:02 +0000 Received: from localhost (localhost [127.0.0.1]) by ra.se.axis.com (Postfix) with ESMTP id 745A913A87; Wed, 16 May 2012 01:45:00 +0200 (CEST) Received: from ra.se.axis.com ([127.0.0.1]) by localhost (ra.se.axis.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 2AU3s3mqE2+7; Wed, 16 May 2012 01:44:59 +0200 (CEST) Received: from thoth.se.axis.com (thoth.se.axis.com [10.0.2.173]) by ra.se.axis.com (Postfix) with ESMTP id 15AF313A68; Wed, 16 May 2012 01:44:59 +0200 (CEST) Received: from ignucius.se.axis.com (ignucius.se.axis.com [10.88.21.50]) by thoth.se.axis.com (Postfix) with ESMTP id 0181E34154; Wed, 16 May 2012 01:44:59 +0200 (CEST) Received: from ignucius.se.axis.com (localhost [127.0.0.1]) by ignucius.se.axis.com (8.12.8p1/8.12.8/Debian-2woody1) with ESMTP id q4FNiwmt017633; Wed, 16 May 2012 01:44:58 +0200 Received: (from hp@localhost) by ignucius.se.axis.com (8.12.8p1/8.12.8/Debian-2woody1) id q4FNiwZQ017629; Wed, 16 May 2012 01:44:58 +0200 Date: Wed, 16 May 2012 01:44:58 +0200 Message-Id: <201205152344.q4FNiwZQ017629@ignucius.se.axis.com> From: Hans-Peter Nilsson To: gcc-patches@gcc.gnu.org CC: joseph@codesourcery.com In-reply-to: <201205152144.q4FLinxo015000@ignucius.se.axis.com> (message from Hans-Peter Nilsson on Tue, 15 May 2012 23:44:49 +0200) Subject: Committed: fix source-code reference in SIZE_TYPE docs (was: How do I set SIG_ATOMIC_TYPE to a variant of a C-type?) MIME-Version: 1.0 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 (Originally a post to gcc@. I don't know why I bother posting there; it usually ends up with a patch. :) > From: Hans-Peter Nilsson > Date: Tue, 15 May 2012 23:44:49 +0200 > > From: "Joseph S. Myers" > > Date: Tue, 15 May 2012 22:06:03 +0200 > > > And as you have discovered, there are rules for these type > > strings documented in tm.texi under SIZE_TYPE; to use some other variant > > you'll need to find and eliminate all the dependencies on whatever rule > > you wish to change. > > What I missed was more careful reading, the clue being: "The > string must exactly match one of the data type names defined in > the function..." That quote stopped just before an obsolete source-code reference. (Maybe I could argue that made me subconsciously filter out the whole section when reading. :) Updated as below, committed as obvious after inspection of the DVI output. gcc: * doc/tm.texi.in (Type Layout) : Update reference to source-code. * doc/tm.texi: Regenerate. brgds, H-P Index: tm.texi.in =================================================================== --- tm.texi.in (revision 187558) +++ tm.texi.in (working copy) @@ -1622,9 +1622,9 @@ The string can contain more than one key spaces, and write first any length keyword, then @code{unsigned} if appropriate, and finally @code{int}. The string must exactly match one of the data type names defined in the function -@code{init_decl_processing} in the file @file{c-decl.c}. You may not -omit @code{int} or change the order---that would cause the compiler to -crash on startup. +@code{c_common_nodes_and_builtins} in the file @file{c-family/c-common.c}. +You may not omit @code{int} or change the order---that would cause the +compiler to crash on startup. If you don't define this macro, the default is @code{"long unsigned int"}.