public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/16405] [3.4 Regression] Temporary aggregate copy not elided
       [not found] <bug-16405-7904@http.gcc.gnu.org/bugzilla/>
@ 2005-10-07  3:26 ` gdr at gcc dot gnu dot org
  2006-02-03 21:56 ` jason at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 13+ messages in thread
From: gdr at gcc dot gnu dot org @ 2005-10-07  3:26 UTC (permalink / raw)
  To: gcc-bugs



-- 

gdr at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.5                       |3.4.6


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


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

* [Bug c++/16405] [3.4 Regression] Temporary aggregate copy not elided
       [not found] <bug-16405-7904@http.gcc.gnu.org/bugzilla/>
  2005-10-07  3:26 ` [Bug c++/16405] [3.4 Regression] Temporary aggregate copy not elided gdr at gcc dot gnu dot org
@ 2006-02-03 21:56 ` jason at gcc dot gnu dot org
  2006-02-03 21:59 ` [Bug c++/16405] [3.4/4.1/4.2 " pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 13+ messages in thread
From: jason at gcc dot gnu dot org @ 2006-02-03 21:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from jason at gcc dot gnu dot org  2006-02-03 21:56 -------
Disabling this optimization for now, so this is again a regression in 4.1 and
4.2.


-- 

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|mark at codesourcery dot com|jason at gcc dot gnu dot org
      Known to fail|3.4.3                       |3.4.3 4.1.0 4.2.0


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


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

* [Bug c++/16405] [3.4/4.1/4.2 Regression] Temporary aggregate copy not elided
       [not found] <bug-16405-7904@http.gcc.gnu.org/bugzilla/>
  2005-10-07  3:26 ` [Bug c++/16405] [3.4 Regression] Temporary aggregate copy not elided gdr at gcc dot gnu dot org
  2006-02-03 21:56 ` jason at gcc dot gnu dot org
@ 2006-02-03 21:59 ` pinskia at gcc dot gnu dot org
  2006-02-03 21:59 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-03 21:59 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[3.4 Regression] Temporary  |[3.4/4.1/4.2 Regression]
                   |aggregate copy not elided   |Temporary aggregate copy not
                   |                            |elided
   Target Milestone|3.4.6                       |4.1.0


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


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

* [Bug c++/16405] [3.4/4.1/4.2 Regression] Temporary aggregate copy not elided
       [not found] <bug-16405-7904@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2006-02-03 21:59 ` [Bug c++/16405] [3.4/4.1/4.2 " pinskia at gcc dot gnu dot org
@ 2006-02-03 21:59 ` pinskia at gcc dot gnu dot org
  2006-02-09  9:54 ` jason at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-03 21:59 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P3


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


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

* [Bug c++/16405] [3.4/4.1/4.2 Regression] Temporary aggregate copy not elided
       [not found] <bug-16405-7904@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2006-02-03 21:59 ` pinskia at gcc dot gnu dot org
