public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/6880] Inefficient Copy constructor generation
       [not found] <20020531003601.6880.dann@godzilla.ics.uci.edu>
@ 2003-06-05 23:21 ` bangerth@dealii.org
  2003-07-24  3:40 ` pinskia at physics dot uc dot edu
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 15+ messages in thread
From: bangerth@dealii.org @ 2003-06-05 23:21 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=6880


bangerth@dealii.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|major                       |critical
           Priority|P3                          |P2
            Version|3.1                         |3.4





------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug c++/6880] Inefficient Copy constructor generation
       [not found] <20020531003601.6880.dann@godzilla.ics.uci.edu>
  2003-06-05 23:21 ` [Bug c++/6880] Inefficient Copy constructor generation bangerth@dealii.org
@ 2003-07-24  3:40 ` pinskia at physics dot uc dot edu
  2003-07-24 14:38 ` bangerth at dealii dot org
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 15+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-24  3:40 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=6880


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2003-06-28 15:28:03         |2003-07-24 03:40:40
               date|                            |


------- Additional Comments From pinskia at physics dot uc dot edu  2003-07-24 03:40 -------
Can one of the C++ people say if it is okay for a compiler to create a copy constructor that 
copies element by element?


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug c++/6880] Inefficient Copy constructor generation
       [not found] <20020531003601.6880.dann@godzilla.ics.uci.edu>
  2003-06-05 23:21 ` [Bug c++/6880] Inefficient Copy constructor generation bangerth@dealii.org
  2003-07-24  3:40 ` pinskia at physics dot uc dot edu
@ 2003-07-24 14:38 ` bangerth at dealii dot org
  2003-07-29 14:44 ` pinskia at physics dot uc dot edu
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 15+ messages in thread
From: bangerth at dealii dot org @ 2003-07-24 14:38 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=6880



------- Additional Comments From bangerth at dealii dot org  2003-07-24 14:38 -------
At least from a language viewpoint, there is certainly no bug in the generated
code: in one case, a stack space for the variable "factor" is allocated
and the correct values are written into it. Then the values are copied to
Yy. In the other case, the stores to the local variable are eliminated
entirely (they're dead, after all). Since this doesn't change the semantics
of the program, this is ok.

The question rather is: how come that the compiler can elide construction
of "factor" when a user-defined copy constructor is given, and can't 
when none is given? In addition, I fail to see where the copy
constructor comes into play at all -- it shouldn't be used in this example.

W.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug c++/6880] Inefficient Copy constructor generation
       [not found] <20020531003601.6880.dann@godzilla.ics.uci.edu>
                   ` (2 preceding siblings ...)
  2003-07-24 14:38 ` bangerth at dealii dot org
@ 2003-07-29 14:44 ` pinskia at physics dot uc dot edu
  2003-09-06 19:56 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 15+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-29 14:44 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=6880


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |enhancement
           Priority|P2                          |P3


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug c++/6880] Inefficient Copy constructor generation
       [not found] <20020531003601.6880.dann@godzilla.ics.uci.edu>
                   ` (3 preceding siblings ...)
  2003-07-29 14:44 ` pinskia at physics dot uc dot edu
@ 2003-09-06 19:56 ` pinskia at gcc dot gnu dot org
  2003-10-20 11:59 ` falk at debian dot org
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-09-06 19:56 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=6880


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yuri at tsoft dot com


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-09-06 19:56 -------
*** Bug 12190 has been marked as a duplicate of this bug. ***


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug c++/6880] Inefficient Copy constructor generation
       [not found] <20020531003601.6880.dann@godzilla.ics.uci.edu>
                   ` (4 preceding siblings ...)
  2003-09-06 19:56 ` pinskia at gcc dot gnu dot org
@ 2003-10-20 11:59 ` falk at debian dot org
  2003-10-25  1:34 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 15+ messages in thread
From: falk at debian dot org @ 2003-10-20 11:59 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=6880


falk at debian dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Teddy dot Todorov at cern
                   |                            |dot ch


------- Additional Comments From falk at debian dot org  2003-10-20 11:16 -------
*** Bug 12685 has been marked as a duplicate of this bug. ***


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug c++/6880] Inefficient Copy constructor generation
       [not found] <20020531003601.6880.dann@godzilla.ics.uci.edu>
                   ` (5 preceding siblings ...)
  2003-10-20 11:59 ` falk at debian dot org
@ 2003-10-25  1:34 ` pinskia at gcc dot gnu dot org
  2003-12-01  3:58 ` [Bug optimization/6880] " pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-25  1:34 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=6880


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |tree-ssa


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-10-25 01:31 -------
Maybe this can be fixed on the tree-ssa branch.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug optimization/6880] Inefficient Copy constructor generation
       [not found] <20020531003601.6880.dann@godzilla.ics.uci.edu>
                   ` (6 preceding siblings ...)
  2003-10-25  1:34 ` pinskia at gcc dot gnu dot org
@ 2003-12-01  3:58 ` pinskia at gcc dot gnu dot org
  2003-12-17  3:30 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-01  3:58 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-01 03:58 -------
