This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]