From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23151 invoked by alias); 3 Jun 2004 11:26:57 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 23113 invoked from network); 3 Jun 2004 11:26:56 -0000 Received: from unknown (HELO smtp-relay-8.adobe.com) (192.150.22.8) by sourceware.org with SMTP; 3 Jun 2004 11:26:56 -0000 Received: from inner-relay-1.corp.adobe.com (inner-relay-1 [153.32.1.51]) by smtp-relay-8.adobe.com (8.12.10/8.12.10) with ESMTP id i53BQV6P006979; Thu, 3 Jun 2004 04:26:37 -0700 (PDT) Received: from iplan-mn (iplan-mn.corp.adobe.com [130.248.25.5]) by inner-relay-1.corp.adobe.com (8.12.9/8.12.9) with ESMTP id i53BQV3k009752; Thu, 3 Jun 2004 04:26:31 -0700 (PDT) Received: from mn-eljayet.adobe.com (b-25-141.corp.adobe.com [130.248.25.141]) by iplan-mn.corp.adobe.com (iPlanet Messaging Server 5.2 HotFix 1.21 (built Sep 8 2003)) with ESMTP id <0HYQ00I81D45KG@iplan-mn.corp.adobe.com>; Thu, 03 Jun 2004 06:26:29 -0500 (CDT) Date: Thu, 03 Jun 2004 11:26:00 -0000 From: Eljay Love-Jensen Subject: Re: Weird optimization bug...? In-reply-to: <1086207843.11377.10.camel@localhost> X-Sender: eljay@iplan-mn.corp.adobe.com To: Adrian Bentley , gcc-help@gcc.gnu.org Message-id: <6.0.3.0.2.20040603062352.02150e10@iplan-mn.corp.adobe.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT References: <1086207843.11377.10.camel@localhost> X-SW-Source: 2004-06/txt/msg00015.txt.bz2 Hi Adruab, A bug like that is usually indicative of a buffer overrun. int rgb[3]; rgb[4] = 7; Or of cavalier casting. short hue; int* p = (int*)&hue; *p = 0; Without seeing the code (or some sample code that replicates the bug), it would be difficult to guess less likely scenarios. HTH, --Eljay