This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch/5.2] (hopefully) Handle HP/UX -Ae


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]