Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch/5.2] (hopefully) Handle HP/UX -Ae
@ 2002-04-14 21:26 Andrew Cagney
  2002-04-14 22:20 ` Andrew Cagney
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Cagney @ 2002-04-14 21:26 UTC (permalink / raw)
  To: gdb-patches, law, Tom Tromey

[-- 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);
 }

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-04-15  5:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-14 21:26 [patch/5.2] (hopefully) Handle HP/UX -Ae Andrew Cagney
2002-04-14 22:20 ` Andrew Cagney
2002-04-14 22:43   ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox