From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6147 invoked by alias); 11 Aug 2004 22:47:15 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 6130 invoked from network); 11 Aug 2004 22:47:12 -0000 Received: from unknown (HELO takamaka.act-europe.fr) (142.179.108.108) by sourceware.org with SMTP; 11 Aug 2004 22:47:12 -0000 Received: by takamaka.act-europe.fr (Postfix, from userid 507) id B121147D91; Wed, 11 Aug 2004 15:46:40 -0700 (PDT) Date: Wed, 11 Aug 2004 22:47:00 -0000 From: Joel Brobecker To: gdb-patches@sources.redhat.com Subject: [RFC] s/UINT_MAX/GDB_UINT_MAX/ ? Message-ID: <20040811224640.GM25562@gnat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-SW-Source: 2004-08/txt/msg00420.txt.bz2 This is the last entity in config/powerpc/xm-aix4.h. The comment says: /* UINT_MAX is defined in as a decimal constant (4294967295) which is too large to fit in a signed int when it is parsed by the compiler, so it issues a diagnostic. Just undef it here so that we use gdb's version in defs.h */ #undef UINT_MAX So we have a collision between the macro defined by GDB and the macro defined by the system. For recent enough versions of AIX, I don't think the values are different, so we could look the other way and just remove the #undef, and all things should work. But we still have this collision and I think we should fix it. So I suggest we do an all-source rename of UINT_MAX et al to GDB_UINT_MAX, or something like this. Unless the collision was expected (ie we want to pick the system value when defined)? -- Joel