This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/42749] [4.5 Regression] -O2 and verify_stmts failed again
- From: "rakdver at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jan 2010 12:53:28 -0000
- Subject: [Bug middle-end/42749] [4.5 Regression] -O2 and verify_stmts failed again
- References: <bug-42749-9596@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #10 from rakdver at gcc dot gnu dot org 2010-01-16 12:53 -------
/* Reject a tailcall if the type conversion might need
285 additional code. */
286 if (gimple_assign_cast_p (stmt)
287 && TYPE_MODE (TREE_TYPE (dest)) != TYPE_MODE
(TREE_TYPE (src_var)))
288 return false;
This is suspicious; replacing the weird TYPE_MODE check with
useless_type_conversion_p fixes the problem.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42749