From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15054 invoked by alias); 1 Jan 2002 19:16:03 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 15027 invoked by uid 71); 1 Jan 2002 19:16:02 -0000 Date: Tue, 01 Jan 2002 11:16:00 -0000 Message-ID: <20020101191602.15026.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Zack Weinberg Subject: Re: preprocessor/5177: Problem with gcc-3.0.2 CPP and #define Reply-To: Zack Weinberg X-SW-Source: 2002-01/txt/msg00003.txt.bz2 List-Id: The following reply was made to PR preprocessor/5177; it has been noted by GNATS. From: Zack Weinberg To: Chris Adams Cc: Richard Henderson , neil@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: preprocessor/5177: Problem with gcc-3.0.2 CPP and #define Date: Tue, 1 Jan 2002 11:15:03 -0800 On Sun, Dec 23, 2001 at 06:14:14PM -0600, Chris Adams wrote: > > Basically, we'd have to do some extremely ugly fixincludery to > > get this transformed to something that works properly wth gcc. > > I can't really see how it could be done other than to either support the > DEC/Compaq "#pragma extern_prefix" extension (and detecting it and > changing the #if around it) You might want to talk to Martin Loewis, this sounds rather similar to Sun's #pragma redefine_extname, which he was adding to GCC. In general I think it's a good idea for GCC to recognize and do something sensible with #pragmas used in system headers. zw