public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/16359] New: no tail call optimization happens when somehting has its address taken
@ 2004-07-04 15:33 pinskia at gcc dot gnu dot org
  2004-07-04 15:38 ` [Bug tree-optimization/16359] " pinskia at gcc dot gnu dot org
  2004-08-03  7:05 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-04 15:33 UTC (permalink / raw)
  To: gcc-bugs

int f(int *i);
int g(int i)
{
  if (f(&i))
    return 0;
  return g(i);
}

int g1(int i)
{
  repeat:
  if (f(&i))
    return 0;
  i = i;
  goto repeat;
}

-- 
           Summary: no tail call optimization happens when somehting has its
                    address taken
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: enhancement
          Priority: P2
         Component: tree-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


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


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

* [Bug tree-optimization/16359] no tail call optimization happens when somehting has its address taken
  2004-07-04 15:33 [Bug tree-optimization/16359] New: no tail call optimization happens when somehting has its address taken pinskia at gcc dot gnu dot org
@ 2004-07-04 15:38 ` pinskia at gcc dot gnu dot org
  2004-08-03  7:05 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-04 15:38 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-07-04 15:38 -------
I should say this comes from thinking why fold is not being tail optimized at all.

-- 


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


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

* [Bug tree-optimization/16359] no tail call optimization happens when somehting has its address taken
  2004-07-04 15:33 [Bug tree-optimization/16359] New: no tail call optimization happens when somehting has its address taken pinskia at gcc dot gnu dot org
  2004-07-04 15:38 ` [Bug tree-optimization/16359] " pinskia at gcc dot gnu dot org
@ 2004-08-03  7:05 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-03  7:05 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-08-03 07:05 -------
Actually you need more aliasing to know about this testcase.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


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

end of thread, other threads:[~2004-08-03  7:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-04 15:33 [Bug tree-optimization/16359] New: no tail call optimization happens when somehting has its address taken pinskia at gcc dot gnu dot org
2004-07-04 15:38 ` [Bug tree-optimization/16359] " pinskia at gcc dot gnu dot org
2004-08-03  7:05 ` 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).