Sync hashtab.h, splay-tree.h with GCC
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 14 Jul 2015 16:16:33 +0000 (09:16 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 14 Jul 2015 16:18:16 +0000 (09:18 -0700)
Sync with GCC
2014-12-09  Trevor Saunders  <tsaunders@mozilla.com>

* hashtab.h, splay-tree.h: Remove GTY markers.

include/ChangeLog
include/hashtab.h
include/splay-tree.h

index 7dd08853cc68c6e54de9370170c56686ca40e107..8cacfa85655dc71ad358c1e391d4aeb7888b4512 100644 (file)
@@ -1,3 +1,10 @@
+2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
+
+       Sync with GCC
+       2014-12-09  Trevor Saunders  <tsaunders@mozilla.com>
+
+       * hashtab.h, splay-tree.h: Remove GTY markers.
+
 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
 
        Sync with GCC
index 10d19bb33954028de08fddf2cbb53e76b18ad3da..b1b5877aae7ca83dd2f04cc050c352b82e4a8d35 100644 (file)
@@ -38,10 +38,6 @@ extern "C" {
 
 #include "ansidecl.h"
 
-#ifndef GTY
-#define GTY(X)
-#endif
-
 /* The type for a hash code.  */
 typedef unsigned int hashval_t;
 
@@ -96,7 +92,7 @@ typedef void (*htab_free_with_arg) (void *, void *);
    functions mentioned below.  The size of this structure is subject to
    change.  */
 
-struct GTY(()) htab {
+struct htab {
   /* Pointer to hash function.  */
   htab_hash hash_f;
 
@@ -107,7 +103,7 @@ struct GTY(()) htab {
   htab_del del_f;
 
   /* Table itself.  */
-  void ** GTY ((use_param, length ("%h.size"))) entries;
+  void **entries;
 
   /* Current size (in entries) of the hash table.  */
   size_t size;
@@ -131,7 +127,7 @@ struct GTY(()) htab {
   htab_free free_f;
 
   /* Alternate allocate/free functions, which take an extra argument.  */
-  void * GTY((skip)) alloc_arg;
+  void *alloc_arg;
   htab_alloc_with_arg alloc_with_arg_f;
   htab_free_with_arg free_with_arg_f;
 
index 159ea801c1a1a17b8998a374153b3c3568394ffc..f71d7d7b6f4e0844bde2fd9fc70bb7030fc8ec19 100644 (file)
@@ -43,10 +43,6 @@ extern "C" {
 #include <inttypes.h>
 #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;
This page took 0.027214 seconds and 4 git commands to generate.