public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/14806] New: [tree-ssa] missed tail call optimization in presence of a const function
@ 2004-04-01  4:41 kazu at cs dot umass dot edu
  2004-04-01  4:46 ` [Bug optimization/14806] " pinskia at gcc dot gnu dot org
  2004-05-24 18:40 ` [Bug tree-optimization/14806] " pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: kazu at cs dot umass dot edu @ 2004-04-01  4:41 UTC (permalink / raw)
  To: gcc-bugs

int bar (int) __attribute__((const));

int g;

int
foo (int a)
{
  int b = bar (b);
  g = 0;
  return b;
}

Note that we can move "g = 0;" to before "bar (b)".

-- 
           Summary: [tree-ssa] missed tail call optimization in presence of
                    a const function
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Keywords: pessimizes-code
          Severity: enhancement
          Priority: P2
         Component: optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kazu at cs dot umass dot edu
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug optimization/14806] [tree-ssa] missed tail call optimization in presence of a const function
  2004-04-01  4:41 [Bug optimization/14806] New: [tree-ssa] missed tail call optimization in presence of a const function kazu at cs dot umass dot edu
@ 2004-04-01  4:46 ` pinskia at gcc dot gnu dot org
  2004-05-24 18:40 ` [Bug tree-optimization/14806] " pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-01  4:46 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-01 04:46 -------
Confirmed (but really it should be as b is uninitialized):
int bar (int) __attribute__((const));
int g;
int
foo (int a)
{
  int b = bar (a);
  g = 0;
  return b;
}

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-04-01 04:46:37
               date|                            |
   Target Milestone|---                         |tree-ssa


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


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

* [Bug tree-optimization/14806] [tree-ssa] missed tail call optimization in presence of a const function
  2004-04-01  4:41 [Bug optimization/14806] New: [tree-ssa] missed tail call optimization in presence of a const function kazu at cs dot umass dot edu
  2004-04-01  4:46 ` [Bug optimization/14806] " pinskia at gcc dot gnu dot org
@ 2004-05-24 18:40 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-24 18:40 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.5.0                       |---


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


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

end of thread, other threads:[~2004-05-24  1:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-01  4:41 [Bug optimization/14806] New: [tree-ssa] missed tail call optimization in presence of a const function kazu at cs dot umass dot edu
2004-04-01  4:46 ` [Bug optimization/14806] " pinskia at gcc dot gnu dot org
2004-05-24 18:40 ` [Bug tree-optimization/14806] " 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).