diff options
author | bje <bje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-12-10 21:25:00 +0000 |
---|---|---|
committer | bje <bje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-12-10 21:25:00 +0000 |
commit | 4927c18d5ba4cf974253d1d378c94f21dae95fb0 (patch) | |
tree | 2fdc9b1c9e88cdb423dd4e3adb701600864fb2bd /include | |
parent | 012db784da9cc1f2c4a0947c4e28f55237c5b73e (diff) | |
download | gcc-4927c18d5ba4cf974253d1d378c94f21dae95fb0.tar.gz |
[include]
* fibheap.h (struct fibnode): Only use unsigned long bitfields
when __GNUC__ is defined and ints are less than 32-bits wide.
[libiberty]
* configure.ac: Invoke AC_CHECK_SIZEOF for sizeof (int).
* configure: Regenerate.
* config.in: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92009 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 5 | ||||
-rw-r--r-- | include/fibheap.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 2f256aec763..0a8c6016cea 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2004-12-11 Ben Elliston <bje@au.ibm.com> + + * fibheap.h (struct fibnode): Only use unsigned long bitfields + when __GNUC__ is defined and ints are less than 32-bits wide. + 2004-10-07 Bob Wilson <bob.wilson@acm.org> * xtensa-config.h (XSHAL_USE_ABSOLUTE_LITERALS, diff --git a/include/fibheap.h b/include/fibheap.h index 4eebaf13ba6..e1e843ddbb1 100644 --- a/include/fibheap.h +++ b/include/fibheap.h @@ -59,7 +59,7 @@ typedef struct fibnode struct fibnode *right; fibheapkey_t key; void *data; -#ifdef __GNUC__ +#if defined (__GNUC__) && (!defined (SIZEOF_INT) || SIZEOF_INT < 4) __extension__ unsigned long int degree : 31; __extension__ unsigned long int mark : 1; #else |