SRA did not help this case but it should have.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c++                         |optimization
   Last reconfirmed|2003-07-24 03:40:40         |2003-12-01 03:58:50
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6880


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug optimization/6880] Inefficient Copy constructor generation
       [not found] <20020531003601.6880.dann@godzilla.ics.uci.edu>
                   ` (7 preceding siblings ...)
  2003-12-01  3:58 ` [Bug optimization/6880] " pinskia at gcc dot gnu dot org
@ 2003-12-17  3:30 ` pinskia at gcc dot gnu dot org
  2003-12-17 17:06 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-17  3:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-17 01:24 -------
Fixed on the tree-ssa (20031217) so closing as fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6880


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug optimization/6880] Inefficient Copy constructor generation
       [not found] <20020531003601.6880.dann@godzilla.ics.uci.edu>
                   ` (8 preceding siblings ...)
  2003-12-17  3:30 ` pinskia at gcc dot gnu dot org
@ 2003-12-17 17:06 ` pinskia at gcc dot gnu dot org
  2003-12-17 17:13 ` pinskia at gcc dot gnu dot org
  2004-05-13 18:28 ` [Bug optimization (RTL)/6880] " pinskia at gcc dot gnu dot org
  11 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-17 17:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-17 17:05 -------
Reopening the bugs that are fixed on the tree-ssa (but not reported against the branch).

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6880


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug optimization/6880] Inefficient Copy constructor generation
       [not found] <20020531003601.6880.dann@godzilla.ics.uci.edu>
                   ` (9 preceding siblings ...)
  2003-12-17 17:06 ` pinskia at gcc dot gnu dot org
@ 2003-12-17 17:13 ` pinskia at gcc dot gnu dot org
  2004-05-13 18:28 ` [Bug optimization (RTL)/6880] " pinskia at gcc dot gnu dot org
  11 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-17 17:13 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-17 17:10 -------
Suspending based on this is fixed on the tree-ssa.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |SUSPENDED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6880


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug optimization (RTL)/6880] Inefficient Copy constructor generation
       [not found] <20020531003601.6880.dann@godzilla.ics.uci.edu>
                   ` (10 preceding siblings ...)
  2003-12-17 17:13 ` pinskia at gcc dot gnu dot org
@ 2004-05-13 18:28 ` pinskia at gcc dot gnu dot org
  11 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-13 18:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-13 11:26 -------
Fixed for 3.5.0 by the merge of the tree-ssa.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|SUSPENDED                   |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|tree-ssa                    |3.5.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6880


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug c++/6880] Inefficient Copy constructor generation
@ 2003-05-24  0:44 pinskia@physics.uc.edu
  0 siblings, 0 replies; 15+ messages in thread
From: pinskia@physics.uc.edu @ 2003-05-24  0:44 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=6880



------- Additional Comments From pinskia@physics.uc.edu  2003-05-24 00:32 -------
confirmed with mainline (20030523).



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug c++/6880] Inefficient Copy constructor generation
@ 2003-05-23 23:35 pinskia@physics.uc.edu
  0 siblings, 0 replies; 15+ messages in thread
From: pinskia@physics.uc.edu @ 2003-05-23 23:35 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=6880



------- Additional Comments From pinskia@physics.uc.edu  2003-05-23 22:54 -------
*** Bug 10741 has been marked as a duplicate of this bug. ***



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug c++/6880] Inefficient Copy constructor generation
@ 2003-05-23 20:29 pinskia@physics.uc.edu
  0 siblings, 0 replies; 15+ messages in thread
From: pinskia@physics.uc.edu @ 2003-05-23 20:29 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=6880


pinskia@physics.uc.edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|optimization                |c++
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-05-23 20:12:42
               date|                            |
            Summary|Inlining inefficiencies     |Inefficient Copy constructor
                   |                            |generation





------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2004-05-13 11:26 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20020531003601.6880.dann@godzilla.ics.uci.edu>
2003-06-05 23:21 ` [Bug c++/6880] Inefficient Copy constructor generation bangerth@dealii.org
2003-07-24  3:40 ` pinskia at physics dot uc dot edu
2003-07-24 14:38 ` bangerth at dealii dot org
2003-07-29 14:44 ` pinskia at physics dot uc dot edu
2003-09-06 19:56 ` pinskia at gcc dot gnu dot org
2003-10-20 11:59 ` falk at debian dot org
2003-10-25  1:34 ` pinskia at gcc dot gnu dot org
2003-12-01  3:58 ` [Bug optimization/6880] " pinskia at gcc dot gnu dot org
2003-12-17  3:30 ` pinskia at gcc dot gnu dot org
2003-12-17 17:06 ` pinskia at gcc dot gnu dot org
2003-12-17 17:13 ` pinskia at gcc dot gnu dot org
2004-05-13 18:28 ` [Bug optimization (RTL)/6880] " pinskia at gcc dot gnu dot org
2003-05-24  0:44 [Bug c++/6880] " pinskia@physics.uc.edu
  -- strict thread matches above, loose matches on Subject: below --
2003-05-23 23:35 pinskia@physics.uc.edu
2003-05-23 20:29 pinskia@physics.uc.edu

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