public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [patch] Arguments of GTY
@ 2006-05-07 14:00 Masaki Muranaka
  2006-05-07 14:47 ` Daniel Jacobowitz
  0 siblings, 1 reply; 5+ messages in thread
From: Masaki Muranaka @ 2006-05-07 14:00 UTC (permalink / raw)
  To: binutils

Hello All,

It was failed to compile gcc-3.4.5 with binutils (CVS head).
It seems the format of GTY was modified.

Follows are minimum patches enough to build gcc-core-3.4.5.
I checked to build with binutils, gdb+dejagnu.

- - - - - -
2005-05-06	Masaki Muranaka (monaka@monami-software.com)

	* include/hashtab.h Modify the arguments in GTY.
	* include/splay-tree.h Likewise.

- - - - - -

Index: include/hashtab.h
===================================================================
RCS file: /cvs/src/src/include/hashtab.h,v
retrieving revision 1.21
diff -u -p -r1.21 hashtab.h
--- include/hashtab.h   30 Jun 2005 23:02:54 -0000      1.21
+++ include/hashtab.h   6 May 2006 16:35:47 -0000
@@ -108,7 +108,7 @@ struct htab GTY(())
    htab_del del_f;
    /* Table itself.  */
-  void ** GTY ((use_param, length ("%h.size"))) entries;
+  void ** GTY ((use_param (""), length ("%h.size"))) entries;
    /* Current size (in entries) of the hash table.  */
    size_t size;
@@ -132,7 +132,7 @@ struct htab GTY(())
    htab_free free_f;
    /* Alternate allocate/free functions, which take an extra  
argument.  */
-  void * GTY((skip)) alloc_arg;
+  void * GTY((skip (""))) alloc_arg;
    htab_alloc_with_arg alloc_with_arg_f;
    htab_free_with_arg free_with_arg_f;
Index: include/splay-tree.h
===================================================================
RCS file: /cvs/src/src/include/splay-tree.h,v
retrieving revision 1.13
diff -u -p -r1.13 splay-tree.h
--- include/splay-tree.h        10 May 2005 10:21:08 -0000      1.13
+++ include/splay-tree.h        6 May 2006 16:35:47 -0000
@@ -81,21 +81,21 @@ typedef void (*splay_tree_deallocate_fn)
struct splay_tree_node_s GTY(())
{
    /* The key.  */
-  splay_tree_key GTY ((use_param1)) key;
+  splay_tree_key GTY ((use_param1 (""))) key;
    /* The value.  */
-  splay_tree_value GTY ((use_param2)) value;
+  splay_tree_value GTY ((use_param2 (""))) value;
    /* The left and right children, respectively.  */
-  splay_tree_node GTY ((use_params)) left;
-  splay_tree_node GTY ((use_params)) right;
+  splay_tree_node GTY ((use_params (""))) left;
+  splay_tree_node GTY ((use_params (""))) right;
};
/* The splay tree itself.  */
struct splay_tree_s GTY(())
{
    /* The root of the tree.  */
-  splay_tree_node GTY ((use_params)) root;
+  splay_tree_node GTY ((use_params (""))) root;
    /* The comparision function.  */
    splay_tree_compare_fn comp;
@@ -109,7 +109,7 @@ struct splay_tree_s GTY(())
    /* Allocate/free functions, and a data pointer to pass to them.  */
    splay_tree_allocate_fn allocate;
    splay_tree_deallocate_fn deallocate;
-  void * GTY((skip)) allocate_data;
+  void * GTY((skip (""))) allocate_data;
};
typedef struct splay_tree_s *splay_tree;

--
Masaki Muranaka
Monami software


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

end of thread, other threads:[~2006-05-08  5:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-07 14:00 [patch] Arguments of GTY Masaki Muranaka
2006-05-07 14:47 ` Daniel Jacobowitz
2006-05-07 14:49   ` Masaki Muranaka
2006-05-07 21:18     ` Daniel Jacobowitz
2006-05-08 16:26       ` Masaki Muranaka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).