public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/8826] "a >> b" differs from "a.operator>>(b)" in that virtual function calls are not avoided
[not found] <20021205105602.8826.niemayer@isg.de>
@ 2003-08-16 15:10 ` pinskia at gcc dot gnu dot org
2004-03-06 5:12 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-16 15:10 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8826
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/8826] "a >> b" differs from "a.operator>>(b)" in that virtual function calls are not avoided
[not found] <20021205105602.8826.niemayer@isg.de>
2003-08-16 15:10 ` [Bug c++/8826] "a >> b" differs from "a.operator>>(b)" in that virtual function calls are not avoided pinskia at gcc dot gnu dot org
@ 2004-03-06 5:12 ` pinskia at gcc dot gnu dot org
2004-04-28 6:47 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-06 5:12 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-06 05:11 -------
The C++ front-end is emitting the call indirectly to the function:
(*(&_ZTV1A + 8u))(&a, y)
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2003-11-21 16:24:09 |2004-03-06 05:11:57
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8826
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/8826] "a >> b" differs from "a.operator>>(b)" in that virtual function calls are not avoided
[not found] <20021205105602.8826.niemayer@isg.de>
2003-08-16 15:10 ` [Bug c++/8826] "a >> b" differs from "a.operator>>(b)" in that virtual function calls are not avoided pinskia at gcc dot gnu dot org
2004-03-06 5:12 ` pinskia at gcc dot gnu dot org
@ 2004-04-28 6:47 ` pinskia at gcc dot gnu dot org
2004-07-28 14:51 ` [Bug tree-optimization/8826] " pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-28 6:47 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-28 02:32 -------
int testfunc1(int) (y)
{
int r;
struct A a;
<bb 0>:
a._vptr$A = &_ZTV1A[2];
__asm__ __volatile__("testlabel1: "::);
r = A::_ZTV1A (&a, y);
__asm__ __volatile__("testlabel2: "::);
return r;
}
So if A::_ZTV1A is expanded to _ZN1ArsEi (by 14841) and then inlining the function will
cause it to act like any other function (PR 9079)
--
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |9079, 14841
Bug 8826 depends on bug 9079, which changed state.
Bug 9079 Summary: [tree-ssa] Inline constant function pointers
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9079
What |Old Value |New Value
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|DUPLICATE |
Status|REOPENED |ASSIGNEDBug 8826 depends on bug 9079, which changed state.
Bug 9079 Summary: [tree-ssa] Inline constant function pointers
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9079
What |Old Value |New Value
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|DUPLICATE |
Status|REOPENED |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8826
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/8826] "a >> b" differs from "a.operator>>(b)" in that virtual function calls are not avoided
[not found] <20021205105602.8826.niemayer@isg.de>
` (2 preceding siblings ...)
2004-04-28 6:47 ` pinskia at gcc dot gnu dot org
@ 2004-07-28 14:51 ` pinskia at gcc dot gnu dot org
2005-01-23 15:15 ` steven at gcc dot gnu dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-28 14:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-07-28 14:51 -------
Now only inlining needs to happen after some optimization has happened:
a._vptr.A = &_ZTV1A[2];
__asm__ __volatile__("testlabel1: "::);
r = operator>> (&a, y);
__asm__ __volatile__("testlabel2: "::);
----
__asm__ __volatile__("testlabel3: "::);
__asm__ __volatile__("testlabel4: "::);
--
What |Removed |Added
----------------------------------------------------------------------------
Component|c++ |tree-optimization
Last reconfirmed|2004-04-28 02:32:56 |2004-07-28 14:51:03
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8826
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/8826] "a >> b" differs from "a.operator>>(b)" in that virtual function calls are not avoided
[not found] <20021205105602.8826.niemayer@isg.de>
` (3 preceding siblings ...)
2004-07-28 14:51 ` [Bug tree-optimization/8826] " pinskia at gcc dot gnu dot org
@ 2005-01-23 15:15 ` steven at gcc dot gnu dot org
2005-01-23 15:18 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: steven at gcc dot gnu dot org @ 2005-01-23 15:15 UTC (permalink / raw)
To: gcc-bugs
--
Bug 8826 depends on bug 9079, which changed state.
Bug 9079 Summary: [tree-ssa] Inline constant function pointers
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9079
What |Old Value |New Value
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8826
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/8826] "a >> b" differs from "a.operator>>(b)" in that virtual function calls are not avoided
[not found] <20021205105602.8826.niemayer@isg.de>
` (4 preceding siblings ...)
2005-01-23 15:15 ` steven at gcc dot gnu dot org
@ 2005-01-23 15:18 ` pinskia at gcc dot gnu dot org
2005-05-08 21:30 ` kazu at cs dot umass dot edu
2005-07-04 21:46 ` pinskia at gcc dot gnu dot org
7 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-23 15:18 UTC (permalink / raw)
To: gcc-bugs
--
Bug 8826 depends on bug 9079, which changed state.
Bug 9079 Summary: [tree-ssa] Inline constant function pointers
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9079
What |Old Value |New Value
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|DUPLICATE |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8826
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/8826] "a >> b" differs from "a.operator>>(b)" in that virtual function calls are not avoided
[not found] <20021205105602.8826.niemayer@isg.de>
` (5 preceding siblings ...)
2005-01-23 15:18 ` pinskia at gcc dot gnu dot org
@ 2005-05-08 21:30 ` kazu at cs dot umass dot edu
2005-07-04 21:46 ` pinskia at gcc dot gnu dot org
7 siblings, 0 replies; 8+ messages in thread
From: kazu at cs dot umass dot edu @ 2005-05-08 21:30 UTC (permalink / raw)
To: gcc-bugs
--
Bug 8826 depends on bug 14841, which changed state.
Bug 14841 Summary: [tree-ssa] const_array[CST] is not folded
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14841
What |Old Value |New Value
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8826
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/8826] "a >> b" differs from "a.operator>>(b)" in that virtual function calls are not avoided
[not found] <20021205105602.8826.niemayer@isg.de>
` (6 preceding siblings ...)
2005-05-08 21:30 ` kazu at cs dot umass dot edu
@ 2005-07-04 21:46 ` pinskia at gcc dot gnu dot org
7 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-04 21:46 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-04 21:46 -------
Fixed on the mainline.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8826
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-07-04 21:46 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20021205105602.8826.niemayer@isg.de>
2003-08-16 15:10 ` [Bug c++/8826] "a >> b" differs from "a.operator>>(b)" in that virtual function calls are not avoided pinskia at gcc dot gnu dot org
2004-03-06 5:12 ` pinskia at gcc dot gnu dot org
2004-04-28 6:47 ` pinskia at gcc dot gnu dot org
2004-07-28 14:51 ` [Bug tree-optimization/8826] " pinskia at gcc dot gnu dot org
2005-01-23 15:15 ` steven at gcc dot gnu dot org
2005-01-23 15:18 ` pinskia at gcc dot gnu dot org
2005-05-08 21:30 ` kazu at cs dot umass dot edu
2005-07-04 21:46 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).