public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/15108] New: [tree-ssa] [regression] missed sib-calling for pointer changes
@ 2004-04-23 22:50 pinskia at gcc dot gnu dot org
  2004-04-24  3:27 ` [Bug optimization/15108] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-23 22:50 UTC (permalink / raw)
  To: gcc-bugs

void *t();

char *f()
{
  return t();
}

-- 
           Summary: [tree-ssa] [regression] missed sib-calling for pointer
                    changes
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Keywords: pessimizes-code
          Severity: minor
          Priority: P2
         Component: optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 BugsThisDependsOn: 14441


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


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

* [Bug optimization/15108] [tree-ssa] [regression] missed sib-calling for pointer changes
  2004-04-23 22:50 [Bug optimization/15108] New: [tree-ssa] [regression] missed sib-calling for pointer changes pinskia at gcc dot gnu dot org
@ 2004-04-24  3:27 ` pinskia at gcc dot gnu dot org
  2004-04-24  5:26 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-24  3:27 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |tree-ssa
      Known to work|                            |3.4.0
   Target Milestone|---                         |tree-ssa


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


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

* [Bug optimization/15108] [tree-ssa] [regression] missed sib-calling for pointer changes
  2004-04-23 22:50 [Bug optimization/15108] New: [tree-ssa] [regression] missed sib-calling for pointer changes pinskia at gcc dot gnu dot org
  2004-04-24  3:27 ` [Bug optimization/15108] " pinskia at gcc dot gnu dot org
@ 2004-04-24  5:26 ` pinskia at gcc dot gnu dot org
  2004-05-07  1:21 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-24  5:26 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-23 22:51 -------
This is related to bug 14440 which is because they are the same size (_Bool is the same 
size as int on powerpc-apple-darwin).

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-04-23 22:51:55
               date|                            |


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


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

* [Bug optimization/15108] [tree-ssa] [regression] missed sib-calling for pointer changes
  2004-04-23 22:50 [Bug optimization/15108] New: [tree-ssa] [regression] missed sib-calling for pointer changes pinskia at gcc dot gnu dot org
  2004-04-24  3:27 ` [Bug optimization/15108] " pinskia at gcc dot gnu dot org
  2004-04-24  5:26 ` pinskia at gcc dot gnu dot org
@ 2004-05-07  1:21 ` pinskia at gcc dot gnu dot org
  2004-06-07 18:15 ` [Bug rtl-optimization/15108] " pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-07  1:21 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-07 01:21 -------
This is a dup of bug 14441, the patch which fixes that also fixes this one.

*** This bug has been marked as a duplicate of 14441 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
           Keywords|                            |patch
         Resolution|                            |DUPLICATE


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


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

* [Bug rtl-optimization/15108] [tree-ssa] [regression] missed sib-calling for pointer changes
  2004-04-23 22:50 [Bug optimization/15108] New: [tree-ssa] [regression] missed sib-calling for pointer changes pinskia at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-05-07  1:21 ` pinskia at gcc dot gnu dot org
@ 2004-06-07 18:15 ` pinskia at gcc dot gnu dot org
  2004-06-07 18:22 ` [Bug rtl-optimization/15108] [3.5 Regression] " pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-07 18:15 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-07 18:15 -------
Re-introduced by:
2004-06-07  Richard Henderson  <rth@redhat.com>

        * gimple-low.c (struct lower_data): Add the_return_label and
        one_return_stmt.
        (lower_function_body): Initialize and use them.
        (lower_return_expr): New.
        (lower_stmt): Call it.
        * gimplify.c (gimplify_return_expr): Force the argument to be either
        null or a result_decl.
        * tree-gimple.c: Update gimple grammer to match.
        * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Deny
        coalescing of result_decls.

The problem is that return statements no longer have stuff in them any more.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |steven at gcc dot gnu dot
                   |                            |org
             Status|RESOLVED                    |REOPENED
         Resolution|DUPLICATE                   |


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


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

* [Bug rtl-optimization/15108] [3.5 Regression] [tree-ssa] [regression] missed sib-calling for pointer changes
  2004-04-23 22:50 [Bug optimization/15108] New: [tree-ssa] [regression] missed sib-calling for pointer changes pinskia at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2004-06-07 18:15 ` [Bug rtl-optimization/15108] " pinskia at gcc dot gnu dot org
