This is the mail archive of the gcc-bugs@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]

[Bug tree-optimization/37024] [4.4 Regression] bad tail call from tuples merge



------- 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


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