aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2003-12-19 03:17:40 +0000
committerKazu Hirata <kazu@cs.umass.edu>2003-12-19 03:17:40 +0000
commit207206b6fd176175031ee09abfb8efc6206ca750 (patch)
tree2b2d6546283478e90e665b73de41f742c8ade535 /include
parentb3202662299e7fc5484331c0b45bb377001077a7 (diff)
* include/fibheap.h (fibnode): Use unsigned long int for
bit-fields if __GNUC__ is defined. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@74817 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog5
-rw-r--r--include/fibheap.h5
2 files changed, 10 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 049942f4ee3..2ac7cecb71d 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,8 @@
+2003-12-18 Kazu Hirata <kazu@cs.umass.edu>
+
+ * include/fibheap.h (fibnode): Use unsigned long int for
+ bit-fields if __GNUC__ is defined.
+
2003-10-22 Joseph S. Myers <jsm@polyomino.org.uk>
* obstack.h: Merge the following change from gnulib:
diff --git a/include/fibheap.h b/include/fibheap.h
index fc37f9ef635..addef19db95 100644
--- a/include/fibheap.h
+++ b/include/fibheap.h
@@ -59,8 +59,13 @@ typedef struct fibnode
struct fibnode *right;
fibheapkey_t key;
void *data;
+#ifdef __GNUC__
+ unsigned long int degree : 31;
+ unsigned long int mark : 1;
+#else
unsigned int degree : 31;
unsigned int mark : 1;
+#endif
} *fibnode_t;
extern fibheap_t fibheap_new PARAMS ((void));