From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19761 invoked by alias); 1 Feb 2002 22:00:28 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 19490 invoked from network); 1 Feb 2002 22:00:11 -0000 Received: from unknown (HELO navy.csi.cam.ac.uk) (131.111.8.49) by sources.redhat.com with SMTP; 1 Feb 2002 22:00:11 -0000 Received: from student.cusu.cam.ac.uk ([131.111.179.82] helo=kern.srcf.societies.cam.ac.uk ident=mail) by navy.csi.cam.ac.uk with esmtp (Exim 3.34 #1) id 16Wlj2-0002qf-00; Fri, 01 Feb 2002 22:00:04 +0000 Received: from jsm28 (helo=localhost) by kern.srcf.societies.cam.ac.uk with local-esmtp (Exim 3.12 #1 (Debian)) id 16Wlj2-0004ue-00; Fri, 01 Feb 2002 22:00:04 +0000 Date: Fri, 01 Feb 2002 14:00:00 -0000 From: "Joseph S. Myers" X-X-Sender: To: Roger Sayle cc: Gabriel Dos Reis , Subject: Re: Unreviewed patches In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-02/txt/msg00053.txt.bz2 On Fri, 1 Feb 2002, Roger Sayle wrote: > No. I'd like to agree with you, but your vision of a world where g++ > controlled the system headers and defined all the standard C library > functions as C++ inline functions calling __builtin_ versions is almost > science fiction. Including on most g++ platforms includes the > system /usr/include/string.h, (i.e. the one shared with the native system > compiler) which often doesn't contain a complete set of GCC function > attribute extensions, and in order to work with C compilers, often isn't > a C++ inline function wrapper. The idea of c_shadow is ISTR to fix the problems associated with including the system header. Eventually it is supposed to be the case that the system C headers aren't directly included unless they are ready for the C++ standard (which some are to some extent, e.g. Solaris), since C and C++ have different requirements for some headers. http://www.cantrip.org/cheaders.html -- Joseph S. Myers jsm28@cam.ac.uk