This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/25677] [4.2 regression] testsuite failure:gcc.c-torture/execute/960802-1.c -O1 and -O2
- From: "bonzini at gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Jan 2006 16:59:08 -0000
- Subject: [Bug rtl-optimization/25677] [4.2 regression] testsuite failure:gcc.c-torture/execute/960802-1.c -O1 and -O2
- References: <bug-25677-507@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from bonzini at gnu dot org 2006-01-05 16:59 -------
Combine does not try to combine across a call. But it does not invalidate
equivalences and, in this case, it tries to replace v (the result of a function
call) with the return value register... even though in the meanwhile a
different function call has clobbered it.
H-P can you please run an assembly language comparison on this patch, to check
that it does not pessimize anything?
I think the bug is latent in other branches as well.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25677