This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/37024] [4.4 Regression] bad tail call from tuples merge
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Aug 2008 21:48:07 -0000
- Subject: [Bug tree-optimization/37024] [4.4 Regression] bad tail call from tuples merge
- References: <bug-37024-4503@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2008-08-04 21:48 -------
Patch which I don't have time to test:
Index: tree-tailcall.c
===================================================================
--- tree-tailcall.c (revision 138567)
+++ tree-tailcall.c (working copy)
@@ -283,7 +283,7 @@ process_assignment (gimple stmt, gimple_
{
/* Reject a tailcall if the type conversion might need
additional code. */
- if (IS_CONVERT_EXPR_CODE_P (code)
+ if (gimple_assign_cast_p (stmt)
&& TYPE_MODE (TREE_TYPE (dest)) != TYPE_MODE (TREE_TYPE (src_var)))
return false;
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rguenth at gcc dot gnu dot
| |org
Severity|normal |blocker
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-08-04 21:48:05
date| |
Summary|bad tail call from tuples |[4.4 Regression] bad tail
|merge |call from tuples merge
Target Milestone|--- |4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37024