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]

[PATCH] Do not call convert() in PRE


The original problem why this was introduced shouldn't have happened
and is appearantly fixed by later patches.

Bootstrapped and tested on x86_64-unknown-linux-gnu, ok?

Thanks,
Richard.

2008-07-13  Richard Guenther  <rguenther@suse.de>

	* tree-ssa-pre.c (insert_into_preds_of_block): Do not call
	convert.

Index: tree-ssa-pre.c
===================================================================
--- tree-ssa-pre.c	(revision 137750)
+++ tree-ssa-pre.c	(working copy)
@@ -2942,14 +2942,7 @@ insert_into_preds_of_block (basic_block 
 	    {
 	      tree builtexpr;
 	      tree forcedexpr;
-	      /* When eliminating casts through unions,
-		 we sometimes want to convert a real to an integer,
-		 which fold_convert will ICE on  */
-	      if (fold_convertible_p (type, name))
-		builtexpr = fold_convert (type, name);
-	      else
-		builtexpr = convert (type, name);
-
+	      builtexpr = fold_convert (type, name);
 	      forcedexpr = force_gimple_operand (builtexpr,
 						 &stmts, true,
 						 NULL);


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