@ 2004-06-07 18:22 ` pinskia at gcc dot gnu dot org
  2004-06-07 18:35 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-07 18:22 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[tree-ssa] [regression]     |[3.5 Regression] [tree-ssa]
                   |missed sib-calling for      |[regression] missed sib-
                   |pointer changes             |calling for pointer changes
   Target Milestone|tree-ssa                    |3.5.0


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


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

* [Bug rtl-optimization/15108] [3.5 Regression] [tree-ssa] [regression] missed sib-calling for pointer changes
  2004-04-23 22:50 [Bug optimization/15108] New: [tree-ssa] [regression] missed sib-calling for pointer changes pinskia at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2004-06-07 18:22 ` [Bug rtl-optimization/15108] [3.5 Regression] " pinskia at gcc dot gnu dot org
@ 2004-06-07 18:35 ` pinskia at gcc dot gnu dot org
  2004-06-09 22:18 ` rth at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-07 18:35 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-07 18:35 -------
Here is the testcase I would add to the testsuite so this does not happen again:
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-tailc-details" } */
void *t();
char *f()
{
  return t();
}
/* { dg-final { scan-tree-dump-times "Found tail call" 1 "tailc"} } */

-- 


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


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

* [Bug rtl-optimization/15108] [3.5 Regression] [tree-ssa] [regression] missed sib-calling for pointer changes
  2004-04-23 22:50 [Bug optimization/15108] New: [tree-ssa] [regression] missed sib-calling for pointer changes pinskia at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2004-06-07 18:35 ` pinskia at gcc dot gnu dot org
@ 2004-06-09 22:18 ` rth at gcc dot gnu dot org
  2004-06-09 23:49 ` [Bug tree-optimization/15108] " cvs-commit at gcc dot gnu dot org
  2004-06-09 23:50 ` rth at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: rth at gcc dot gnu dot org @ 2004-06-09 22:18 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rth at gcc dot gnu dot org  2004-06-09 22:18 -------
Testing a patch.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rth at gcc dot gnu dot org
                   |dot org                     |
             Status|REOPENED                    |ASSIGNED


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


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

* [Bug tree-optimization/15108] [3.5 Regression] [tree-ssa] [regression] missed sib-calling for pointer changes
  2004-04-23 22:50 [Bug optimization/15108] New: [tree-ssa] [regression] missed sib-calling for pointer changes pinskia at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2004-06-09 22:18 ` rth at gcc dot gnu dot org
@ 2004-06-09 23:49 ` cvs-commit at gcc dot gnu dot org
  2004-06-09 23:50 ` rth at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-06-09 23:49 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-06-09 23:49 -------
Subject: Bug 15108

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	rth@gcc.gnu.org	2004-06-09 23:48:57

Modified files:
	gcc            : ChangeLog tree-tailcall.c 

Log message:
	PR opt/15108
	* tree-tailcall.c (find_tail_calls): Don't check early for
	tail_recursion failure.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.3900&r2=2.3901
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-tailcall.c.diff?cvsroot=gcc&r1=2.6&r2=2.7



-- 


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


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

* [Bug tree-optimization/15108] [3.5 Regression] [tree-ssa] [regression] missed sib-calling for pointer changes
  2004-04-23 22:50 [Bug optimization/15108] New: [tree-ssa] [regression] missed sib-calling for pointer changes pinskia at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2004-06-09 23:49 ` [Bug tree-optimization/15108] " cvs-commit at gcc dot gnu dot org
@ 2004-06-09 23:50 ` rth at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: rth at gcc dot gnu dot org @ 2004-06-09 23:50 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rth at gcc dot gnu dot org  2004-06-09 23:50 -------
Fixed.

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


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


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

end of thread, other threads:[~2004-06-09 23:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-23 22:50 [Bug optimization/15108] New: [tree-ssa] [regression] missed sib-calling for pointer changes pinskia at gcc dot gnu dot org
2004-04-24  3:27 ` [Bug optimization/15108] " pinskia at gcc dot gnu dot org
2004-04-24  5:26 ` pinskia at gcc dot gnu dot org
2004-05-07  1:21 ` pinskia at gcc dot gnu dot org
2004-06-07 18:15 ` [Bug rtl-optimization/15108] " pinskia at gcc dot gnu dot org
2004-06-07 18:22 ` [Bug rtl-optimization/15108] [3.5 Regression] " pinskia at gcc dot gnu dot org
2004-06-07 18:35 ` pinskia at gcc dot gnu dot org
2004-06-09 22:18 ` rth at gcc dot gnu dot org
2004-06-09 23:49 ` [Bug tree-optimization/15108] " cvs-commit at gcc dot gnu dot org
2004-06-09 23:50 ` rth 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).