summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-16 09:35:02 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-16 09:35:02 +0000
commit1716d6278b1443368721b44ddfc0a2bda8ff6f1d (patch)
treeb3a320dbb8de60a7b0b00a515c047db64a78ddb2 /gcc
parent5bd1ff1d8d07622d77c1b500f8d864c56ae112e7 (diff)
downloadgcc-1716d6278b1443368721b44ddfc0a2bda8ff6f1d.tar.gz
PR bootstrap/45686
* fold-const.c (fold_checksum_tree): Change slot from const void ** to void **, use CONST_CAST_TREE to store into *slot. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164330 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/fold-const.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b0666373db7..b10ea89ac20 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2010-09-16 Jakub Jelinek <jakub@redhat.com>
+
+ PR bootstrap/45686
+ * fold-const.c (fold_checksum_tree): Change slot from const void **
+ to void **, use CONST_CAST_TREE to store into *slot.
+
2010-09-16 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.md: Remove unneeded empty conditions and
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index c9417037a4b..25ab4875f41 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -13648,7 +13648,7 @@ fold_check_failed (const_tree expr ATTRIBUTE_UNUSED, const_tree ret ATTRIBUTE_UN
static void
fold_checksum_tree (const_tree expr, struct md5_ctx *ctx, htab_t ht)
{
- const void **slot;
+ void **slot;
enum tree_code code;
union tree_node buf;
int i, len;
@@ -13660,10 +13660,10 @@ recursive_label:
&& sizeof (struct tree_type) <= sizeof (struct tree_function_decl));
if (expr == NULL)
return;
- slot = (const void **) htab_find_slot (ht, expr, INSERT);
+ slot = (void **) htab_find_slot (ht, expr, INSERT);
if (*slot != NULL)
return;
- *slot = expr;
+ *slot = CONST_CAST_TREE (expr);
code = TREE_CODE (expr);
if (TREE_CODE_CLASS (code) == tcc_declaration
&& DECL_ASSEMBLER_NAME_SET_P (expr))