X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=include%2Fsplay-tree.h;h=0eef3fa52421ad2932f8d3afd478599b7217c9bb;hb=8b8c7c9f49992750f66f81b4601d593a3858d98c;hp=159ea801c1a1a17b8998a374153b3c3568394ffc;hpb=b90efa5b79ac1524ec260f8eb89d1be37e0219a7;p=deliverable%2Fbinutils-gdb.git diff --git a/include/splay-tree.h b/include/splay-tree.h index 159ea801c1..0eef3fa524 100644 --- a/include/splay-tree.h +++ b/include/splay-tree.h @@ -1,5 +1,5 @@ /* A splay-tree datatype. - Copyright (C) 1998-2015 Free Software Foundation, Inc. + Copyright (C) 1998-2016 Free Software Foundation, Inc. Contributed by Mark Mitchell (mark@markmitchell.com). This file is part of GCC. @@ -43,10 +43,6 @@ extern "C" { #include #endif -#ifndef GTY -#define GTY(X) -#endif - /* Use typedefs for the key and data types to facilitate changing these types, if necessary. These types should be sufficiently wide that any pointer or scalar can be cast to these types, and then @@ -85,22 +81,22 @@ typedef void *(*splay_tree_allocate_fn) (int, void *); typedef void (*splay_tree_deallocate_fn) (void *, void *); /* The nodes in the splay tree. */ -struct GTY(()) splay_tree_node_s { +struct splay_tree_node_s { /* The key. */ - splay_tree_key GTY ((use_param1)) key; + splay_tree_key key; /* The value. */ - splay_tree_value GTY ((use_param2)) value; + splay_tree_value value; /* The left and right children, respectively. */ - splay_tree_node GTY ((use_params)) left; - splay_tree_node GTY ((use_params)) right; + splay_tree_node left; + splay_tree_node right; }; /* The splay tree itself. */ -struct GTY(()) splay_tree_s { +struct splay_tree_s { /* The root of the tree. */ - splay_tree_node GTY ((use_params)) root; + splay_tree_node root; /* The comparision function. */ splay_tree_compare_fn comp; @@ -118,7 +114,7 @@ struct GTY(()) splay_tree_s { splay_tree_deallocate_fn deallocate; /* Parameter for allocate/free functions. */ - void * GTY((skip)) allocate_data; + void *allocate_data; }; typedef struct splay_tree_s *splay_tree;