From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5808 invoked by alias); 15 Apr 2002 04:26:32 -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 5801 invoked from network); 15 Apr 2002 04:26:31 -0000 Received: from unknown (HELO localhost.redhat.com) (24.112.240.27) by sources.redhat.com with SMTP; 15 Apr 2002 04:26:31 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id B913C3CFD; Mon, 15 Apr 2002 00:26:37 -0400 (EDT) Message-ID: <3CBA567B.2030007@cygnus.com> Date: Sun, 14 Apr 2002 21:26:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.9) Gecko/20020328 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gdb-patches@sources.redhat.com, law@cygnus.com, Tom Tromey Subject: [patch/5.2] (hopefully) Handle HP/UX -Ae Content-Type: multipart/mixed; boundary="------------040708090807040506090807" X-SW-Source: 2002-04/txt/msg00526.txt.bz2 This is a multi-part message in MIME format. --------------040708090807040506090807 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 570 Hello, (Hmm, this is looking less painful than I thought ... Nope ...) Per Tom Tromey's long-a-go recommendation, this patch imports the latest AM_PROG_CC_STDC from automake. It tweaks things so that: +# HP-UX 10.20 and later -Ae +# HP-UX older versions -Aa -D_HPUX_SOURCE are used. I'm pretty sure that -Ae works on 10.20 and 11.00 and I'm not to worried about anything prior to that. I've committed the attached to the 5.2 branch and GDB mainline. Andrew PS: The tally so far: gmake is needed; fix to libiberty needed; hpread.c doesn't compile; ... --------------040708090807040506090807 Content-Type: text/plain; name="diffs" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diffs" Content-length: 1056 2002-04-15 Andrew Cagney From mainline: 2002-03-06 Jim Blandy * splay-tree.c (splay_tree_xmalloc_allocate, splay_tree_xmalloc_deallocate): Use K&R-style definitions, not prototyped definitions. Mark `data' arguments as unused. Index: libiberty/splay-tree.c =================================================================== RCS file: /cvs/src/src/libiberty/splay-tree.c,v retrieving revision 1.8 diff -u -r1.8 splay-tree.c --- libiberty/splay-tree.c 21 Feb 2002 22:19:11 -0000 1.8 +++ libiberty/splay-tree.c 15 Apr 2002 04:10:44 -0000 @@ -230,13 +230,17 @@ /* An allocator and deallocator based on xmalloc. */ static void * -splay_tree_xmalloc_allocate (int size, void *data) +splay_tree_xmalloc_allocate (size, data) + int size; + void *data ATTRIBUTE_UNUSED; { return xmalloc (size); } static void -splay_tree_xmalloc_deallocate (void *object, void *data) +splay_tree_xmalloc_deallocate (object, data) + void *object; + void *data ATTRIBUTE_UNUSED; { free (object); } --------------040708090807040506090807--