From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12797 invoked by alias); 7 Feb 2005 19:00:13 -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 12675 invoked by uid 48); 7 Feb 2005 19:00:06 -0000 Date: Tue, 08 Feb 2005 00:29:00 -0000 Message-ID: <20050207190006.12674.qmail@sourceware.org> From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040817140542.17064.pbrook@gcc.gnu.org> References: <20040817140542.17064.pbrook@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug tree-optimization/17064] -falias-noargument-global doesn't eliminate dead stores/loads X-Bugzilla-Reason: CC X-SW-Source: 2005-02/txt/msg00441.txt.bz2 List-Id: ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-07 19:00 ------- Another testcase this time for loads: #include int i; void bar(void) { i = 42; } int foo(int * p) { int i = *p; bar (); return *p + i;/* This load is dead with -fargument-noalias-global. */ } int main() { int t = 2; int t1; t1 = foo(&t); if (t1 != 4) abort(); return 0; } -- What |Removed |Added ---------------------------------------------------------------------------- Summary|-falias-noargument-global |-falias-noargument-global |doesn't eliminate dead |doesn't eliminate dead |stores |stores/loads http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17064