aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meissner <michael.meissner@amd.com>2008-01-29 17:35:17 +0000
committerMichael Meissner <meissner@gcc.gnu.org>2008-01-29 17:35:17 +0000
commitbdba22639b5a609adfccc08c74d3c5fb7b87b581 (patch)
treea56f0bd4b9c33f9d8f804c421974cf56651310f3
parented32d842388998aecaa242798129a297b318b46d (diff)
downloadgcc-bdba22639b5a609adfccc08c74d3c5fb7b87b581.zip
gcc-bdba22639b5a609adfccc08c74d3c5fb7b87b581.tar.gz
gcc-bdba22639b5a609adfccc08c74d3c5fb7b87b581.tar.bz2
Fix 35004, grow tree_code bitfield to 16 bits
From-SVN: r131943
-rw-r--r--gcc/cp/ChangeLog7
-rw-r--r--gcc/cp/cp-tree.h4
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index ea850a5..a5d19e6 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,10 @@
+2008-01-29 Michael Meissner <michael.meissner@amd.com>
+
+ PR 35004
+ * cp-tree.h (struct full_lang_decl): Make tree_code bitfield 16
+ bits to allow for expansion of the number of middle end tree
+ codes.
+
2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
PR c++/34055
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h
index 5f43c13..e6aba2f 100644
--- a/gcc/cp/cp-tree.h
+++ b/gcc/cp/cp-tree.h
@@ -1655,11 +1655,11 @@ struct lang_decl GTY(())
{
/* In an overloaded operator, this is the value of
DECL_OVERLOADED_OPERATOR_P. */
- ENUM_BITFIELD (tree_code) operator_code : 8;
+ ENUM_BITFIELD (tree_code) operator_code : 16;
unsigned u3sel : 1;
unsigned pending_inline_p : 1;
- unsigned spare : 22;
+ unsigned spare : 14;
/* For a non-thunk function decl, this is a tree list of
friendly classes. For a thunk function decl, it is the