[Bug tree-optimization/36373] [4.2/4.3/4.4 Regression] Wrong code with struct return

rguenth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu May 29 15:23:00 GMT 2008



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



More information about the Gcc-bugs mailing list