From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31113 invoked by alias); 7 Feb 2009 12:31:56 -0000 Received: (qmail 31087 invoked by alias); 7 Feb 2009 12:31:47 -0000 Date: Sat, 07 Feb 2009 12:31:00 -0000 Message-ID: <20090207123147.31086.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug tree-optimization/39120] [4.2/4.3/4.4 Regression] Missed escape constraints for call results In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rguenth at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-02/txt/msg00650.txt.bz2 ------- Comment #2 from rguenth at gcc dot gnu dot org 2009-02-07 12:31 ------- Subject: Bug 39120 Author: rguenth Date: Sat Feb 7 12:31:34 2009 New Revision: 144003 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144003 Log: 2009-02-07 Richard Guenther PR tree-optimization/39120 * tree-ssa-structalias.c (handle_rhs_call): Fill out return constraints. (handle_lhs_call): Process return constraints. Add escape constraints if necessary. (handle_const_call): Fill out return constraints. Make nested case more precise. Avoid consttmp if possible. (handle_pure_call): Fill out return constraints. Avoid callused if possible. (find_func_aliases): Simplify call handling. Manually build nonlocal constraints for asm outputs. * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add shortcut for const calls. Properly use is_call_clobbered for non-const, non-pure calls. * gcc.c-torture/execute/pr39120.c: New testcase. Added: branches/alias-improvements/gcc/testsuite/gcc.c-torture/execute/pr39120.c Modified: branches/alias-improvements/gcc/ChangeLog.alias branches/alias-improvements/gcc/tree-ssa-alias.c branches/alias-improvements/gcc/tree-ssa-structalias.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39120