[Bug c++/54770] sibling call optimization is not applied where it ought to be

2012-11-20 Thread andy.m.jost at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54770 --- Comment #8 from Andy Jost 2012-11-20 17:14:18 UTC --- The workaround I mentioned in comment #5 does seem to do the trick. Specifically, something like this works in all the cases I've tried: struct MainNode : Node { virtua

[Bug c++/54770] sibling call optimization is not applied where it ought to be

2012-10-17 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54770 --- Comment #7 from Jakub Jelinek 2012-10-17 12:27:15 UTC --- It is just that though, a workaround, it doesn't workaround say: void bar (char *); int baz (); int foo () { { char buf[64]; bar (buf); } return baz ();

[Bug c++/54770] sibling call optimization is not applied where it ought to be

2012-10-16 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54770 --- Comment #6 from Paolo Carlini 2012-10-16 23:06:16 UTC --- In terms of workarounds, what about using -std=c++11?

[Bug c++/54770] sibling call optimization is not applied where it ought to be

2012-10-02 Thread andy.m.jost at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54770 --- Comment #5 from Andy Jost 2012-10-02 15:25:46 UTC --- Most of the technical discussion is over my head, I'm afraid. Is there a simple workaround? What if the body of H contains only a call to a non-inlineable function to do its work

[Bug c++/54770] sibling call optimization is not applied where it ought to be

2012-10-02 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54770 --- Comment #4 from Jakub Jelinek 2012-10-02 13:31:24 UTC --- Right now we only have control flow insensitive points to ESCAPED set, so I'm afraid this is unfixable, unless we change that. Only with control flow sensitive ESCAPED we'd be

[Bug c++/54770] sibling call optimization is not applied where it ought to be

2012-10-02 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54770 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Co

[Bug c++/54770] sibling call optimization is not applied where it ought to be

2012-10-02 Thread steven at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54770 Steven Bosscher changed: What|Removed |Added Status|WAITING |NEW --- Comment #2 from Steve

[Bug c++/54770] sibling call optimization is not applied where it ought to be

2012-10-02 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54770 Richard Guenther changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed|

[Bug c++/54770] sibling call optimization is not applied where it ought to be

2012-10-01 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54770 --- Comment #1 from Jonathan Wakely 2012-10-02 00:37:30 UTC --- 4.5.2 is no longer maintained so won't be fixed in any case - could you check whether the problem still exists in a current release, i.e. 4.6+, preferably checking the trunk (