From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5889 invoked by alias); 14 Dec 2004 07:00:12 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 5799 invoked from network); 14 Dec 2004 07:00:05 -0000 Received: from unknown (HELO zoot.lafn.org) (206.117.18.6) by sourceware.org with SMTP; 14 Dec 2004 07:00:05 -0000 Received: from localhost.localdomain (Debian-exim@host-66-81-176-204.rev.o1.com [66.81.176.204]) by zoot.lafn.org (8.12.3p3/8.12.3) with ESMTP id iBE6xwYu057466 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO) for ; Mon, 13 Dec 2004 23:00:04 -0800 (PST) (envelope-from kraai@lafn.org) Received: from kraai by localhost.localdomain with local (Exim 4.34) id 1Cdwpb-0001KE-I9 for gcc@gcc.gnu.org; Mon, 13 Dec 2004 12:30:09 -0800 Date: Tue, 14 Dec 2004 07:00:00 -0000 From: Matt Kraai To: gcc@gcc.gnu.org Message-ID: <20041213203007.GA4907@localhost.localdomain> Mime-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.6+20040907i X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: kraai@lafn.org Subject: GTY and const Content-Type: text/plain; charset=us-ascii X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on catalunya X-Spam-Level: X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.64 X-SA-Exim-Version: 4.1 (built Wed, 18 Aug 2004 01:12:09 +0000) X-SA-Exim-Scanned: Yes (on localhost.localdomain) X-Virus-Status: Clean X-SW-Source: 2004-12/txt/msg00494.txt.bz2 Howdy, One of the warnings that causes PR 18176 is an assignment of a const cpp_token * to the source member of the val union of the cpp_token structure, which is not const. According to the uses I've found, this member could be const, except that doing so causes warnings in gtype-desc.c, which does not preserve the const qualifier. Would it be better to add a cast around the assignment or to make the GTY code handle const members? -- Matt