@ 2006-02-09  9:54 ` jason at gcc dot gnu dot org
  2006-02-09 13:35 ` [Bug c++/16405] [3.4/4.1 " pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 13+ messages in thread
From: jason at gcc dot gnu dot org @ 2006-02-09  9:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from jason at gcc dot gnu dot org  2006-02-09 09:54 -------
Subject: Bug 16405

Author: jason
Date: Thu Feb  9 09:54:36 2006
New Revision: 110789

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110789
Log:
        PR c++/25979
        * tree.def: Elaborate on difference from MODIFY_EXPR.
        * doc/c-tree.texi (INIT_EXPR): Likewise.
        * gimplify.c (internal_get_tmp_var): Use INIT_EXPR.
        (gimplify_decl_expr, gimplify_init_ctor_eval): Likewise.
        (gimplify_target_expr): Likewise.
        (gimplify_cond_expr): Remove target handling.
        (gimplify_modify_expr): Don't clobber INIT_EXPR code here.
        (gimplify_expr): Clobber it here.
        (gimplify_modify_expr_rhs): Push assignment into COND_EXPR here.
        Do return slot optimization if we have an INIT_EXPR.

        PR tree-opt/24365
        * tree-inline.c (declare_return_variable): Also clear
        DECL_COMPLEX_GIMPLE_REG_P as needed in the modify_dest case.

        PR c++/16405
        * gimplify.c (gimplify_modify_expr_rhs): Re-enable *& handling.

        PR middle-end/22439
        * gimplify.c (gimplify_one_sizepos): Fix typo.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-gimplify.c
    trunk/gcc/cp/typeck2.c
    trunk/gcc/doc/c-tree.texi
    trunk/gcc/gimplify.c
    trunk/gcc/testsuite/g++.dg/opt/temp1.C
    trunk/gcc/tree-inline.c
    trunk/gcc/tree.def


-- 


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


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

* [Bug c++/16405] [3.4/4.1 Regression] Temporary aggregate copy not elided
       [not found] <bug-16405-7904@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2006-02-09  9:54 ` jason at gcc dot gnu dot org
@ 2006-02-09 13:35 ` pinskia at gcc dot gnu dot org
  2006-02-10 17:32 ` jason at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-09 13:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from pinskia at gcc dot gnu dot org  2006-02-09 13:35 -------
Fixed on the mainline at least for now.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|3.4.3 4.1.0 4.2.0           |3.4.3 4.1.0
      Known to work|3.3.4 3.3.2 4.0.0           |3.3.4 3.3.2 4.0.0 4.2.0
            Summary|[3.4/4.1/4.2 Regression]    |[3.4/4.1 Regression]
                   |Temporary aggregate copy not|Temporary aggregate copy not
                   |elided                      |elided


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


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

* [Bug c++/16405] [3.4/4.1 Regression] Temporary aggregate copy not elided
       [not found] <bug-16405-7904@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2006-02-09 13:35 ` [Bug c++/16405] [3.4/4.1 " pinskia at gcc dot gnu dot org
@ 2006-02-10 17:32 ` jason at gcc dot gnu dot org
  2006-02-10 23:08 ` [Bug c++/16405] [3.4 " pinskia at gcc dot gnu dot org
  2006-02-28  9:36 ` gdr at gcc dot gnu dot org
  8 siblings, 0 replies; 13+ messages in thread
From: jason at gcc dot gnu dot org @ 2006-02-10 17:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from jason at gcc dot gnu dot org  2006-02-10 17:32 -------
Subject: Bug 16405

Author: jason
Date: Fri Feb 10 17:32:10 2006
New Revision: 110838

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110838
Log:
        PR c++/25979
        * tree.def: Elaborate on difference from MODIFY_EXPR.
        * doc/c-tree.texi (INIT_EXPR): Likewise.
        * gimplify.c (internal_get_tmp_var): Use INIT_EXPR.
        (gimplify_decl_expr, gimplify_init_ctor_eval): Likewise.
        (gimplify_target_expr): Likewise.
        (gimplify_cond_expr): Remove target handling.
        (gimplify_modify_expr): Don't clobber INIT_EXPR code here.
        (gimplify_expr): Clobber it here.
        (gimplify_modify_expr_rhs): Push assignment into COND_EXPR here.
        Do return slot optimization if we have an INIT_EXPR.

        PR tree-opt/24365
        * tree-inline.c (declare_return_variable): Also clear
        DECL_COMPLEX_GIMPLE_REG_P as needed in the modify_dest case.

        PR c++/16405
        * gimplify.c (gimplify_modify_expr_rhs): Re-enable *& handling.

        PR middle-end/22439
        * gimplify.c (gimplify_one_sizepos): Fix typo.

Modified:
    branches/gcc-4_1-branch/gcc/ChangeLog
    branches/gcc-4_1-branch/gcc/cp/ChangeLog
    branches/gcc-4_1-branch/gcc/cp/cp-gimplify.c
    branches/gcc-4_1-branch/gcc/cp/typeck2.c
    branches/gcc-4_1-branch/gcc/doc/c-tree.texi
    branches/gcc-4_1-branch/gcc/gimplify.c
    branches/gcc-4_1-branch/gcc/testsuite/g++.dg/opt/temp1.C
    branches/gcc-4_1-branch/gcc/tree-inline.c
    branches/gcc-4_1-branch/gcc/tree.def


-- 


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


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

* [Bug c++/16405] [3.4 Regression] Temporary aggregate copy not elided
       [not found] <bug-16405-7904@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2006-02-10 17:32 ` jason at gcc dot gnu dot org
@ 2006-02-10 23:08 ` pinskia at gcc dot gnu dot org
  2006-02-28  9:36 ` gdr at gcc dot gnu dot org
  8 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-10 23:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from pinskia at gcc dot gnu dot org  2006-02-10 23:08 -------
Fixed now in 4.1.0 also.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[3.4/4.1 Regression]        |[3.4 Regression] Temporary
                   |Temporary aggregate copy not|aggregate copy not elided
                   |elided                      |
   Target Milestone|4.1.0                       |3.4.6


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


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

* [Bug c++/16405] [3.4 Regression] Temporary aggregate copy not elided
       [not found] <bug-16405-7904@http.gcc.gnu.org/bugzilla/>
                   ` (7 preceding siblings ...)
  2006-02-10 23:08 ` [Bug c++/16405] [3.4 " pinskia at gcc dot gnu dot org
@ 2006-02-28  9:36 ` gdr at gcc dot gnu dot org
  8 siblings, 0 replies; 13+ messages in thread
From: gdr at gcc dot gnu dot org @ 2006-02-28  9:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #14 from gdr at gcc dot gnu dot org  2006-02-28 09:35 -------
Fixed in 4.1.0.  won't fix for 3.4.6.


-- 

gdr at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|3.4.6                       |4.1.0


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


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

* [Bug c++/16405] [3.4 Regression] Temporary aggregate copy not elided
  2004-07-07 11:56 [Bug c++/16405] New: Non optimized code when using default copy constructor guillaume dot melquiond at ens-lyon dot fr
                   ` (2 preceding siblings ...)
  2005-02-13 18:38 ` cvs-commit at gcc dot gnu dot org
@ 2005-05-19 17:40 ` mmitchel at gcc dot gnu dot org
  3 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-05-19 17:40 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.4                       |3.4.5


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


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

* [Bug c++/16405] [3.4 Regression] Temporary aggregate copy not elided
  2004-07-07 11:56 [Bug c++/16405] New: Non optimized code when using default copy constructor guillaume dot melquiond at ens-lyon dot fr
  2004-12-23  8:18 ` [Bug c++/16405] [3.4 Regression] Temporary aggregate copy not elided mmitchel at gcc dot gnu dot org
  2004-12-23 16:27 ` cvs-commit at gcc dot gnu dot org
@ 2005-02-13 18:38 ` cvs-commit at gcc dot gnu dot org
  2005-05-19 17:40 ` mmitchel at gcc dot gnu dot org
  3 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-02-13 18:38 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-02-13 06:44 -------
Subject: Bug 16405

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	jason@gcc.gnu.org	2005-02-13 06:43:58

Modified files:
	gcc            : ChangeLog fold-const.c gimplify.c tree.h 

Log message:
	PR mudflap/19319
	* gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Make return
	slot explicit.
	
	PR c++/16405
	* fold-const.c (fold_indirect_ref_1): Split out from...
	(build_fold_indirect_ref): Here.
	(fold_indirect_ref): New fn.
	* tree.h: Declare it.
	* gimplify.c (gimplify_compound_lval): Call fold_indirect_ref.
	(gimplify_modify_expr_rhs): Likewise.
	(gimplify_expr): Likewise.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.7461&r2=2.7462
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fold-const.c.diff?cvsroot=gcc&r1=1.507&r2=1.508
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/gimplify.c.diff?cvsroot=gcc&r1=2.108&r2=2.109
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree.h.diff?cvsroot=gcc&r1=1.689&r2=1.690



-- 


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


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

* [Bug c++/16405] [3.4 Regression] Temporary aggregate copy not elided
  2004-07-07 11:56 [Bug c++/16405] New: Non optimized code when using default copy constructor guillaume dot melquiond at ens-lyon dot fr
  2004-12-23  8:18 ` [Bug c++/16405] [3.4 Regression] Temporary aggregate copy not elided mmitchel at gcc dot gnu dot org
@ 2004-12-23 16:27 ` cvs-commit at gcc dot gnu dot org
  2005-02-13 18:38 ` cvs-commit at gcc dot gnu dot org
  2005-05-19 17:40 ` mmitchel at gcc dot gnu dot org
  3 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-12-23 16:27 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-12-23 16:27 -------
Subject: Bug 16405

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	mmitchel@gcc.gnu.org	2004-12-23 16:27:12

Modified files:
	gcc/testsuite  : ChangeLog 
	gcc/testsuite/g++.dg/opt: temp1.C 

Log message:
	PR c++/16405
	* gimplify.c (gimplify_modify_expr_rhs): Handle
	INDIRECT_REF/ADDR_EXPR combinations.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4805&r2=1.4806
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/opt/temp1.C.diff?cvsroot=gcc&r1=1.1&r2=1.2



-- 


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


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

* [Bug c++/16405] [3.4 Regression] Temporary aggregate copy not elided
  2004-07-07 11:56 [Bug c++/16405] New: Non optimized code when using default copy constructor guillaume dot melquiond at ens-lyon dot fr
@ 2004-12-23  8:18 ` mmitchel at gcc dot gnu dot org
  2004-12-23 16:27 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-12-23  8:18 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-12-23 08:17 -------
Fixed in GCC 4.0.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|3.4.3 4.0.0                 |3.4.3
      Known to work|3.3.4 3.3.2                 |3.3.4 3.3.2 4.0.0
            Summary|[3.4/4.0 Regression]        |[3.4 Regression] Temporary
                   |Temporary aggregate copy not|aggregate copy not elided
                   |elided                      |


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


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

end of thread, other threads:[~2006-02-28  9:35 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-16405-7904@http.gcc.gnu.org/bugzilla/>
2005-10-07  3:26 ` [Bug c++/16405] [3.4 Regression] Temporary aggregate copy not elided gdr at gcc dot gnu dot org
2006-02-03 21:56 ` jason at gcc dot gnu dot org
2006-02-03 21:59 ` [Bug c++/16405] [3.4/4.1/4.2 " pinskia at gcc dot gnu dot org
2006-02-03 21:59 ` pinskia at gcc dot gnu dot org
2006-02-09  9:54 ` jason at gcc dot gnu dot org
2006-02-09 13:35 ` [Bug c++/16405] [3.4/4.1 " pinskia at gcc dot gnu dot org
2006-02-10 17:32 ` jason at gcc dot gnu dot org
2006-02-10 23:08 ` [Bug c++/16405] [3.4 " pinskia at gcc dot gnu dot org
2006-02-28  9:36 ` gdr at gcc dot gnu dot org
2004-07-07 11:56 [Bug c++/16405] New: Non optimized code when using default copy constructor guillaume dot melquiond at ens-lyon dot fr
2004-12-23  8:18 ` [Bug c++/16405] [3.4 Regression] Temporary aggregate copy not elided mmitchel at gcc dot gnu dot org
2004-12-23 16:27 ` cvs-commit at gcc dot gnu dot org
2005-02-13 18:38 ` cvs-commit at gcc dot gnu dot org
2005-05-19 17:40 ` mmitchel 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).