From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32527 invoked by alias); 21 May 2009 00:27:16 -0000 Received: (qmail 32517 invoked by uid 22791); 21 May 2009 00:27:15 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 21 May 2009 00:27:08 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 72E702BAB65; Wed, 20 May 2009 20:27:06 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id XjLaISiNuMxR; Wed, 20 May 2009 20:27:06 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 362ED2BAB63; Wed, 20 May 2009 20:27:06 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 754A4F5965; Thu, 21 May 2009 02:27:04 +0200 (CEST) Date: Thu, 21 May 2009 00:27:00 -0000 From: Joel Brobecker To: Tom Tromey Cc: muller@ics.u-strasbg.fr, gdb-patches@sourceware.org Subject: Re: [ARI] Add "bzero" Message-ID: <20090521002704.GG16152@adacore.com> References: <200904301028.29435.pedro@codesourcery.com> <200905061038.11004.pedro@codesourcery.com> <20090506160250.GJ10734@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-05/txt/msg00443.txt.bz2 > For this specific case, and some others like it, perhaps using #pragma > poison would be better. That would result in a compile time error, > rather than a report on a web page. I really liked the idea and gave it a quick try, but I don't know how to make it work. I thought I would put the pragma at the end of defs.h, since defs.h is always included. But defs.h is also always the first file to be included, and so any #include that follows it which references any of the poisoned identifier will cause an error. Do you see another way? Thanks, -- Joel