Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@cygnus.com>
To: gdb-patches@sources.redhat.com, law@cygnus.com,
	Tom Tromey <tromey@redhat.com>
Subject: [patch/5.2] (hopefully) Handle HP/UX -Ae
Date: Sun, 14 Apr 2002 21:26:00 -0000	[thread overview]
Message-ID: <3CBA567B.2030007@cygnus.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 570 bytes --]

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; ...

[-- Attachment #2: diffs --]
[-- Type: text/plain, Size: 1056 bytes --]

2002-04-15  Andrew Cagney  <ac131313@redhat.com>

	From mainline: 2002-03-06  Jim Blandy  <jimb@redhat.com>
	* 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);
 }

             reply	other threads:[~2002-04-15  4:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-14 21:26 Andrew Cagney [this message]
2002-04-14 22:20 ` Andrew Cagney
2002-04-14 22:43   ` Andrew Cagney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3CBA567B.2030007@cygnus.com \
    --to=ac131313@cygnus.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=law@cygnus.com \
    --cc=tromey@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox