[Bug c++/51392] Wrong code with -Os when __attribute__((__const__)) function returns structure

2016-10-16 Thread cyp561 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51392 --- Comment #4 from cyp561 at gmail dot com --- Is there any case in which a function returning a structure may not elide the return value copy to being passed by invisible reference? If not, I think it is either a bug that the code fails, or a

[Bug c++/51392] Wrong code with -Os when __attribute__((__const__)) function returns structure

2011-12-04 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51392 Mikael Pettersson mikpe at it dot uu.se changed: What|Removed |Added CC||mikpe at it dot

[Bug c++/51392] Wrong code with -Os when __attribute__((__const__)) function returns structure

2011-12-04 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51392 Richard Guenther rguenth at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug c++/51392] Wrong code with -Os when __attribute__((__const__)) function returns structure

2011-12-03 Thread cybersphinx.gcc at dispostable dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51392 cybersphinx cybersphinx.gcc at dispostable dot com changed: What|Removed |Added CC|