aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorMartin v. Löwis <loewis@informatik.hu-berlin.de>1998-07-13 16:27:34 -0600
committerJeff Law <law@gcc.gnu.org>1998-07-13 16:27:34 -0600
commit8e539071f46481f3410813be4414b6a8f08b0b50 (patch)
tree6d418190a24e3eadbc7fc2c67b93b87d2442c048 /gcc/cp
parentb941bcbc1f5763e3c3576a50769c6ec65445e93c (diff)
downloadgcc-8e539071f46481f3410813be4414b6a8f08b0b50.zip
gcc-8e539071f46481f3410813be4414b6a8f08b0b50.tar.gz
gcc-8e539071f46481f3410813be4414b6a8f08b0b50.tar.bz2
* search.c (my_tree_cons): The bitfield is at index 2.
From-SVN: r21117
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/search.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 199f090..f6a71dd 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,7 @@
+Mon Jul 13 23:25:28 1998 Martin von Lvwis <loewis@informatik.hu-berlin.de>
+
+ * search.c (my_tree_cons): The bitfield is at index 2.
+
Mon Jul 13 17:21:01 1998 Nick Clifton <nickc@cygnus.com>
* lang-options.h: Format changed to work with new --help support
diff --git a/gcc/cp/search.c b/gcc/cp/search.c
index 2e71de3..b58c61f 100644
--- a/gcc/cp/search.c
+++ b/gcc/cp/search.c
@@ -266,7 +266,7 @@ my_tree_cons (purpose, value, chain)
/* The type of the last on the LHS of this statement must be a pointer
to the same type as the bitfields in struct tree_common. Otherwise
we may write beyond our intended area. */
- ((unsigned *)p)[3] = 0;
+ ((unsigned *)p)[2] = 0;
TREE_SET_CODE (p, TREE_LIST);
TREE_PURPOSE (p) = purpose;
TREE_VALUE (p) = value;