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

2008-06-27 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2008-06-27 18:54 --- Subject: Bug 36373 Author: rguenth Date: Fri Jun 27 18:53:43 2008 New Revision: 137197 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=137197 Log: 2008-06-27 Richard Guenther [EMAIL PROTECTED] PR

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

2008-06-27 Thread rguenth at gcc dot gnu dot org
--- Comment #7 from rguenth at gcc dot gnu dot org 2008-06-27 21:55 --- Subject: Bug 36373 Author: rguenth Date: Fri Jun 27 21:54:42 2008 New Revision: 137204 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=137204 Log: 2008-06-27 Richard Guenther [EMAIL PROTECTED] PR

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

2008-06-26 Thread cnstar9988 at gmail dot com
--- Comment #5 from cnstar9988 at gmail dot com 2008-06-26 06:51 --- ping... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36373

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

2008-06-13 Thread mmitchel at gcc dot gnu dot org
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36373

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

2008-05-30 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2008-05-30 10:58 --- Umm. It's worse. With -O2 -fno-tree-sra: extern void abort (void); struct Foo { int *p; } x; struct Foo __attribute__((noinline)) bar(int *p) { struct Foo f; f.p = p; return f; } void

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

2008-05-29 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2008-05-29 15:07 --- Mine. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

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

2008-05-29 Thread rguenth 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

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

2008-05-29 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2008-05-29 15:44 --- I have a patch. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36373