From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14747 invoked by alias); 1 Apr 2004 04:41:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 14737 invoked by uid 48); 1 Apr 2004 04:41:05 -0000 Date: Thu, 01 Apr 2004 04:41:00 -0000 From: "kazu at cs dot umass dot edu" To: gcc-bugs@gcc.gnu.org Message-ID: <20040401044059.14806.kazu@cs.umass.edu> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug optimization/14806] New: [tree-ssa] missed tail call optimization in presence of a const function X-Bugzilla-Reason: CC X-SW-Source: 2004-04/txt/msg00023.txt.bz2 List-Id: 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