From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32427 invoked by alias); 5 Mar 2006 21:30:04 -0000 Received: (qmail 32259 invoked by uid 48); 5 Mar 2006 21:30:01 -0000 Date: Sun, 05 Mar 2006 21:30:00 -0000 Message-ID: <20060305213001.32258.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug tree-optimization/18842] Weak optimization on global references In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" 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 X-SW-Source: 2006-03/txt/msg00549.txt.bz2 List-Id: ------- Comment #7 from pinskia at gcc dot gnu dot org 2006-03-05 21:30 ------- (In reply to comment #2) > This is not a bug. You need IPA to figure out that y is never changed. For > example: > > int x, &y = x, z; > int bar() { y = z; } This actually does: *y = z; and not y = &z; -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18842