This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/36373] [4.2/4.3/4.4 Regression] Wrong code with struct return
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 May 2008 15:23:13 -0000
- Subject: [Bug tree-optimization/36373] [4.2/4.3/4.4 Regression] Wrong code with struct return
- References: <bug-36373-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from rguenth at gcc dot gnu dot org 2008-05-29 15:23 -------
First we miss the constraint
f = &ANYTHING
from
f = bar (&b);
but then we also do not handle at all the case of escaping pointers through
by-value passed structures
foo (f);
and thus we end up not clobbering b for that call. The first part is easy
to fix. I have to think about the second one ...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36373