From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3057 invoked by alias); 13 Jun 2007 22:47:57 -0000 Received: (qmail 3038 invoked by uid 48); 13 Jun 2007 22:47:47 -0000 Date: Wed, 13 Jun 2007 22:47:00 -0000 Message-ID: <20070613224747.3037.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug tree-optimization/32328] 4.2.0: -O2 causes skipped code In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "tdragon at tdragon dot net" 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: 2007-06/txt/msg01073.txt.bz2 ------- Comment #5 from tdragon at tdragon dot net 2007-06-13 22:47 ------- Is it possible that an optimization enabled by -O2 *assumes* that hashitem() will conform with strict aliasing by not dereferencing that argument, and thus optimizes those lines away? (Not the case.) If this is what is happening and is the correct behavior, then this is in fact user error and I'm sorry to have wasted your time. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32328