From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8731 invoked by alias); 20 May 2009 09:45:27 -0000 Received: (qmail 8707 invoked by uid 22791); 20 May 2009 09:45:22 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_FAIL X-Spam-Check-By: sourceware.org Received: from mx20.gnu.org (HELO mx20.gnu.org) (199.232.41.8) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 20 May 2009 09:45:17 +0000 Received: from mail.codesourcery.com ([65.74.133.4]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M6iMM-0005Gk-Rv for gcc@gcc.gnu.org; Wed, 20 May 2009 05:45:15 -0400 Received: (qmail 11409 invoked from network); 20 May 2009 09:45:12 -0000 Received: from unknown (HELO digraph.polyomino.org.uk) (joseph@127.0.0.2) by mail.codesourcery.com with ESMTPA; 20 May 2009 09:45:12 -0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.69) (envelope-from ) id 1M6iMJ-0004Co-4s; Wed, 20 May 2009 09:45:11 +0000 Date: Wed, 20 May 2009 14:22:00 -0000 From: "Joseph S. Myers" To: Gary Funck cc: GCC List Subject: Re: grokdeclarator drops type qualifiers when -aux-info isn't asserted? In-Reply-To: <20090520003343.GF29505@intrepid.com> Message-ID: References: <20090520003343.GF29505@intrepid.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Detected-Operating-System: by mx20.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-05/txt/msg00507.txt.bz2 On Tue, 19 May 2009, Gary Funck wrote: > That aside, I wonder if it is an error to drop the qualifiers > as shown above? In the case of UPC, for example, dropping qualifiers Please read the code (and comment) immediately above that you quoted, which saves the qualifiers combined with those specified in the declaration, and the subsequent code applying them in the process of building up the type. The bug would probably be that it doesn't also drop them if flag_gen_aux_info. See the named address space patches for examples of adding extra type qualifiers. -- Joseph S. Myers joseph@codesourcery.com