From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9611 invoked by alias); 27 Jun 2008 20:45:48 -0000 Received: (qmail 9540 invoked by uid 22791); 27 Jun 2008 20:45:47 -0000 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 27 Jun 2008 20:45:17 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id D60492A9661 for ; Fri, 27 Jun 2008 16:45:15 -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 21-IrRUkhtJ3 for ; Fri, 27 Jun 2008 16:45:15 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id A74E32A9643 for ; Fri, 27 Jun 2008 16:45:15 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 78708E7ACD; Fri, 27 Jun 2008 16:45:15 -0400 (EDT) Date: Fri, 27 Jun 2008 23:11:00 -0000 From: Joel Brobecker To: gdb-patches@sourceware.org Subject: [RFA] add gstdint.h file that just includes stdint.h Message-ID: <20080627204515.GM3954@adacore.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="IJpNTDwzlM2Ie8A6" Content-Disposition: inline User-Agent: Mutt/1.4.2.2i 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-06/txt/msg00521.txt.bz2 --IJpNTDwzlM2Ie8A6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 468 Hello, As suggested by Daniel (Thank You!) to fix a problem when including stdint.h and gstdint.h at the same time (happens when including a libdecnumber file from a GDB file). More info at: http://www.sourceware.org/ml/gdb-patches/2008-06/msg00514.html 2008-06-27 Joel Brobecker * gstdint.h: New file. Tested on mips-irix by verifying that it allows us to compile dfp.c, and on x86-linux. OK to apply? Thank you, -- Joel --IJpNTDwzlM2Ie8A6 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="gstdint.h" Content-length: 1574 /* Copyright (C) 2008 Free Software Foundation, Inc. This file is part of GDB. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ /* The libdecnumber library, on which GDB depends, includes a header file called gstdint.h instead of relying directly on stdint.h. GDB, on the other hand, includes stdint.h directly, relying on the fact that gnulib generates a copy if the system doesn't provide one or if it is missing some features. Unfortunately, gstdint.h and stdint.h cannot be included at the same time, which may happen when we include a file from libdecnumber. The purpose of this file is to override the libdecnumber/gstdint.h file to use stdint.h instead. Thanks to the order of our include path, files from the GDB source tree have precedence over files from our dependencies. So the presence of this file will ensure that we consistently use the same stdint.h file when compiling GDB source files. */ #include --IJpNTDwzlM2Ie8A6--