This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Fix --enable-checking=fold again (PR c/38408)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 5 Dec 2008 10:26:04 +0100
- Subject: [committed] Fix --enable-checking=fold again (PR c/38408)
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
Hi!
The PR36509 changes now warn (with -Werror error) on fold_checksum_tree
with --enable-checking=fold. Fixed thusly, bootstrapped/regtested
with
--enable-languages=c,c++,fortran,java,objc,obj-c++,ada --enable-checking=yes,fold,df,rtl
on x86_64-linux, committed as obvious.
2008-12-05 Jakub Jelinek <jakub@redhat.com>
PR c/38408
* fold-const.c (fold_checksum_tree): Change buf type to union
tree_node.
--- gcc/fold-const.c.jj 2008-12-04 23:00:25.000000000 +0100
+++ gcc/fold-const.c 2008-12-04 23:45:34.000000000 +0100
@@ -13340,7 +13340,7 @@ fold_checksum_tree (const_tree expr, str
{
const void **slot;
enum tree_code code;
- struct tree_function_decl buf;
+ union tree_node buf;
int i, len;
recursive_label:
Jakub