This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/47258] Extra instruction generated in 4.5.2
- From: "bmei at broadcom dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 13 Jan 2011 15:49:29 +0000
- Subject: [Bug rtl-optimization/47258] Extra instruction generated in 4.5.2
- Auto-submitted: auto-generated
- References: <bug-47258-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47258
--- Comment #5 from Bingfeng Mei <bmei at broadcom dot com> 2011-01-13 15:49:23 UTC ---
It works. But I have no idea about the debug info issue in your other comment.
> (In reply to comment #2)
> > After tried patches one-by-one, I believe the misoptimization is down to the
> > following patch.
>
> Which is a correctness patch. You can try dumbing it down somewhat with
>
> if (TYPE_MAIN_VARIANT (TREE_TYPE (root1)) != TYPE_MAIN_VARIANT (TREE_TYPE
> (root2))
> || !types_compatible_p (TREE_TYPE (root1), TREE_TYPE (root2)))
>
> and see if that helps.