From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28331 invoked by alias); 13 Sep 2008 14:14:25 -0000 Received: (qmail 28316 invoked by uid 22791); 13 Sep 2008 14:14:24 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 13 Sep 2008 14:13:39 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id A92F9104C0; Sat, 13 Sep 2008 14:13:36 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 85868104BF; Sat, 13 Sep 2008 14:13:36 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1KeVsV-0000s8-6Q; Sat, 13 Sep 2008 10:13:35 -0400 Date: Sat, 13 Sep 2008 14:14:00 -0000 From: Daniel Jacobowitz To: Joel Brobecker Cc: gdb-patches@sourceware.org Subject: Re: [RFA/RFC] libdecnumber/gstdint.h is back :-( Message-ID: <20080913141335.GA3005@caradoc.them.org> Mail-Followup-To: Joel Brobecker , gdb-patches@sourceware.org References: <20080913050011.GA3727@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080913050011.GA3727@adacore.com> User-Agent: Mutt/1.5.17 (2008-05-11) X-IsSubscribed: yes 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: 2008-09/txt/msg00287.txt.bz2 On Fri, Sep 12, 2008 at 10:00:11PM -0700, Joel Brobecker wrote: > Hello, > I looked at the C90 draft that I have, and it seems to be saying > that, whether you use angled brackets or double quotes in your include > syntax, the way the file is located is implementation defined. > So, no help there. This needs to be confirmed, but it looks like > GCC will try to find the include file starting from the same directory > as the file including it when double quotes are used. In other words, > when the following directive is used from ../libdecnumber/decContext.h > > #include "gstdint.h" > > GCC will first try ../libdecnumber/gstdint.h, not ./gstdint.h. > This defeats the purpose of the gstdint.h that we introduced in > the gdb subdirectory. Why does ../libdecnumber/gstdint.h exist? Is it because you're configuring in the source directory, and if so can we just tell people not to do that? Another option would be to add a check for _GL_STDINT_H to libdecnumber; I suspect they would not mind. > What occured to me while thinking about all this is that the > root of the problem is that we have two incompatible files that > should be identical in practice. Since we are always building > libdecnumber, can we use libdecnumber's gstdint.h and ditch > gnulib's stdint.h? This could be a problem if we pulled in gnulib modules that include from a replacement header. We already use it in the building of gnulib (str-two-way.h). -- Daniel Jacobowitz CodeSourcery