[committed] Fix --enable-checking=fold again (PR c/38408)

Jakub Jelinek jakub@redhat.com
Fri Dec 5 09:26:00 GMT 2008


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



More information about the Gcc-patches mailing list